From: Wei Yongjun Date: Tue, 12 Jul 2016 15:24:10 +0000 (+0000) Subject: net: dsa: Fix non static symbol warning X-Git-Tag: android-x86-7.1-r1~1071^2~133 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=85c22bad56ec0d0d8d8518414f97106233132e43;p=android-x86%2Fkernel.git net: dsa: Fix non static symbol warning 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 Signed-off-by: David S. Miller --- diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 78e4c0131c30..f30bad9678f0 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;