浏览代码

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: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Wei Yongjun 7 年之前
父节点
当前提交
ae07abdb84
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/ntb/hw/mscc/ntb_hw_switchtec.c

+ 2 - 2
drivers/ntb/hw/mscc/ntb_hw_switchtec.c

@@ -1549,8 +1549,8 @@ free_and_exit:
 	return rc;
 	return rc;
 }
 }
 
 
-void switchtec_ntb_remove(struct device *dev,
-			  struct class_interface *class_intf)
+static void switchtec_ntb_remove(struct device *dev,
+				 struct class_interface *class_intf)
 {
 {
 	struct switchtec_dev *stdev = to_stdev(dev);
 	struct switchtec_dev *stdev = to_stdev(dev);
 	struct switchtec_ntb *sndev = stdev->sndev;
 	struct switchtec_ntb *sndev = stdev->sndev;