Message ID | 20190319144641.19768-1-yuehaibing@huawei.com |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show |
Series | [net-next] net: hns3: Make hclgevf_update_link_mode static | expand |
From: Yue Haibing <yuehaibing@huawei.com> Date: Tue, 19 Mar 2019 22:46:41 +0800 > From: YueHaibing <yuehaibing@huawei.com> > > Fix sparse warning: > > drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c:407:6: > warning: symbol 'hclgevf_update_link_mode' was not declared. Should it be static? > > Signed-off-by: YueHaibing <yuehaibing@huawei.com> Applied.
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 8bc28e6..65bdc68 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -404,7 +404,7 @@ void hclgevf_update_link_status(struct hclgevf_dev *hdev, int link_state) } } -void hclgevf_update_link_mode(struct hclgevf_dev *hdev) +static void hclgevf_update_link_mode(struct hclgevf_dev *hdev) { #define HCLGEVF_ADVERTISING 0 #define HCLGEVF_SUPPORTED 1