]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
hns3: Another build fix.
authorDavid S. Miller <davem@davemloft.net>
Sat, 29 Sep 2018 18:21:06 +0000 (11:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Sep 2018 18:21:06 +0000 (11:21 -0700)
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 67b131d4a7ee1adfbc28a6b0aa3026b29910681b..7c8b686b1ce18b3f9ca34db8ee46668c18c0fa88 100644 (file)
@@ -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) {