diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-01-22 21:09:21 -0500 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2018-01-28 22:17:24 -0500 |
commit | ae07abdb84b267627f6e10fb813e62de5c3c8117 (patch) | |
tree | 75e22fa7be80657ca67e51b651bd98d0771d7f87 | |
parent | 2e2bc5a9a300261853303c006b7c29faafc64221 (diff) |
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>
-rw-r--r-- | drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c index a1d547b6aa12..f624ae27eabe 100644 --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c | |||
@@ -1549,8 +1549,8 @@ free_and_exit: | |||
1549 | return rc; | 1549 | return rc; |
1550 | } | 1550 | } |
1551 | 1551 | ||
1552 | void switchtec_ntb_remove(struct device *dev, | 1552 | static void switchtec_ntb_remove(struct device *dev, |
1553 | struct class_interface *class_intf) | 1553 | struct class_interface *class_intf) |
1554 | { | 1554 | { |
1555 | struct switchtec_dev *stdev = to_stdev(dev); | 1555 | struct switchtec_dev *stdev = to_stdev(dev); |
1556 | struct switchtec_ntb *sndev = stdev->sndev; | 1556 | struct switchtec_ntb *sndev = stdev->sndev; |