projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6acf68
)
net: dsa: Fix non static symbol warning
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 15:24:10 +0000
(15:24 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 12 Jul 2016 18:34:30 +0000
(11:34 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c
patch
|
blob
|
history
diff --git
a/net/dsa/dsa2.c
b/net/dsa/dsa2.c
index
78e4c01
..
f30bad9
100644
(file)
--- 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;