========== build_clang - FAILED In file included from ../drivers/net/ethernet/microsoft/mana/gdma_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 + | ~~~~~~~~~~~~~~~~~~~~~~ :4:97: error: expected string 4 | .section ".export_symbol","a" ; __export_symbol_mana_gd_create_mana_wq_cq: ; .asciz "" ; .asciz NET_MANA ; .balign 8 ; .quad mana_gd_create_mana_wq_cq ; .previous | ^ 3 warnings and 1 error generated. make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/microsoft/mana/gdma_main.o] Error 1 make[7]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/microsoft/mana] Error 2 make[6]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/microsoft] 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.... In file included from ../drivers/infiniband/hw/mana/qp.c:6: In file included from ../drivers/infiniband/hw/mana/mana_ib.h:9: In file included from ../include/rdma/ib_verbs.h:15: 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. 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/microsoft/mana/gdma_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 + | ~~~~~~~~~~~~~~~~~~~~~~ :4:97: error: expected string 4 | .section ".export_symbol","a" ; __export_symbol_mana_gd_create_mana_wq_cq: ; .asciz "" ; .asciz NET_MANA ; .balign 8 ; .quad mana_gd_create_mana_wq_cq ; .previous | ^ 3 warnings and 1 error generated. make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/microsoft/mana/gdma_main.o] Error 1 make[7]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/microsoft/mana] Error 2 make[6]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/microsoft] 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.... In file included from ../drivers/infiniband/hw/mana/qp.c:6: In file included from ../drivers/infiniband/hw/mana/mana_ib.h:9: In file included from ../include/rdma/ib_verbs.h:15: 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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../drivers/infiniband/hw/mana/qp.c:549:73: warning: variable 'err' is uninitialized when used here [-Wuninitialized] 549 | ibdev_dbg(&mdev->ib_dev, "User-level UD QPs are not supported, %d\n", err); | ^~~ ../include/rdma/ib_verbs.h:83:37: note: expanded from macro 'ibdev_dbg' 83 | dynamic_ibdev_dbg(__dev, format, ##args) | ^~~~ ../include/linux/dynamic_debug.h:282:19: note: expanded from macro 'dynamic_ibdev_dbg' 282 | dev, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~ ../include/linux/dynamic_debug.h:250:59: note: expanded from macro '_dynamic_func_call' 250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~ ../include/linux/dynamic_debug.h:248:65: note: expanded from macro '_dynamic_func_call_cls' 248 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~ ../include/linux/dynamic_debug.h:224:15: note: expanded from macro '__dynamic_func_call_cls' 224 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ ../drivers/infiniband/hw/mana/qp.c:546:12: note: initialize the variable 'err' to silence this warning 546 | int i, err; | ^ | = 0 4 warnings generated. 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.QooeAk3AFu 2025-01-20 10:04:41.641591225 -0800 +++ /tmp/tmp.NFFPDhcIQb 2025-01-20 10:04:58.552405402 -0800 @@ -51 +51,23 @@ -3 warnings generated. +../drivers/infiniband/hw/mana/qp.c:549:73: warning: variable 'err' is uninitialized when used here [-Wuninitialized] + 549 | ibdev_dbg(&mdev->ib_dev, "User-level UD QPs are not supported, %d\n", err); + | ^~~ +../include/rdma/ib_verbs.h:83:37: note: expanded from macro 'ibdev_dbg' + 83 | dynamic_ibdev_dbg(__dev, format, ##args) + | ^~~~ +../include/linux/dynamic_debug.h:282:19: note: expanded from macro 'dynamic_ibdev_dbg' + 282 | dev, fmt, ##__VA_ARGS__) + | ^~~~~~~~~~~ +../include/linux/dynamic_debug.h:250:59: note: expanded from macro '_dynamic_func_call' + 250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) + | ^~~~~~~~~~~ +../include/linux/dynamic_debug.h:248:65: note: expanded from macro '_dynamic_func_call_cls' + 248 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__) + | ^~~~~~~~~~~ +../include/linux/dynamic_debug.h:224:15: note: expanded from macro '__dynamic_func_call_cls' + 224 | func(&id, ##__VA_ARGS__); \ + | ^~~~~~~~~~~ +../drivers/infiniband/hw/mana/qp.c:546:12: note: initialize the variable 'err' to silence this warning + 546 | int i, err; + | ^ + | = 0 +4 warnings generated. Per-file breakdown --- /tmp/tmp.3kBtKrpe7z 2025-01-20 10:04:58.558405336 -0800 +++ /tmp/tmp.1srpYZLVgS 2025-01-20 10:04:58.562405292 -0800 @@ -0,0 +1 @@ + 2 ../drivers/infiniband/hw/mana/qp.c