summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-04-01 15:39:18 +0200
committerDavid S. Miller <davem@davemloft.net>2014-04-01 22:25:52 +0200
commit7baea6efb4b716db7d49c3a6815305dfe6afb888 (patch)
tree57ac17b40ef02b1ca5ddcdaa80c813683ba17aa7 /drivers/net/ethernet
parentnet: sxgbe: fix logical vs bitwise operation (diff)
downloadlinux-7baea6efb4b716db7d49c3a6815305dfe6afb888.tar.xz
linux-7baea6efb4b716db7d49c3a6815305dfe6afb888.zip
net: sxgbe: make "core_ops" static
The "core_ops" variable isn't referenced outside this file and Sparse complains about it: drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c:239:29: warning: symbol 'core_ops' was not declared. Should it be static? Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c
index 2e11da00dac2..c4da7a2b002a 100644
--- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c
+++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c
@@ -236,7 +236,7 @@ static void sxgbe_disable_rx_csum(void __iomem *ioaddr)
writel(ctrl, ioaddr + SXGBE_CORE_RX_CONFIG_REG);
}
-const struct sxgbe_core_ops core_ops = {
+static const struct sxgbe_core_ops core_ops = {
.core_init = sxgbe_core_init,
.dump_regs = sxgbe_core_dump_regs,
.host_irq_status = sxgbe_core_host_irq_status,