In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c:7: In file included from ../include/linux/of_mdio.h:12: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:8: In file included from ../include/linux/cacheflush.h:5: In file included from ../arch/x86/include/asm/cacheflush.h:5: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c:8: In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h:11: ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:87:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 87 | MAC_MODE_MII_10 = (MAC_IF_MII | MAC_SPEED_10), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:89:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 89 | MAC_MODE_MII_100 = (MAC_IF_MII | MAC_SPEED_100), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:91:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 91 | MAC_MODE_RMII_10 = (MAC_IF_RMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:93:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 93 | MAC_MODE_RMII_100 = (MAC_IF_RMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:95:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 95 | MAC_MODE_SMII_10 = (MAC_IF_SMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:97:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 97 | MAC_MODE_SMII_100 = (MAC_IF_SMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:99:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 99 | MAC_MODE_GMII_1000 = (MAC_IF_GMII | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:101:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 101 | MAC_MODE_RGMII_10 = (MAC_IF_RGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:103:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 103 | MAC_MODE_RGMII_100 = (MAC_IF_RGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:105:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 105 | MAC_MODE_RGMII_1000 = (MAC_IF_RGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:107:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 107 | MAC_MODE_TBI_1000 = (MAC_IF_TBI | MAC_SPEED_1000), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:109:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 109 | MAC_MODE_RTBI_1000 = (MAC_IF_RTBI | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:111:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 111 | MAC_MODE_SGMII_10 = (MAC_IF_SGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:113:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 113 | MAC_MODE_SGMII_100 = (MAC_IF_SGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:115:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 115 | MAC_MODE_SGMII_1000 = (MAC_IF_SGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:117:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 117 | MAC_MODE_XGMII_10000 = (MAC_IF_XGMII | MAC_SPEED_10000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:119:40: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 119 | MAC_MODE_QSGMII_1000 = (MAC_IF_QSGMII | MAC_SPEED_1000) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 21 warnings generated. In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c:6: In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:9: In file included from ../include/linux/if_vlan.h:10: In file included from ../include/linux/netdevice.h:38: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:8: In file included from ../include/linux/cacheflush.h:5: In file included from ../arch/x86/include/asm/cacheflush.h:5: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c:6: ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:87:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 87 | MAC_MODE_MII_10 = (MAC_IF_MII | MAC_SPEED_10), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:89:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 89 | MAC_MODE_MII_100 = (MAC_IF_MII | MAC_SPEED_100), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:91:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 91 | MAC_MODE_RMII_10 = (MAC_IF_RMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:93:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 93 | MAC_MODE_RMII_100 = (MAC_IF_RMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:95:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 95 | MAC_MODE_SMII_10 = (MAC_IF_SMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:97:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 97 | MAC_MODE_SMII_100 = (MAC_IF_SMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:99:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 99 | MAC_MODE_GMII_1000 = (MAC_IF_GMII | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:101:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 101 | MAC_MODE_RGMII_10 = (MAC_IF_RGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:103:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 103 | MAC_MODE_RGMII_100 = (MAC_IF_RGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:105:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 105 | MAC_MODE_RGMII_1000 = (MAC_IF_RGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:107:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 107 | MAC_MODE_TBI_1000 = (MAC_IF_TBI | MAC_SPEED_1000), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:109:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 109 | MAC_MODE_RTBI_1000 = (MAC_IF_RTBI | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:111:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 111 | MAC_MODE_SGMII_10 = (MAC_IF_SGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:113:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 113 | MAC_MODE_SGMII_100 = (MAC_IF_SGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:115:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 115 | MAC_MODE_SGMII_1000 = (MAC_IF_SGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:117:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 117 | MAC_MODE_XGMII_10000 = (MAC_IF_XGMII | MAC_SPEED_10000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:119:40: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 119 | MAC_MODE_QSGMII_1000 = (MAC_IF_QSGMII | MAC_SPEED_1000) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 21 warnings generated. In file included from ../drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:6: In file included from ../include/linux/etherdevice.h:20: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:8: In file included from ../include/linux/cacheflush.h:5: In file included from ../arch/x86/include/asm/cacheflush.h:5: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:11: ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:87:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 87 | MAC_MODE_MII_10 = (MAC_IF_MII | MAC_SPEED_10), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:89:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 89 | MAC_MODE_MII_100 = (MAC_IF_MII | MAC_SPEED_100), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:91:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 91 | MAC_MODE_RMII_10 = (MAC_IF_RMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:93:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 93 | MAC_MODE_RMII_100 = (MAC_IF_RMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:95:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 95 | MAC_MODE_SMII_10 = (MAC_IF_SMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:97:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 97 | MAC_MODE_SMII_100 = (MAC_IF_SMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:99:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 99 | MAC_MODE_GMII_1000 = (MAC_IF_GMII | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:101:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 101 | MAC_MODE_RGMII_10 = (MAC_IF_RGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:103:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 103 | MAC_MODE_RGMII_100 = (MAC_IF_RGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:105:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 105 | MAC_MODE_RGMII_1000 = (MAC_IF_RGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:107:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 107 | MAC_MODE_TBI_1000 = (MAC_IF_TBI | MAC_SPEED_1000), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:109:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 109 | MAC_MODE_RTBI_1000 = (MAC_IF_RTBI | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:111:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 111 | MAC_MODE_SGMII_10 = (MAC_IF_SGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:113:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 113 | MAC_MODE_SGMII_100 = (MAC_IF_SGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:115:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 115 | MAC_MODE_SGMII_1000 = (MAC_IF_SGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:117:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 117 | MAC_MODE_XGMII_10000 = (MAC_IF_XGMII | MAC_SPEED_10000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:119:40: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 119 | MAC_MODE_QSGMII_1000 = (MAC_IF_QSGMII | MAC_SPEED_1000) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 21 warnings generated. In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:9: In file included from ../include/linux/netdevice.h:38: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:8: In file included from ../include/linux/cacheflush.h:5: In file included from ../arch/x86/include/asm/cacheflush.h:5: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:13: In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.h:11: In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h:11: ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:87:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 87 | MAC_MODE_MII_10 = (MAC_IF_MII | MAC_SPEED_10), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:89:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 89 | MAC_MODE_MII_100 = (MAC_IF_MII | MAC_SPEED_100), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:91:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 91 | MAC_MODE_RMII_10 = (MAC_IF_RMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:93:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 93 | MAC_MODE_RMII_100 = (MAC_IF_RMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:95:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 95 | MAC_MODE_SMII_10 = (MAC_IF_SMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:97:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 97 | MAC_MODE_SMII_100 = (MAC_IF_SMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:99:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 99 | MAC_MODE_GMII_1000 = (MAC_IF_GMII | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:101:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 101 | MAC_MODE_RGMII_10 = (MAC_IF_RGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:103:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 103 | MAC_MODE_RGMII_100 = (MAC_IF_RGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:105:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 105 | MAC_MODE_RGMII_1000 = (MAC_IF_RGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:107:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 107 | MAC_MODE_TBI_1000 = (MAC_IF_TBI | MAC_SPEED_1000), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:109:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 109 | MAC_MODE_RTBI_1000 = (MAC_IF_RTBI | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:111:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 111 | MAC_MODE_SGMII_10 = (MAC_IF_SGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:113:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 113 | MAC_MODE_SGMII_100 = (MAC_IF_SGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:115:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 115 | MAC_MODE_SGMII_1000 = (MAC_IF_SGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:117:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 117 | MAC_MODE_XGMII_10000 = (MAC_IF_XGMII | MAC_SPEED_10000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:119:40: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 119 | MAC_MODE_QSGMII_1000 = (MAC_IF_QSGMII | MAC_SPEED_1000) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 21 warnings generated. In file included from ../lib/vsprintf.c:30: In file included from ../include/linux/kallsyms.h:13: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../lib/vsprintf.c:50: In file included from ../lib/../mm/internal.h:13: ../include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~ ^ ~~~ ../include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 49 | NR_ZONE_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~~~~~~ ^ ~~~ 6 warnings generated. In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c:10: In file included from ../include/linux/netdevice.h:38: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:8: In file included from ../include/linux/cacheflush.h:5: In file included from ../arch/x86/include/asm/cacheflush.h:5: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c:16: In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h:11: ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:87:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 87 | MAC_MODE_MII_10 = (MAC_IF_MII | MAC_SPEED_10), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:89:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 89 | MAC_MODE_MII_100 = (MAC_IF_MII | MAC_SPEED_100), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:91:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 91 | MAC_MODE_RMII_10 = (MAC_IF_RMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:93:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 93 | MAC_MODE_RMII_100 = (MAC_IF_RMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:95:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 95 | MAC_MODE_SMII_10 = (MAC_IF_SMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:97:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 97 | MAC_MODE_SMII_100 = (MAC_IF_SMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:99:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 99 | MAC_MODE_GMII_1000 = (MAC_IF_GMII | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:101:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 101 | MAC_MODE_RGMII_10 = (MAC_IF_RGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:103:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 103 | MAC_MODE_RGMII_100 = (MAC_IF_RGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:105:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 105 | MAC_MODE_RGMII_1000 = (MAC_IF_RGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:107:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 107 | MAC_MODE_TBI_1000 = (MAC_IF_TBI | MAC_SPEED_1000), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:109:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 109 | MAC_MODE_RTBI_1000 = (MAC_IF_RTBI | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:111:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 111 | MAC_MODE_SGMII_10 = (MAC_IF_SGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:113:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 113 | MAC_MODE_SGMII_100 = (MAC_IF_SGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:115:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 115 | MAC_MODE_SGMII_1000 = (MAC_IF_SGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:117:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 117 | MAC_MODE_XGMII_10000 = (MAC_IF_XGMII | MAC_SPEED_10000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:119:40: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 119 | MAC_MODE_QSGMII_1000 = (MAC_IF_QSGMII | MAC_SPEED_1000) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 21 warnings generated. In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c:7: In file included from ../include/linux/of_mdio.h:12: In file included from ../include/linux/phy.h:16: In file included from ../include/linux/ethtool.h:18: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:8: In file included from ../include/linux/cacheflush.h:5: In file included from ../arch/x86/include/asm/cacheflush.h:5: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c:8: In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h:11: ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:87:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 87 | MAC_MODE_MII_10 = (MAC_IF_MII | MAC_SPEED_10), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:89:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 89 | MAC_MODE_MII_100 = (MAC_IF_MII | MAC_SPEED_100), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:91:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 91 | MAC_MODE_RMII_10 = (MAC_IF_RMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:93:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 93 | MAC_MODE_RMII_100 = (MAC_IF_RMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:95:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 95 | MAC_MODE_SMII_10 = (MAC_IF_SMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:97:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 97 | MAC_MODE_SMII_100 = (MAC_IF_SMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:99:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 99 | MAC_MODE_GMII_1000 = (MAC_IF_GMII | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:101:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 101 | MAC_MODE_RGMII_10 = (MAC_IF_RGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:103:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 103 | MAC_MODE_RGMII_100 = (MAC_IF_RGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:105:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 105 | MAC_MODE_RGMII_1000 = (MAC_IF_RGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:107:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 107 | MAC_MODE_TBI_1000 = (MAC_IF_TBI | MAC_SPEED_1000), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:109:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 109 | MAC_MODE_RTBI_1000 = (MAC_IF_RTBI | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:111:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 111 | MAC_MODE_SGMII_10 = (MAC_IF_SGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:113:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 113 | MAC_MODE_SGMII_100 = (MAC_IF_SGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:115:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 115 | MAC_MODE_SGMII_1000 = (MAC_IF_SGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:117:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 117 | MAC_MODE_XGMII_10000 = (MAC_IF_XGMII | MAC_SPEED_10000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:119:40: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 119 | MAC_MODE_QSGMII_1000 = (MAC_IF_QSGMII | MAC_SPEED_1000) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 21 warnings generated. In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:12: In file included from ../include/linux/netdevice.h:38: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:8: In file included from ../include/linux/cacheflush.h:5: In file included from ../arch/x86/include/asm/cacheflush.h:5: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:19: In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h:11: ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:87:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 87 | MAC_MODE_MII_10 = (MAC_IF_MII | MAC_SPEED_10), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:89:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 89 | MAC_MODE_MII_100 = (MAC_IF_MII | MAC_SPEED_100), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:91:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 91 | MAC_MODE_RMII_10 = (MAC_IF_RMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:93:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 93 | MAC_MODE_RMII_100 = (MAC_IF_RMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:95:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 95 | MAC_MODE_SMII_10 = (MAC_IF_SMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:97:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 97 | MAC_MODE_SMII_100 = (MAC_IF_SMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:99:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 99 | MAC_MODE_GMII_1000 = (MAC_IF_GMII | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:101:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 101 | MAC_MODE_RGMII_10 = (MAC_IF_RGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:103:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 103 | MAC_MODE_RGMII_100 = (MAC_IF_RGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:105:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 105 | MAC_MODE_RGMII_1000 = (MAC_IF_RGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:107:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 107 | MAC_MODE_TBI_1000 = (MAC_IF_TBI | MAC_SPEED_1000), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:109:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 109 | MAC_MODE_RTBI_1000 = (MAC_IF_RTBI | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:111:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 111 | MAC_MODE_SGMII_10 = (MAC_IF_SGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:113:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 113 | MAC_MODE_SGMII_100 = (MAC_IF_SGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:115:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 115 | MAC_MODE_SGMII_1000 = (MAC_IF_SGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:117:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 117 | MAC_MODE_XGMII_10000 = (MAC_IF_XGMII | MAC_SPEED_10000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:119:40: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 119 | MAC_MODE_QSGMII_1000 = (MAC_IF_QSGMII | MAC_SPEED_1000) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 21 warnings generated. In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:12: In file included from ../include/linux/netdevice.h:38: In file included from ../include/net/net_namespace.h:43: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:8: In file included from ../include/linux/cacheflush.h:5: In file included from ../arch/x86/include/asm/cacheflush.h:5: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:21: ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:87:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 87 | MAC_MODE_MII_10 = (MAC_IF_MII | MAC_SPEED_10), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:89:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 89 | MAC_MODE_MII_100 = (MAC_IF_MII | MAC_SPEED_100), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:91:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 91 | MAC_MODE_RMII_10 = (MAC_IF_RMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:93:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 93 | MAC_MODE_RMII_100 = (MAC_IF_RMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:95:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 95 | MAC_MODE_SMII_10 = (MAC_IF_SMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:97:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 97 | MAC_MODE_SMII_100 = (MAC_IF_SMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:99:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 99 | MAC_MODE_GMII_1000 = (MAC_IF_GMII | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:101:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 101 | MAC_MODE_RGMII_10 = (MAC_IF_RGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:103:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 103 | MAC_MODE_RGMII_100 = (MAC_IF_RGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:105:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 105 | MAC_MODE_RGMII_1000 = (MAC_IF_RGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:107:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 107 | MAC_MODE_TBI_1000 = (MAC_IF_TBI | MAC_SPEED_1000), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:109:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 109 | MAC_MODE_RTBI_1000 = (MAC_IF_RTBI | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:111:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 111 | MAC_MODE_SGMII_10 = (MAC_IF_SGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:113:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 113 | MAC_MODE_SGMII_100 = (MAC_IF_SGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:115:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 115 | MAC_MODE_SGMII_1000 = (MAC_IF_SGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:117:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 117 | MAC_MODE_XGMII_10000 = (MAC_IF_XGMII | MAC_SPEED_10000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:119:40: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 119 | MAC_MODE_QSGMII_1000 = (MAC_IF_QSGMII | MAC_SPEED_1000) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 21 warnings generated. In file included from ../drivers/net/ethernet/hisilicon/hns/hns_enet.c:8: In file included from ../include/linux/etherdevice.h:20: In file included from ../include/linux/if_ether.h:19: In file included from ../include/linux/skbuff.h:17: In file included from ../include/linux/bvec.h:10: In file included from ../include/linux/highmem.h:8: In file included from ../include/linux/cacheflush.h:5: In file included from ../arch/x86/include/asm/cacheflush.h:5: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/hisilicon/hns/hns_enet.c:22: ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:87:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 87 | MAC_MODE_MII_10 = (MAC_IF_MII | MAC_SPEED_10), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:89:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 89 | MAC_MODE_MII_100 = (MAC_IF_MII | MAC_SPEED_100), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:91:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 91 | MAC_MODE_RMII_10 = (MAC_IF_RMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:93:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 93 | MAC_MODE_RMII_100 = (MAC_IF_RMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:95:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 95 | MAC_MODE_SMII_10 = (MAC_IF_SMII | MAC_SPEED_10), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:97:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 97 | MAC_MODE_SMII_100 = (MAC_IF_SMII | MAC_SPEED_100), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:99:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 99 | MAC_MODE_GMII_1000 = (MAC_IF_GMII | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:101:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 101 | MAC_MODE_RGMII_10 = (MAC_IF_RGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:103:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 103 | MAC_MODE_RGMII_100 = (MAC_IF_RGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:105:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 105 | MAC_MODE_RGMII_1000 = (MAC_IF_RGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:107:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 107 | MAC_MODE_TBI_1000 = (MAC_IF_TBI | MAC_SPEED_1000), | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:109:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 109 | MAC_MODE_RTBI_1000 = (MAC_IF_RTBI | MAC_SPEED_1000), | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:111:36: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 111 | MAC_MODE_SGMII_10 = (MAC_IF_SGMII | MAC_SPEED_10), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:113:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 113 | MAC_MODE_SGMII_100 = (MAC_IF_SGMII | MAC_SPEED_100), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:115:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 115 | MAC_MODE_SGMII_1000 = (MAC_IF_SGMII | MAC_SPEED_1000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:117:39: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 117 | MAC_MODE_XGMII_10000 = (MAC_IF_XGMII | MAC_SPEED_10000), | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h:119:40: warning: bitwise operation between different enumeration types ('enum mac_intf' and 'enum mac_speed') [-Wenum-enum-conversion] 119 | MAC_MODE_QSGMII_1000 = (MAC_IF_QSGMII | MAC_SPEED_1000) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 21 warnings generated. In file included from ../lib/vsprintf.c:30: In file included from ../include/linux/kallsyms.h:13: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../lib/vsprintf.c:50: In file included from ../lib/../mm/internal.h:13: ../include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~ ^ ~~~ ../include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 49 | NR_ZONE_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~~~~~~ ^ ~~~ 6 warnings generated. In file included from ../lib/vsprintf.c:30: In file included from ../include/linux/kallsyms.h:13: In file included from ../include/linux/mm.h:2223: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from ../lib/vsprintf.c:50: In file included from ../lib/../mm/internal.h:13: ../include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~ ^ ~~~ ../include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 49 | NR_ZONE_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~~~~~~ ^ ~~~ 6 warnings generated.