hns3: Another build fix.
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function ‘hclge_get_sset_count’: drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:496:31: error: ‘HNAE3_REVISION_ID_21’ undeclared (first use in this function); did you mean ‘FADT2_REVISION_ID’? if (hdev->pdev->revision >= HNAE3_REVISION_ID_21 || ^~~~~~~~~~~~~~~~~~~~ FADT2_REVISION_ID Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
d401766585
Коммит
3ff6cde846
|
@ -493,7 +493,7 @@ static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset)
|
|||
if (stringset == ETH_SS_TEST) {
|
||||
/* clear loopback bit flags at first */
|
||||
handle->flags = (handle->flags & (~HCLGE_LOOPBACK_TEST_FLAGS));
|
||||
if (hdev->pdev->revision >= HNAE3_REVISION_ID_21 ||
|
||||
if (hdev->pdev->revision >= 0x21 ||
|
||||
hdev->hw.mac.speed == HCLGE_MAC_SPEED_10M ||
|
||||
hdev->hw.mac.speed == HCLGE_MAC_SPEED_100M ||
|
||||
hdev->hw.mac.speed == HCLGE_MAC_SPEED_1G) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче