summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-08-12 22:41:56 +0800
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-08-13 16:18:12 -0700
commita9a96760165d8781570f2dadeed8e38484b13499 (patch)
treea1a5ed3970a5f7f4f8229ea911fef43e6f4eefc4 /drivers/net/ethernet
parent92b49822288134b4cd17a2c02a15ad265b9b327c (diff)
downloadlinux-stable-a9a96760165d8781570f2dadeed8e38484b13499.tar.gz
linux-stable-a9a96760165d8781570f2dadeed8e38484b13499.tar.bz2
linux-stable-a9a96760165d8781570f2dadeed8e38484b13499.zip
net: hns3: Make hclge_func_reset_sync_vf static
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
index d207dac1fd5e..a3ca0e6e1e30 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
@@ -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;