Skip to content

Commit 0c03839

Browse files
chongjiapengdavem330
authored andcommitted
net: hns3: make hclgevf_cmd_caps_bit_map0 and hclge_cmd_caps_bit_map0 static
This symbols is not used outside of hclge_cmd.c and hclgevf_cmd.c, so marks it static. Fix the following sparse warning: drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c:345:35: warning: symbol 'hclgevf_cmd_caps_bit_map0' was not declared. Should it be static? drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c:365:33: warning: symbol 'hclge_cmd_caps_bit_map0' was not declared. Should it be static? Reported-by: Abaci Robot <[email protected]> Signed-off-by: chongjiapeng <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b109398 commit 0c03839

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static void hclge_set_default_capability(struct hclge_dev *hdev)
362362
}
363363
}
364364

365-
const struct hclge_caps_bit_map hclge_cmd_caps_bit_map0[] = {
365+
static const struct hclge_caps_bit_map hclge_cmd_caps_bit_map0[] = {
366366
{HCLGE_CAP_UDP_GSO_B, HNAE3_DEV_SUPPORT_UDP_GSO_B},
367367
{HCLGE_CAP_PTP_B, HNAE3_DEV_SUPPORT_PTP_B},
368368
{HCLGE_CAP_INT_QL_B, HNAE3_DEV_SUPPORT_INT_QL_B},

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static void hclgevf_set_default_capability(struct hclgevf_dev *hdev)
342342
set_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps);
343343
}
344344

345-
const struct hclgevf_caps_bit_map hclgevf_cmd_caps_bit_map0[] = {
345+
static const struct hclgevf_caps_bit_map hclgevf_cmd_caps_bit_map0[] = {
346346
{HCLGEVF_CAP_UDP_GSO_B, HNAE3_DEV_SUPPORT_UDP_GSO_B},
347347
{HCLGEVF_CAP_INT_QL_B, HNAE3_DEV_SUPPORT_INT_QL_B},
348348
{HCLGEVF_CAP_TQP_TXRX_INDEP_B, HNAE3_DEV_SUPPORT_TQP_TXRX_INDEP_B},

0 commit comments

Comments
 (0)