提交 ae07abdb 编写于 作者: W Wei Yongjun 提交者: Jon Mason

ntb_hw_switchtec: Make function switchtec_ntb_remove() static

Fixes the following sparse warnings:

drivers/ntb/hw/mscc/ntb_hw_switchtec.c:1552:6: warning:
 symbol 'switchtec_ntb_remove' was not declared. Should it be static?
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: NLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: NJon Mason <jdmason@kudzu.us>
上级 2e2bc5a9
...@@ -1549,7 +1549,7 @@ static int switchtec_ntb_add(struct device *dev, ...@@ -1549,7 +1549,7 @@ static int switchtec_ntb_add(struct device *dev,
return rc; return rc;
} }
void switchtec_ntb_remove(struct device *dev, static void switchtec_ntb_remove(struct device *dev,
struct class_interface *class_intf) struct class_interface *class_intf)
{ {
struct switchtec_dev *stdev = to_stdev(dev); struct switchtec_dev *stdev = to_stdev(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册