]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ntb_hw_switchtec: Make function switchtec_ntb_remove() static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Jan 2018 02:09:21 +0000 (02:09 +0000)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:24 +0000 (22:17 -0500)
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>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c

index a1d547b6aa124de712d18bb327e46fb4595fd20c..f624ae27eabeea8036c43f421b831685b607e127 100644 (file)
@@ -1549,8 +1549,8 @@ static int switchtec_ntb_add(struct device *dev,
        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_ntb *sndev = stdev->sndev;