From fff3596e1f602ea1209a828e11e850639d110c13 Mon Sep 17 00:00:00 2001 From: liaoguojia Date: Tue, 20 Aug 2019 20:57:24 +0800 Subject: [PATCH] net: hns3: some functions can be static. driver inclusion category: bugfix bugzilla: NA CVE: NA Functions is used only in the declared file. So we need to add a keyword static for them to Reduce coupling. Those functions inclding as below: hclge_func_reset_sync_vf(). This patch as a supplement to patch 26380194. Fix tag: 26380194 (" some functions can be static ") Feature or Bugfix:Bugfix Signed-off-by: liaoguojia Reviewed-by: lipeng Reviewed-by: Yunsheng Lin Reviewed-by: Yang Yingliang Signed-off-by: Yang Yingliang --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index c91a0dd86ea0..b3dec6916fd7 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -3261,7 +3261,7 @@ 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; -- GitLab