提交 85c22bad 编写于 作者: W Wei Yongjun 提交者: David S. Miller

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: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a6acf689
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册