Skip to contentSkip to conversation

net: hns3: make function hclge_set_all_vf_rst() static

PATCH Applied Wei Yongjun 2 participants 2 messages Feb 16, 2019 – Feb 17, 2019

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: hns3: make function hclge_set_all_vf_rst() static

Fixes the following sparse warning:

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2431:5: warning:
symbol 'hclge_set_all_vf_rst' was not declared. Should it be static?

Fixes aa5c4f175be6 ("net: hns3: add reset handling for VF when doing PF reset")
---
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +1 -1
index ab90108..362b03c 100644
@@ -2428,7 +2428,7 @@ static int hclge_set_vf_rst(struct hclge_dev *hdev, int func_id, bool reset)
 	return hclge_cmd_send(&hdev->hw, &desc, 1);
 }
 
-int hclge_set_all_vf_rst(struct hclge_dev *hdev, bool reset)
+static int hclge_set_all_vf_rst(struct hclge_dev *hdev, bool reset)
 {
 	int i;
 
maintainer Applied
#1 lore raw

From: Wei Yongjun <[email protected]>
Date: Sat, 16 Feb 2019 08:15:52 +0000

Quoted 7 lines

Fixes the following sparse warning:

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2431:5: warning:
symbol 'hclge_set_all_vf_rst' was not declared. Should it be static?

Fixes aa5c4f175be6 ("net: hns3: add reset handling for VF when doing PF reset")

Applied, thank you.