diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-12 17:24:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-12 20:34:30 +0200 |
commit | 85c22bad56ec0d0d8d8518414f97106233132e43 (patch) | |
tree | 48cbbe56167f0f5cd132f9f9da4a514b6e6614be /net/dsa | |
parent | dwc_eth_qos: fix missing clk_disable_unprepare() on error in dwceqos_probe() (diff) | |
download | linux-85c22bad56ec0d0d8d8518414f97106233132e43.tar.xz linux-85c22bad56ec0d0d8d8518414f97106233132e43.zip |
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/dsa2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |