]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: make symbol 'hclge_mac_speed_map_to_fw' static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 30 Nov 2021 11:34:37 +0000 (11:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Nov 2021 12:28:14 +0000 (12:28 +0000)
commit907451e760dd915e39a3bc2fbd3e32b5b55504c3
tree4b18bb92c10b6f2ed8c945b803a06dc55cb14ffd
parent5c5525ddcde1398c8d528cebae29f5209c26cefe
net: hns3: make symbol 'hclge_mac_speed_map_to_fw' static

The sparse tool complains as follows:

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2656:28: warning:
 symbol 'hclge_mac_speed_map_to_fw' was not declared. Should it be static?

This symbol is not used outside of hclge_main.c, so marks it static.

Fixes: f027bb04cb6d ("net: hns3: refine function hclge_cfg_mac_speed_dup_hw()")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c