OSDN Git Service

net: hns3: Make hclgevf_update_link_mode static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 19 Mar 2019 14:46:41 +0000 (22:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Mar 2019 21:11:06 +0000 (14:11 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

index 8bc28e6..65bdc68 100644 (file)
@@ -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