../kernel/bpf/syscall.c: In function ‘collect_externs’: ../kernel/bpf/syscall.c:6463:34: error: implicit declaration of function ‘bpf_core_essential_name_len’ [-Wimplicit-function-declaration] 6463 | ext_essent_len = bpf_core_essential_name_len(ext->name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../kernel/bpf/syscall.c: At top level: ../kernel/bpf/syscall.c:6817:13: warning: ‘insn_is_pseudo_func’ defined but not used [-Wunused-function] 6817 | static bool insn_is_pseudo_func(struct bpf_insn *insn) | ^~~~~~~~~~~~~~~~~~~ ../kernel/bpf/syscall.c:6797:13: warning: ‘insn_is_subprog_call’ defined but not used [-Wunused-function] 6797 | static bool insn_is_subprog_call(const struct bpf_insn *insn) | ^~~~~~~~~~~~~~~~~~~~ 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 ../kernel/bpf/syscall.c: In function ‘collect_externs’: ../kernel/bpf/syscall.c:6463:34: error: implicit declaration of function ‘bpf_core_essential_name_len’ [-Wimplicit-function-declaration] 6463 | ext_essent_len = bpf_core_essential_name_len(ext->name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../kernel/bpf/syscall.c: In function ‘resolve_ksym_var_btf_id’: ../kernel/bpf/syscall.c:7156:15: error: implicit declaration of function ‘bpf_core_types_are_compat’ [-Wimplicit-function-declaration] 7156 | err = bpf_core_types_are_compat(obj->btf, local_type_id, | ^~~~~~~~~~~~~~~~~~~~~~~~~ ../kernel/bpf/syscall.c:7135:21: warning: variable ‘targ_var_name’ set but not used [-Wunused-but-set-variable] 7135 | const char *targ_var_name; | ^~~~~~~~~~~~~ ../kernel/bpf/syscall.c:7132:43: 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: At top level: ../kernel/bpf/syscall.c:6817:13: warning: ‘insn_is_pseudo_func’ defined but not used [-Wunused-function] 6817 | static bool insn_is_pseudo_func(struct bpf_insn *insn) | ^~~~~~~~~~~~~~~~~~~ ../kernel/bpf/syscall.c:6797:13: warning: ‘insn_is_subprog_call’ defined but not used [-Wunused-function] 6797 | static bool insn_is_subprog_call(const struct bpf_insn *insn) | ^~~~~~~~~~~~~~~~~~~~ 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.JkzYILfIkO 2025-01-09 17:53:06.988634024 -0800 +++ /tmp/tmp.lscDa0nkdk 2025-01-09 17:53:56.690113550 -0800 @@ -4,0 +5,10 @@ +../kernel/bpf/syscall.c: In function ‘resolve_ksym_var_btf_id’: +../kernel/bpf/syscall.c:7156:15: error: implicit declaration of function ‘bpf_core_types_are_compat’ [-Wimplicit-function-declaration] + 7156 | err = bpf_core_types_are_compat(obj->btf, local_type_id, + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +../kernel/bpf/syscall.c:7135:21: warning: variable ‘targ_var_name’ set but not used [-Wunused-but-set-variable] + 7135 | const char *targ_var_name; + | ^~~~~~~~~~~~~ +../kernel/bpf/syscall.c:7132:43: warning: variable ‘targ_type’ set but not used [-Wunused-but-set-variable] + 7132 | const struct btf_type *targ_var, *targ_type; + | ^~~~~~~~~ Per-file breakdown --- /tmp/tmp.b9MtHUodmN 2025-01-09 17:53:56.715113288 -0800 +++ /tmp/tmp.VBJQOGs8OF 2025-01-09 17:53:56.722113215 -0800 @@ -1 +1 @@ - 3 ../kernel/bpf/syscall.c + 6 ../kernel/bpf/syscall.c