Skip to content

Commit d401766

Browse files
committed
hns3: Fix the build.
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c: In function ‘hns3_self_test’: drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c:278:15: error: ‘HNS3_SELF_TEST_TYPE_NUM’ undeclared (first use in this function); did you mean ‘HNS3_SELF_TEST_TPYE_NUM’? int st_param[HNS3_SELF_TEST_TYPE_NUM][2]; ^~~~~~~~~~~~~~~~~~~~~~~ HNS3_SELF_TEST_TPYE_NUM Signed-off-by: David S. Miller <[email protected]>
1 parent 6a42b51 commit d401766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static const struct hns3_stats hns3_rxq_stats[] = {
5353

5454
#define HNS3_TQP_STATS_COUNT (HNS3_TXQ_STATS_COUNT + HNS3_RXQ_STATS_COUNT)
5555

56-
#define HNS3_SELF_TEST_TPYE_NUM 3
56+
#define HNS3_SELF_TEST_TYPE_NUM 3
5757
#define HNS3_NIC_LB_TEST_PKT_NUM 1
5858
#define HNS3_NIC_LB_TEST_RING_ID 0
5959
#define HNS3_NIC_LB_TEST_PACKET_SIZE 128

0 commit comments

Comments
 (0)