net: ethoc: Make needlessly global struct ethtool_ops static

Make the needlessly global struct ethtool_ops ethoc_ethtool_ops static
to fix a sparse warning.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Tobias Klauser 2017-01-17 15:01:08 +01:00 committed by David S. Miller
parent 49a67b5db7
commit a870a97757

View file

@ -995,7 +995,7 @@ static int ethoc_set_ringparam(struct net_device *dev,
return 0;
}
const struct ethtool_ops ethoc_ethtool_ops = {
static const struct ethtool_ops ethoc_ethtool_ops = {
.get_regs_len = ethoc_get_regs_len,
.get_regs = ethoc_get_regs,
.nway_reset = phy_ethtool_nway_reset,