In file included from ../drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c:8: In file included from ../drivers/net/ethernet/microchip/vcap/vcap_api_private.h:11: In file included from ../drivers/net/ethernet/microchip/vcap/vcap_api.h:11: 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: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/stmicro/stmmac/stmmac_pci.c:13: In file included from ../include/linux/pci.h:1660: 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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:197:28: error: expected ';' after return statement 197 | return PTR_ERR(res.addr) | ^ | ; 3 warnings and 1 error generated. make[8]: *** [../scripts/Makefile.build:207: drivers/net/ethernet/stmicro/stmmac/stmmac_pci.o] Error 1 make[8]: *** Waiting for unfinished jobs.... In file included from ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:6: In file included from ../include/linux/pci.h:1660: 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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:527:11: warning: unused variable 'i' [-Wunused-variable] 527 | int ret, i; | ^ ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:604:6: warning: unused variable 'i' [-Wunused-variable] 604 | int i; | ^ 5 warnings generated. make[7]: *** [../scripts/Makefile.build:465: drivers/net/ethernet/stmicro/stmmac] Error 2 make[6]: *** [../scripts/Makefile.build:465: drivers/net/ethernet/stmicro] Error 2 make[5]: *** [../scripts/Makefile.build:465: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:465: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1994: .] 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/stmicro/stmmac/stmmac_pci.c:13: In file included from ../include/linux/pci.h:1660: 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/stmicro/stmmac/dwmac-loongson.c:6: In file included from ../include/linux/pci.h:1660: 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. vmlinux.o: warning: objtool: .discard.annotate_insn: dodgy linker, sh_entsize != 8 In file included from ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:13: In file included from ../include/linux/pci.h:1660: 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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:197:28: error: expected ';' after return statement 197 | return PTR_ERR(res.addr) | ^ | ; 3 warnings and 1 error generated. make[8]: *** [../scripts/Makefile.build:207: drivers/net/ethernet/stmicro/stmmac/stmmac_pci.o] Error 1 make[8]: *** Waiting for unfinished jobs.... In file included from ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:6: In file included from ../include/linux/pci.h:1660: 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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:527:11: warning: unused variable 'i' [-Wunused-variable] 527 | int ret, i; | ^ ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:604:6: warning: unused variable 'i' [-Wunused-variable] 604 | int i; | ^ 5 warnings generated. make[7]: *** [../scripts/Makefile.build:465: drivers/net/ethernet/stmicro/stmmac] Error 2 make[6]: *** [../scripts/Makefile.build:465: drivers/net/ethernet/stmicro] Error 2 make[5]: *** [../scripts/Makefile.build:465: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:465: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1994: .] 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.xN6DNoCY4a 2025-02-12 12:15:22.096126398 -0800 +++ /tmp/tmp.zKfxyUBRbB 2025-02-12 12:15:41.658911343 -0800 @@ -18 +18,7 @@ -3 warnings generated. +../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:197:28: error: expected ';' after return statement + 197 | return PTR_ERR(res.addr) + | ^ + | ; +3 warnings and 1 error generated. +make[8]: *** [../scripts/Makefile.build:207: drivers/net/ethernet/stmicro/stmmac/stmmac_pci.o] Error 1 +make[8]: *** Waiting for unfinished jobs.... @@ -36,2 +42,16 @@ -3 warnings generated. -vmlinux.o: warning: objtool: .discard.annotate_insn: dodgy linker, sh_entsize != 8 +../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:527:11: warning: unused variable 'i' [-Wunused-variable] + 527 | int ret, i; + | ^ +../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:604:6: warning: unused variable 'i' [-Wunused-variable] + 604 | int i; + | ^ +5 warnings generated. +make[7]: *** [../scripts/Makefile.build:465: drivers/net/ethernet/stmicro/stmmac] Error 2 +make[6]: *** [../scripts/Makefile.build:465: drivers/net/ethernet/stmicro] Error 2 +make[5]: *** [../scripts/Makefile.build:465: drivers/net/ethernet] Error 2 +make[4]: *** [../scripts/Makefile.build:465: drivers/net] Error 2 +make[4]: *** Waiting for unfinished jobs.... +make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 +make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1994: .] Error 2 +make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 +make: *** [Makefile:251: __sub-make] Error 2 Per-file breakdown --- /tmp/tmp.CAPVr7QExD 2025-02-12 12:15:41.664911277 -0800 +++ /tmp/tmp.tGOnvhMT5m 2025-02-12 12:15:41.666911255 -0800 @@ -0,0 +1,2 @@ + 2 ../drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c + 1 ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c