]> Git Repo - linux.git/commitdiff
ntb_hw_switchtec: Make function switchtec_ntb_remove() static
authorWei Yongjun <[email protected]>
Tue, 23 Jan 2018 02:09:21 +0000 (02:09 +0000)
committerJon Mason <[email protected]>
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 <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c

index a1d547b6aa124de712d18bb327e46fb4595fd20c..f624ae27eabeea8036c43f421b831685b607e127 100644 (file)
@@ -1549,8 +1549,8 @@ free_and_exit:
        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;
This page took 0.061559 seconds and 4 git commands to generate.