Skip to content

Commit fcfeff9

Browse files
Wei Yongjunwesleywesley
authored andcommitted
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 <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]> Signed-off-by: Jon Mason <[email protected]>
1 parent 8f025c2 commit fcfeff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ntb_hw_switchtec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,8 +1519,8 @@ static int switchtec_ntb_add(struct device *dev,
15191519
return rc;
15201520
}
15211521

1522-
void switchtec_ntb_remove(struct device *dev,
1523-
struct class_interface *class_intf)
1522+
static void switchtec_ntb_remove(struct device *dev,
1523+
struct class_interface *class_intf)
15241524
{
15251525
struct switchtec_dev *stdev = to_stdev(dev);
15261526
struct switchtec_ntb *sndev = stdev->sndev;

0 commit comments

Comments
 (0)