summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ethoc.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-17 15:01:08 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-17 21:50:56 +0100
commita870a97757dd4f165f4f7bb749350bee7df31716 (patch)
treea473fc73e4fd735e6e22efb71fcaa1bf5f0c1533 /drivers/net/ethernet/ethoc.c
parentMerge branch 'sfc-RX-hash-config' (diff)
downloadlinux-a870a97757dd4f165f4f7bb749350bee7df31716.tar.xz
linux-a870a97757dd4f165f4f7bb749350bee7df31716.zip
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>
Diffstat (limited to 'drivers/net/ethernet/ethoc.c')
-rw-r--r--drivers/net/ethernet/ethoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index 63e5e14174ee..c45757af9ade 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -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,