========== build_clang - FAILED In file included from ../kernel/bpf/syscall.c:5: 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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../kernel/bpf/syscall.c:6463:20: error: call to undeclared function 'bpf_core_essential_name_len'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 6463 | ext_essent_len = bpf_core_essential_name_len(ext->name); | ^ ../kernel/bpf/syscall.c:7594:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7594 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/syscall.c:7644:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7644 | .arg4_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 5 warnings and 1 error generated. make[5]: *** [../scripts/Makefile.build:194: kernel/bpf/syscall.o] Error 1 make[4]: *** [../scripts/Makefile.build:440: kernel/bpf] Error 2 make[3]: *** [../scripts/Makefile.build:440: kernel] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1993: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 In file included from ../kernel/bpf/syscall.c:5: 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: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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../kernel/bpf/syscall.c:6463:20: error: call to undeclared function 'bpf_core_essential_name_len'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 6463 | ext_essent_len = bpf_core_essential_name_len(ext->name); | ^ ../kernel/bpf/syscall.c:7156:8: error: call to undeclared function 'bpf_core_types_are_compat'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 7156 | err = bpf_core_types_are_compat(obj->btf, local_type_id, | ^ ../kernel/bpf/syscall.c:7132:36: warning: variable 'targ_type' set but not used [-Wunused-but-set-variable] 7132 | const struct btf_type *targ_var, *targ_type; | ^ ../kernel/bpf/syscall.c:7135:14: warning: variable 'targ_var_name' set but not used [-Wunused-but-set-variable] 7135 | const char *targ_var_name; | ^ ../kernel/bpf/syscall.c:7193:8: error: call to undeclared function 'bpf_core_types_are_compat'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 7193 | ret = bpf_core_types_are_compat(obj->btf, local_func_proto_id, | ^ ../kernel/bpf/syscall.c:7768:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7768 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/syscall.c:7818:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7818 | .arg4_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 7 warnings and 3 errors generated. make[5]: *** [../scripts/Makefile.build:194: kernel/bpf/syscall.o] Error 1 make[4]: *** [../scripts/Makefile.build:440: kernel/bpf] Error 2 make[3]: *** [../scripts/Makefile.build:440: kernel] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1993: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.OuK4PxkJXq 2025-01-09 16:11:50.192996003 -0800 +++ /tmp/tmp.v8bidz2Yqv 2025-01-09 16:12:06.933817319 -0800 @@ -20,2 +20,14 @@ -../kernel/bpf/syscall.c:7594:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] - 7594 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, +../kernel/bpf/syscall.c:7156:8: error: call to undeclared function 'bpf_core_types_are_compat'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 7156 | err = bpf_core_types_are_compat(obj->btf, local_type_id, + | ^ +../kernel/bpf/syscall.c:7132:36: warning: variable 'targ_type' set but not used [-Wunused-but-set-variable] + 7132 | const struct btf_type *targ_var, *targ_type; + | ^ +../kernel/bpf/syscall.c:7135:14: warning: variable 'targ_var_name' set but not used [-Wunused-but-set-variable] + 7135 | const char *targ_var_name; + | ^ +../kernel/bpf/syscall.c:7193:8: error: call to undeclared function 'bpf_core_types_are_compat'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 7193 | ret = bpf_core_types_are_compat(obj->btf, local_func_proto_id, + | ^ +../kernel/bpf/syscall.c:7768:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] + 7768 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, @@ -23,2 +35,2 @@ -../kernel/bpf/syscall.c:7644:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] - 7644 | .arg4_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, +../kernel/bpf/syscall.c:7818:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] + 7818 | .arg4_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, @@ -26 +38 @@ -5 warnings and 1 error generated. +7 warnings and 3 errors generated. Per-file breakdown --- /tmp/tmp.fOvHDiAXaN 2025-01-09 16:12:06.941817234 -0800 +++ /tmp/tmp.tB3Zc2wJ6I 2025-01-09 16:12:06.943817212 -0800 @@ -1 +1 @@ - 3 ../kernel/bpf/syscall.c + 7 ../kernel/bpf/syscall.c