From: Tobias Klauser Date: Tue, 17 Jan 2017 14:01:08 +0000 (+0100) Subject: net: ethoc: Make needlessly global struct ethtool_ops static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a870a97757dd4f165f4f7bb749350bee7df31716;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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,