Skip to content
Snippets Groups Projects
Commit ae07abdb authored by Wei Yongjun's avatar Wei Yongjun Committed by Jon Mason
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 2e2bc5a9
No related branches found
No related tags found
No related merge requests found
...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment