* [patch 3/3] net: sxgbe: make "core_ops" static
@ 2014-04-01 13:39 Dan Carpenter
2014-04-01 20:27 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2014-04-01 13:39 UTC (permalink / raw)
To: Byungho An
Cc: Girish K S, Siva Reddy Kallam, Vipul Pandya, netdev,
kernel-janitors
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>
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,
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch 3/3] net: sxgbe: make "core_ops" static
2014-04-01 13:39 [patch 3/3] net: sxgbe: make "core_ops" static Dan Carpenter
@ 2014-04-01 20:27 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-04-01 20:27 UTC (permalink / raw)
To: dan.carpenter
Cc: bh74.an, ks.giri, siva.kallam, vipul.pandya, netdev,
kernel-janitors
From: Dan Carpenter <dan.carpenter@oracle.com>
Date: Tue, 1 Apr 2014 16:39:18 +0300
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-01 20:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 13:39 [patch 3/3] net: sxgbe: make "core_ops" static Dan Carpenter
2014-04-01 20:27 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).