[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140401133918.GA11087@mwanda>
Date: Tue, 1 Apr 2014 16:39:18 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Byungho An <bh74.an@...sung.com>
Cc: Girish K S <ks.giri@...sung.com>,
Siva Reddy Kallam <siva.kallam@...sung.com>,
Vipul Pandya <vipul.pandya@...sung.com>,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [patch 3/3] 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@...cle.com>
diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c
index 2e11da0..c4da7a2 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,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists