========== build_clang - FAILED In file included from ../kernel/bpf/lpm_trie.c:9: In file included from ../include/linux/bpf.h:21: 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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. ld.lld: error: duplicate symbol: lockevent_read >>> defined at qspinlock_stat.h:38 (../kernel/locking/qspinlock_stat.h:38) >>> kernel/locking/qspinlock.o:(lockevent_read) in archive vmlinux.a >>> defined at qspinlock_stat.h:38 (../kernel/locking/qspinlock_stat.h:38) >>> kernel/locking/rqspinlock.o:(.text+0x40) in archive vmlinux.a ld.lld: error: duplicate symbol: __cfi_lockevent_read >>> defined at qspinlock.c >>> kernel/locking/qspinlock.o:(__cfi_lockevent_read) in archive vmlinux.a >>> defined at rqspinlock.c >>> kernel/locking/rqspinlock.o:(.text+0x0) in archive vmlinux.a ld.lld: error: duplicate symbol: __pcpu_unique_pv_kick_time >>> defined at qspinlock.c >>> kernel/locking/qspinlock.o:(__pcpu_unique_pv_kick_time) in archive vmlinux.a >>> defined at rqspinlock.c >>> kernel/locking/rqspinlock.o:(.discard+0x0) in archive vmlinux.a ld.lld: error: duplicate symbol: __pcpu_unique_qnodes >>> defined at qspinlock.c >>> kernel/locking/qspinlock.o:(__pcpu_unique_qnodes) in archive vmlinux.a >>> defined at rqspinlock.c >>> kernel/locking/rqspinlock.o:(.discard+0x5) in archive vmlinux.a make[3]: *** [../scripts/Makefile.vmlinux_o:65: vmlinux.o] Error 1 make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1206: vmlinux_o] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 In file included from ../kernel/bpf/lpm_trie.c:9: In file included from ../include/linux/bpf.h:21: 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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. ld.lld: error: duplicate symbol: lockevent_read >>> defined at qspinlock_stat.h:38 (../kernel/locking/qspinlock_stat.h:38) >>> kernel/locking/qspinlock.o:(lockevent_read) in archive vmlinux.a >>> defined at qspinlock_stat.h:38 (../kernel/locking/qspinlock_stat.h:38) >>> kernel/locking/rqspinlock.o:(.text+0x40) in archive vmlinux.a ld.lld: error: duplicate symbol: __cfi_lockevent_read >>> defined at qspinlock.c >>> kernel/locking/qspinlock.o:(__cfi_lockevent_read) in archive vmlinux.a >>> defined at rqspinlock.c >>> kernel/locking/rqspinlock.o:(.text+0x0) in archive vmlinux.a ld.lld: error: duplicate symbol: __pcpu_unique_pv_kick_time >>> defined at qspinlock.c >>> kernel/locking/qspinlock.o:(__pcpu_unique_pv_kick_time) in archive vmlinux.a >>> defined at rqspinlock.c >>> kernel/locking/rqspinlock.o:(.discard+0x0) in archive vmlinux.a ld.lld: error: duplicate symbol: __pcpu_unique_qnodes >>> defined at qspinlock.c >>> kernel/locking/qspinlock.o:(__pcpu_unique_qnodes) in archive vmlinux.a >>> defined at rqspinlock.c >>> kernel/locking/rqspinlock.o:(.discard+0x5) in archive vmlinux.a make[3]: *** [../scripts/Makefile.vmlinux_o:65: vmlinux.o] Error 1 make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1206: vmlinux_o] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2