netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] net: dsa: Fix non static symbol warning
@ 2016-07-12 15:24 weiyj_lk
  2016-07-12 18:49 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: weiyj_lk @ 2016-07-12 15:24 UTC (permalink / raw)
  To: David S . Miller; +Cc: Wei Yongjun, netdev

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Fixes the following sparse warning:

net/dsa/dsa2.c:680:6: warning:
 symbol '_dsa_unregister_switch' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 net/dsa/dsa2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c
index 78e4c01..f30bad9 100644
--- a/net/dsa/dsa2.c
+++ b/net/dsa/dsa2.c
@@ -677,7 +677,7 @@ int dsa_register_switch(struct dsa_switch *ds, struct device_node *np)
 }
 EXPORT_SYMBOL_GPL(dsa_register_switch);
 
-void _dsa_unregister_switch(struct dsa_switch *ds)
+static void _dsa_unregister_switch(struct dsa_switch *ds)
 {
 	struct dsa_switch_tree *dst = ds->dst;
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] net: dsa: Fix non static symbol warning
  2016-07-12 15:24 [PATCH -next] net: dsa: Fix non static symbol warning weiyj_lk
@ 2016-07-12 18:49 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-07-12 18:49 UTC (permalink / raw)
  To: weiyj_lk; +Cc: yongjun_wei, netdev

From: weiyj_lk@163.com
Date: Tue, 12 Jul 2016 15:24:10 +0000

> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> Fixes the following sparse warning:
> 
> net/dsa/dsa2.c:680:6: warning:
>  symbol '_dsa_unregister_switch' was not declared. Should it be static?
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-12 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12 15:24 [PATCH -next] net: dsa: Fix non static symbol warning weiyj_lk
2016-07-12 18:49 ` 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).