../net/bpf/test_run.c:521:17: warning: symbol 'bpf_fentry_test1' was not declared. Should it be static? ../net/bpf/test_run.c:527:14: warning: symbol 'bpf_fentry_test2' was not declared. Should it be static? ../net/bpf/test_run.c:532:14: warning: symbol 'bpf_fentry_test3' was not declared. Should it be static? ../net/bpf/test_run.c:537:14: warning: symbol 'bpf_fentry_test4' was not declared. Should it be static? ../net/bpf/test_run.c:542:14: warning: symbol 'bpf_fentry_test5' was not declared. Should it be static? ../net/bpf/test_run.c:547:14: warning: symbol 'bpf_fentry_test6' was not declared. Should it be static? ../net/bpf/test_run.c:556:14: warning: symbol 'bpf_fentry_test7' was not declared. Should it be static? ../net/bpf/test_run.c:562:14: warning: symbol 'bpf_fentry_test8' was not declared. Should it be static? ../net/bpf/test_run.c:567:17: warning: symbol 'bpf_fentry_test9' was not declared. Should it be static? ../net/bpf/test_run.c:572:14: warning: symbol 'bpf_fentry_test10' was not declared. Should it be static? ../net/bpf/test_run.c:577:15: warning: symbol 'bpf_fentry_test_sinfo' was not declared. Should it be static? ../net/bpf/test_run.c:581:17: warning: symbol 'bpf_modify_return_test' was not declared. Should it be static? ../net/bpf/test_run.c:587:17: warning: symbol 'bpf_modify_return_test2' was not declared. Should it be static? ../net/bpf/test_run.c:594:17: warning: symbol 'bpf_modify_return_test_tp' was not declared. Should it be static? ../net/bpf/test_run.c:601:14: warning: symbol 'bpf_fentry_shadow_test' was not declared. Should it be static? ../net/bpf/test_run.c:623:18: warning: symbol 'bpf_kfunc_call_test_release' was not declared. Should it be static? ../net/bpf/test_run.c:628:18: warning: symbol 'bpf_kfunc_call_test_release_dtor' was not declared. Should it be static? ../net/bpf/test_run.c:634:18: warning: symbol 'bpf_kfunc_call_memb_release' was not declared. Should it be static? ../net/bpf/test_run.c:638:18: warning: symbol 'bpf_kfunc_call_memb_release_dtor' was not declared. Should it be static? ../kernel/bpf/btf.c: note: in included file (through ../include/linux/bpf.h, ../include/linux/bpf_verifier.h): ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar ../kernel/bpf/stackmap.c: In function ‘__bpf_get_stack’: ../kernel/bpf/stackmap.c:480:33: error: ‘num_elem’ undeclared (first use in this function) 480 | trace_nr = (trace_nr <= num_elem) ? trace_nr : num_elem; | ^~~~~~~~ ../kernel/bpf/stackmap.c:480:33: note: each undeclared identifier is reported only once for each function it appears in make[5]: *** [../scripts/Makefile.build:287: kernel/bpf/stackmap.o] Error 1 make[4]: *** [../scripts/Makefile.build:556: kernel/bpf] Error 2 make[3]: *** [../scripts/Makefile.build:556: kernel] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:2011: .] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 ../kernel/bpf/stackmap.c:490:9: warning: context imbalance in '__bpf_get_stack' - different lock contexts for basic block ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? ../kernel/bpf/stackmap.c: In function ‘__bpf_get_stack’: ../kernel/bpf/stackmap.c:480:33: error: ‘num_elem’ undeclared (first use in this function) 480 | trace_nr = (trace_nr <= num_elem) ? trace_nr : num_elem; | ^~~~~~~~ ../kernel/bpf/stackmap.c:480:33: note: each undeclared identifier is reported only once for each function it appears in make[5]: *** [../scripts/Makefile.build:287: kernel/bpf/stackmap.o] Error 1 make[4]: *** [../scripts/Makefile.build:556: kernel/bpf] Error 2 make[3]: *** [../scripts/Makefile.build:556: kernel] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:2011: .] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 New errors added --- /tmp/tmp.OUW4urtIrF 2025-09-05 07:28:59.031310161 -0700 +++ /tmp/tmp.wKfD25UZ8d 2025-09-05 07:29:14.595866308 -0700 @@ -1 +1,12 @@ -../kernel/bpf/stackmap.c:490:9: warning: context imbalance in '__bpf_get_stack' - different lock contexts for basic block +../kernel/bpf/stackmap.c: In function ‘__bpf_get_stack’: +../kernel/bpf/stackmap.c:480:33: error: ‘num_elem’ undeclared (first use in this function) + 480 | trace_nr = (trace_nr <= num_elem) ? trace_nr : num_elem; + | ^~~~~~~~ +../kernel/bpf/stackmap.c:480:33: note: each undeclared identifier is reported only once for each function it appears in +make[5]: *** [../scripts/Makefile.build:287: kernel/bpf/stackmap.o] Error 1 +make[4]: *** [../scripts/Makefile.build:556: kernel/bpf] Error 2 +make[3]: *** [../scripts/Makefile.build:556: kernel] Error 2 +make[3]: *** Waiting for unfinished jobs.... +make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:2011: .] Error 2 +make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:248: __sub-make] Error 2 +make: *** [Makefile:248: __sub-make] Error 2 Per-file breakdown