In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_main.c:6: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:4: In file included from ../include/linux/ptp_classify.h:14: In file included from ../include/linux/ip.h:16: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:290:29: error: use of undeclared identifier 'wx_ptp_do_aux_work' 290 | wx->ptp_caps.do_aux_work = wx_ptp_do_aux_work; | ^ 3 warnings and 1 error generated. make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/wangxun/libwx/wx_ptp.o] Error 1 make[8]: *** Waiting for unfinished jobs.... In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:4: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c:4: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_main.c:6: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c:5: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c:9: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: In file included from ../include/linux/memcontrol.h:21: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c:6: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c:4: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/libwx/wx_hw.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/libwx/wx_lib.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. make[7]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/wangxun/libwx] Error 2 make[6]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/wangxun] Error 2 make[5]: *** [../scripts/Makefile.build:440: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1993: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c:4: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:4: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c:5: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_main.c:6: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c:6: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c:4: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_main.c:6: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:4: In file included from ../include/linux/ptp_classify.h:14: In file included from ../include/linux/ip.h:16: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:387:42: error: no member named 'ptp_setup_sdp' in 'struct wx' 387 | if (rq->type != PTP_CLK_REQ_PPS || !wx->ptp_setup_sdp) | ~~ ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:391:11: error: use of undeclared identifier 'WX_FLAG_PTP_PPS_ENABLED' 391 | set_bit(WX_FLAG_PTP_PPS_ENABLED, wx->flags); | ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:393:13: error: use of undeclared identifier 'WX_FLAG_PTP_PPS_ENABLED' 393 | clear_bit(WX_FLAG_PTP_PPS_ENABLED, wx->flags); | ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:395:6: error: no member named 'ptp_setup_sdp' in 'struct wx' 395 | wx->ptp_setup_sdp(wx); | ~~ ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:423:27: error: use of undeclared identifier 'WX_TSC_1588_INT_ST' 423 | int_status = rd32ptp(wx, WX_TSC_1588_INT_ST); | ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:424:19: error: use of undeclared identifier 'WX_TSC_1588_INT_ST_TT1' 424 | if (int_status & WX_TSC_1588_INT_ST_TT1) { | ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:426:15: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL' 426 | wr32ptp(wx, WX_TSC_1588_AUX_CTL, 0); | ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:429:12: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL_PLSG' 429 | tsauxc = WX_TSC_1588_AUX_CTL_PLSG | WX_TSC_1588_AUX_CTL_EN_TT0 | | ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:429:39: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL_EN_TT0' 429 | tsauxc = WX_TSC_1588_AUX_CTL_PLSG | WX_TSC_1588_AUX_CTL_EN_TT0 | | ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:430:5: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL_EN_TT1' 430 | WX_TSC_1588_AUX_CTL_EN_TT1 | WX_TSC_1588_AUX_CTL_EN_TS0; | ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:430:34: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL_EN_TS0' 430 | WX_TSC_1588_AUX_CTL_EN_TT1 | WX_TSC_1588_AUX_CTL_EN_TS0; | ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:435:7: error: no member named 'pps_edge_start' in 'struct wx' 435 | wx->pps_edge_start = wx->hw_tc.cycle_last; | ~~ ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:437:7: error: no member named 'pps_edge_end' in 'struct wx' 437 | wx->pps_edge_end = wx->pps_edge_start; | ~~ ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:437:26: error: no member named 'pps_edge_start' in 'struct wx' 437 | wx->pps_edge_end = wx->pps_edge_start; | ~~ ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:448:7: error: no member named 'pps_edge_start' in 'struct wx' 448 | wx->pps_edge_start += div_u64(((u64)rem << cc->shift), cc->mult); | ~~ ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:449:24: error: no member named 'pps_edge_start' in 'struct wx' 449 | trgttiml0 = (u32)wx->pps_edge_start; | ~~ ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:450:25: error: no member named 'pps_edge_start' in 'struct wx' 450 | trgttimh0 = (u32)(wx->pps_edge_start >> 32); | ~~ ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:453:7: error: no member named 'pps_edge_end' in 'struct wx' 453 | wx->pps_edge_end += div_u64(((u64)rem << cc->shift), cc->mult); | ~~ ^ ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:454:24: error: no member named 'pps_edge_end' in 'struct wx' 454 | trgttiml1 = (u32)wx->pps_edge_end; | ~~ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 3 warnings and 20 errors generated. make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/wangxun/libwx/wx_ptp.o] Error 1 make[8]: *** Waiting for unfinished jobs.... In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c:9: In file included from ../include/linux/i2c.h:19: In file included from ../include/linux/regulator/consumer.h:35: In file included from ../include/linux/suspend.h:5: In file included from ../include/linux/swap.h:9: In file included from ../include/linux/memcontrol.h:21: In file included from ../include/linux/mm.h:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/libwx/wx_hw.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. In file included from ../drivers/net/ethernet/wangxun/libwx/wx_lib.c:4: 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:2224: ../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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. make[7]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/wangxun/libwx] Error 2 make[6]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/wangxun] Error 2 make[5]: *** [../scripts/Makefile.build:440: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1993: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.mQsgjAith2 2025-01-06 01:03:00.496986578 -0800 +++ /tmp/tmp.h7QNaOC1Wg 2025-01-06 01:03:18.008799389 -0800 @@ -1,30 +1,4 @@ -In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c:4: -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:2224: - 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + - | ~~~~~~~~~~~~~~~~~~~~~ ^ - 505 | item]; - | ~~~~ - 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + - | ~~~~~~~~~~~~~~~~~~~~~ ^ - 512 | NR_VM_NUMA_EVENT_ITEMS + - | ~~~~~~~~~~~~~~~~~~~~~~ - 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + - | ~~~~~~~~~~~~~~~~~~~~~ ^ - 525 | NR_VM_NUMA_EVENT_ITEMS + - | ~~~~~~~~~~~~~~~~~~~~~~ -3 warnings generated. -In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c:4: -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 ../drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c:4: +In file included from ../include/linux/pci.h:1658: +In file included from ../include/linux/dmapool.h:14: +In file included from ../include/linux/scatterlist.h:8: @@ -45 +19 @@ -In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_main.c:6: +In file included from ../drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:4: @@ -63,3 +37,3 @@ -In file included from ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:4: -In file included from ../include/linux/ptp_classify.h:14: -In file included from ../include/linux/ip.h:16: +In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c:4: +In file included from ../include/linux/etherdevice.h:20: +In file included from ../include/linux/if_ether.h:19: @@ -84,14 +58,5 @@ -../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:290:29: error: use of undeclared identifier 'wx_ptp_do_aux_work' - 290 | wx->ptp_caps.do_aux_work = wx_ptp_do_aux_work; - | ^ -3 warnings and 1 error generated. -make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/wangxun/libwx/wx_ptp.o] Error 1 -make[8]: *** Waiting for unfinished jobs.... -In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c:4: -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: +3 warnings generated. +In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c:5: +In file included from ../include/linux/pci.h:1658: +In file included from ../include/linux/dmapool.h:14: +In file included from ../include/linux/scatterlist.h:8: @@ -112 +77 @@ -In file included from ../drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:4: +In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_main.c:6: @@ -130 +95 @@ -In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c:4: +In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c:6: @@ -148,4 +113,8 @@ -In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_main.c:6: -In file included from ../include/linux/pci.h:1658: -In file included from ../include/linux/dmapool.h:14: -In file included from ../include/linux/scatterlist.h:8: +In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c:4: +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: @@ -166 +135 @@ -In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_irq.c:5: +In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c:4: @@ -184,6 +153,8 @@ -In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c:9: -In file included from ../include/linux/i2c.h:19: -In file included from ../include/linux/regulator/consumer.h:35: -In file included from ../include/linux/suspend.h:5: -In file included from ../include/linux/swap.h:9: -In file included from ../include/linux/memcontrol.h:21: +In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c:4: +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: @@ -204 +175 @@ -In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c:6: +In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_main.c:6: @@ -222,4 +193,88 @@ -In file included from ../drivers/net/ethernet/wangxun/ngbe/ngbe_ethtool.c:4: -In file included from ../include/linux/pci.h:1658: -In file included from ../include/linux/dmapool.h:14: -In file included from ../include/linux/scatterlist.h:8: +In file included from ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:4: +In file included from ../include/linux/ptp_classify.h:14: +In file included from ../include/linux/ip.h:16: +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:2224: + 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + + | ~~~~~~~~~~~~~~~~~~~~~ ^ + 505 | item]; + | ~~~~ + 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + + | ~~~~~~~~~~~~~~~~~~~~~ ^ + 512 | NR_VM_NUMA_EVENT_ITEMS + + | ~~~~~~~~~~~~~~~~~~~~~~ + 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + + | ~~~~~~~~~~~~~~~~~~~~~ ^ + 525 | NR_VM_NUMA_EVENT_ITEMS + + | ~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:387:42: error: no member named 'ptp_setup_sdp' in 'struct wx' + 387 | if (rq->type != PTP_CLK_REQ_PPS || !wx->ptp_setup_sdp) + | ~~ ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:391:11: error: use of undeclared identifier 'WX_FLAG_PTP_PPS_ENABLED' + 391 | set_bit(WX_FLAG_PTP_PPS_ENABLED, wx->flags); + | ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:393:13: error: use of undeclared identifier 'WX_FLAG_PTP_PPS_ENABLED' + 393 | clear_bit(WX_FLAG_PTP_PPS_ENABLED, wx->flags); + | ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:395:6: error: no member named 'ptp_setup_sdp' in 'struct wx' + 395 | wx->ptp_setup_sdp(wx); + | ~~ ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:423:27: error: use of undeclared identifier 'WX_TSC_1588_INT_ST' + 423 | int_status = rd32ptp(wx, WX_TSC_1588_INT_ST); + | ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:424:19: error: use of undeclared identifier 'WX_TSC_1588_INT_ST_TT1' + 424 | if (int_status & WX_TSC_1588_INT_ST_TT1) { + | ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:426:15: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL' + 426 | wr32ptp(wx, WX_TSC_1588_AUX_CTL, 0); + | ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:429:12: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL_PLSG' + 429 | tsauxc = WX_TSC_1588_AUX_CTL_PLSG | WX_TSC_1588_AUX_CTL_EN_TT0 | + | ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:429:39: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL_EN_TT0' + 429 | tsauxc = WX_TSC_1588_AUX_CTL_PLSG | WX_TSC_1588_AUX_CTL_EN_TT0 | + | ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:430:5: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL_EN_TT1' + 430 | WX_TSC_1588_AUX_CTL_EN_TT1 | WX_TSC_1588_AUX_CTL_EN_TS0; + | ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:430:34: error: use of undeclared identifier 'WX_TSC_1588_AUX_CTL_EN_TS0' + 430 | WX_TSC_1588_AUX_CTL_EN_TT1 | WX_TSC_1588_AUX_CTL_EN_TS0; + | ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:435:7: error: no member named 'pps_edge_start' in 'struct wx' + 435 | wx->pps_edge_start = wx->hw_tc.cycle_last; + | ~~ ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:437:7: error: no member named 'pps_edge_end' in 'struct wx' + 437 | wx->pps_edge_end = wx->pps_edge_start; + | ~~ ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:437:26: error: no member named 'pps_edge_start' in 'struct wx' + 437 | wx->pps_edge_end = wx->pps_edge_start; + | ~~ ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:448:7: error: no member named 'pps_edge_start' in 'struct wx' + 448 | wx->pps_edge_start += div_u64(((u64)rem << cc->shift), cc->mult); + | ~~ ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:449:24: error: no member named 'pps_edge_start' in 'struct wx' + 449 | trgttiml0 = (u32)wx->pps_edge_start; + | ~~ ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:450:25: error: no member named 'pps_edge_start' in 'struct wx' + 450 | trgttimh0 = (u32)(wx->pps_edge_start >> 32); + | ~~ ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:453:7: error: no member named 'pps_edge_end' in 'struct wx' + 453 | wx->pps_edge_end += div_u64(((u64)rem << cc->shift), cc->mult); + | ~~ ^ +../drivers/net/ethernet/wangxun/libwx/wx_ptp.c:454:24: error: no member named 'pps_edge_end' in 'struct wx' + 454 | trgttiml1 = (u32)wx->pps_edge_end; + | ~~ ^ +fatal error: too many errors emitted, stopping now [-ferror-limit=] +3 warnings and 20 errors generated. +make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/wangxun/libwx/wx_ptp.o] Error 1 +make[8]: *** Waiting for unfinished jobs.... +In file included from ../drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c:9: +In file included from ../include/linux/i2c.h:19: +In file included from ../include/linux/regulator/consumer.h:35: +In file included from ../include/linux/suspend.h:5: +In file included from ../include/linux/swap.h:9: +In file included from ../include/linux/memcontrol.h:21: Per-file breakdown --- /tmp/tmp.YWI4IAOOp5 2025-01-06 01:03:18.016799303 -0800 +++ /tmp/tmp.4Q0UarUI8V 2025-01-06 01:03:18.018799282 -0800 @@ -1 +1 @@ - 1 ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c + 19 ../drivers/net/ethernet/wangxun/libwx/wx_ptp.c