net: hns3: Make hclge_func_reset_sync_vf static
authorYueHaibing <yuehaibing@huawei.com>
Mon, 12 Aug 2019 14:41:56 +0000 (22:41 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 13 Aug 2019 23:18:12 +0000 (16:18 -0700)
Fix sparse warning:

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index d207dac..a3ca0e6 100644 (file)
@@ -3187,7 +3187,7 @@ static int hclge_set_all_vf_rst(struct hclge_dev *hdev, bool reset)
        return 0;
 }
 
-int hclge_func_reset_sync_vf(struct hclge_dev *hdev)
+static int hclge_func_reset_sync_vf(struct hclge_dev *hdev)
 {
        struct hclge_pf_rst_sync_cmd *req;
        struct hclge_desc desc;