Skip to content

Commit c019087

Browse files
Wei Yongjundavem330
authored andcommitted
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: e46da6a ("net: hns3: refine function hclge_cfg_mac_speed_dup_hw()") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9ace230 commit c019087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2653,7 +2653,7 @@ static u8 hclge_check_speed_dup(u8 duplex, int speed)
26532653
return duplex;
26542654
}
26552655

2656-
struct hclge_mac_speed_map hclge_mac_speed_map_to_fw[] = {
2656+
static struct hclge_mac_speed_map hclge_mac_speed_map_to_fw[] = {
26572657
{HCLGE_MAC_SPEED_10M, HCLGE_FW_MAC_SPEED_10M},
26582658
{HCLGE_MAC_SPEED_100M, HCLGE_FW_MAC_SPEED_100M},
26592659
{HCLGE_MAC_SPEED_1G, HCLGE_FW_MAC_SPEED_1G},

0 commit comments

Comments
 (0)