WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files In file included from ../include/asm-generic/bug.h:22, from ../arch/x86/include/asm/bug.h:99, from ../include/linux/ktime.h:24, from ../include/linux/timer.h:6, from ../include/linux/workqueue.h:9, from ../include/linux/bpf.h:10, from ../include/linux/bpf-cgroup.h:5, from ../kernel/bpf/verifier.c:7: ../kernel/bpf/verifier.c: In function ‘check_inlinable_kfuncs_ptr’: ../kernel/bpf/verifier.c:20543:24: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] 20543 | printk("malformed inlinable kfuncs data: bad offset/size 0x%lx/0x%llx: %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20544 | ptr - blob->mem, size, context); | ~~~~~~~~~~~~~~~ | | | int ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20543:17: note: in expansion of macro ‘printk’ 20543 | printk("malformed inlinable kfuncs data: bad offset/size 0x%lx/0x%llx: %s", | ^~~~~~ ../kernel/bpf/verifier.c:20543:78: note: format string is defined here 20543 | printk("malformed inlinable kfuncs data: bad offset/size 0x%lx/0x%llx: %s", | ~~^ | | | long unsigned int | %x ../kernel/bpf/verifier.c: In function ‘inlinable_kfuncs_parse_sections’: ../kernel/bpf/verifier.c:20699:40: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] 20699 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_entsize: %llu\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20700 | symtab->sh_entsize); | ~~~~~~~~~~~~~~~~~~ | | | Elf32_Word {aka unsigned int} ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20699:33: note: in expansion of macro ‘printk’ 20699 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_entsize: %llu\n", | ^~~~~~ ../kernel/bpf/verifier.c:20699:108: note: format string is defined here 20699 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_entsize: %llu\n", | ~~~^ | | | long long unsigned int | %u ../kernel/bpf/verifier.c:20704:40: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] 20704 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_size: %llu\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20705 | symtab->sh_size); | ~~~~~~~~~~~~~~~ | | | Elf32_Word {aka unsigned int} ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20704:33: note: in expansion of macro ‘printk’ 20704 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_size: %llu\n", | ^~~~~~ ../kernel/bpf/verifier.c:20704:105: note: format string is defined here 20704 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_size: %llu\n", | ~~~^ | | | long long unsigned int | %u ../kernel/bpf/verifier.c: In function ‘inlinable_kfuncs_apply_relocs’: ../kernel/bpf/verifier.c:20787:24: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] 20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20787:17: note: in expansion of macro ‘printk’ 20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", | ^~~~~~ ../kernel/bpf/verifier.c:20787:57: note: format string is defined here 20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", | ~~~^ | | | long long unsigned int | %x ../kernel/bpf/verifier.c:20787:24: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] 20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20787:17: note: in expansion of macro ‘printk’ 20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", | ^~~~~~ ../kernel/bpf/verifier.c:20787:69: note: format string is defined here 20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", | ~~~^ | | | long long unsigned int | %x ../kernel/bpf/verifier.c:20787:24: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘Elf32_Addr’ {aka ‘unsigned int’} [-Wformat=] 20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20788 | ELF_R_TYPE(rel->r_info), ELF_R_SYM(rel->r_info), rel->r_offset); | ~~~~~~~~~~~~~ | | | Elf32_Addr {aka unsigned int} ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20787:17: note: in expansion of macro ‘printk’ 20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", | ^~~~~~ ../kernel/bpf/verifier.c:20787:81: note: format string is defined here 20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", | ~~~^ | | | long long unsigned int | %x ../kernel/bpf/verifier.c:20798:32: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] 20798 | printk("relocation #%u unexpected relocation type: %llu\n", i, ELF_R_TYPE(rel->r_info)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20798:25: note: in expansion of macro ‘printk’ 20798 | printk("relocation #%u unexpected relocation type: %llu\n", i, ELF_R_TYPE(rel->r_info)); | ^~~~~~ ../kernel/bpf/verifier.c:20798:79: note: format string is defined here 20798 | printk("relocation #%u unexpected relocation type: %llu\n", i, ELF_R_TYPE(rel->r_info)); | ~~~^ | | | long long unsigned int | %u ../kernel/bpf/verifier.c:20814:32: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Addr’ {aka ‘unsigned int’} [-Wformat=] 20814 | printk("relocation #%u invalid offset: %llu\n", i, rel->r_offset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ | | | Elf32_Addr {aka unsigned int} ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20814:25: note: in expansion of macro ‘printk’ 20814 | printk("relocation #%u invalid offset: %llu\n", i, rel->r_offset); | ^~~~~~ ../kernel/bpf/verifier.c:20814:67: note: format string is defined here 20814 | printk("relocation #%u invalid offset: %llu\n", i, rel->r_offset); | ~~~^ | | | long long unsigned int | %u ../kernel/bpf/verifier.c:20823:32: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Addr’ {aka ‘unsigned int’} [-Wformat=] 20823 | printk("relocation #%u invalid instruction at offset %llu\n", i, rel->r_offset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ | | | Elf32_Addr {aka unsigned int} ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20823:25: note: in expansion of macro ‘printk’ 20823 | printk("relocation #%u invalid instruction at offset %llu\n", i, rel->r_offset); | ^~~~~~ ../kernel/bpf/verifier.c:20823:81: note: format string is defined here 20823 | printk("relocation #%u invalid instruction at offset %llu\n", i, rel->r_offset); | ~~~^ | | | long long unsigned int | %u ../kernel/bpf/verifier.c:20833:24: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] 20833 | printk("inlinable_kfuncs_init: patching insn %ld, imm=%d, off=%d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20834 | rinsn - (struct bpf_insn *)s->text, rinsn->imm, rinsn->off); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20833:17: note: in expansion of macro ‘printk’ 20833 | printk("inlinable_kfuncs_init: patching insn %ld, imm=%d, off=%d\n", | ^~~~~~ ../kernel/bpf/verifier.c:20833:64: note: format string is defined here 20833 | printk("inlinable_kfuncs_init: patching insn %ld, imm=%d, off=%d\n", | ~~^ | | | long int | %d ../kernel/bpf/verifier.c: In function ‘bpf_register_inlinable_kfuncs’: ../kernel/bpf/verifier.c:20901:24: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Addr’ {aka ‘unsigned int’} [-Wformat=] 20901 | printk("adding inlinable kfunc %s at 0x%llx, %u instructions, btf_id=%d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20902 | sh->name, sym->st_value, sh->insn_num, sh->btf_id); | ~~~~~~~~~~~~~ | | | Elf32_Addr {aka unsigned int} ../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ 462 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ ../kernel/bpf/verifier.c:20901:17: note: in expansion of macro ‘printk’ 20901 | printk("adding inlinable kfunc %s at 0x%llx, %u instructions, btf_id=%d\n", | ^~~~~~ ../kernel/bpf/verifier.c:20901:59: note: format string is defined here 20901 | printk("adding inlinable kfunc %s at 0x%llx, %u instructions, btf_id=%d\n", | ~~~^ | | | long long unsigned int | %x ../kernel/bpf/verifier.c: In function ‘inlinable_kfuncs_init’: ../kernel/bpf/verifier.c:20910:46: warning: taking address of expression of type ‘void’ 20910 | return bpf_register_inlinable_kfuncs(&inlinable_kfuncs_data, | ^ ../kernel/bpf/verifier.c:20911:44: warning: taking address of expression of type ‘void’ 20911 | &inlinable_kfuncs_data_end - &inlinable_kfuncs_data); | ^ ../kernel/bpf/verifier.c:20911:73: warning: taking address of expression of type ‘void’ 20911 | &inlinable_kfuncs_data_end - &inlinable_kfuncs_data); | ^ /tmp/ccLa7YdB.s: Assembler messages: /tmp/ccLa7YdB.s:9: Warning: ignoring changed section attributes for .data /tmp/ccLa7YdB.s:12: Error: file not found: kernel/bpf/inlinable_kfuncs.bpf.linked.o make[5]: *** [../scripts/Makefile.build:229: kernel/bpf/verifier.o] Error 1 make[4]: *** [../scripts/Makefile.build:478: kernel/bpf] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:478: kernel] Error 2 make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1956: .] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:224: __sub-make] Error 2 make: *** [Makefile:224: __sub-make] Error 2 New errors added --- /tmp/tmp.IU2CUSqPgZ 2024-11-07 10:13:15.787480200 -0800 +++ /tmp/tmp.TuaKENNmOG 2024-11-07 10:14:08.864043552 -0800 @@ -13,0 +14,225 @@ +In file included from ../include/asm-generic/bug.h:22, + from ../arch/x86/include/asm/bug.h:99, + from ../include/linux/ktime.h:24, + from ../include/linux/timer.h:6, + from ../include/linux/workqueue.h:9, + from ../include/linux/bpf.h:10, + from ../include/linux/bpf-cgroup.h:5, + from ../kernel/bpf/verifier.c:7: +../kernel/bpf/verifier.c: In function ‘check_inlinable_kfuncs_ptr’: +../kernel/bpf/verifier.c:20543:24: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] +20543 | printk("malformed inlinable kfuncs data: bad offset/size 0x%lx/0x%llx: %s", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +20544 | ptr - blob->mem, size, context); + | ~~~~~~~~~~~~~~~ + | | + | int +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20543:17: note: in expansion of macro ‘printk’ +20543 | printk("malformed inlinable kfuncs data: bad offset/size 0x%lx/0x%llx: %s", + | ^~~~~~ +../kernel/bpf/verifier.c:20543:78: note: format string is defined here +20543 | printk("malformed inlinable kfuncs data: bad offset/size 0x%lx/0x%llx: %s", + | ~~^ + | | + | long unsigned int + | %x +../kernel/bpf/verifier.c: In function ‘inlinable_kfuncs_parse_sections’: +../kernel/bpf/verifier.c:20699:40: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] +20699 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_entsize: %llu\n", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +20700 | symtab->sh_entsize); + | ~~~~~~~~~~~~~~~~~~ + | | + | Elf32_Word {aka unsigned int} +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20699:33: note: in expansion of macro ‘printk’ +20699 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_entsize: %llu\n", + | ^~~~~~ +../kernel/bpf/verifier.c:20699:108: note: format string is defined here +20699 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_entsize: %llu\n", + | ~~~^ + | | + | long long unsigned int + | %u +../kernel/bpf/verifier.c:20704:40: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] +20704 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_size: %llu\n", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +20705 | symtab->sh_size); + | ~~~~~~~~~~~~~~~ + | | + | Elf32_Word {aka unsigned int} +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20704:33: note: in expansion of macro ‘printk’ +20704 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_size: %llu\n", + | ^~~~~~ +../kernel/bpf/verifier.c:20704:105: note: format string is defined here +20704 | printk("malformed inlinable kfuncs data: unexpected symtab->sh_size: %llu\n", + | ~~~^ + | | + | long long unsigned int + | %u +../kernel/bpf/verifier.c: In function ‘inlinable_kfuncs_apply_relocs’: +../kernel/bpf/verifier.c:20787:24: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] +20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20787:17: note: in expansion of macro ‘printk’ +20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", + | ^~~~~~ +../kernel/bpf/verifier.c:20787:57: note: format string is defined here +20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", + | ~~~^ + | | + | long long unsigned int + | %x +../kernel/bpf/verifier.c:20787:24: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] +20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20787:17: note: in expansion of macro ‘printk’ +20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", + | ^~~~~~ +../kernel/bpf/verifier.c:20787:69: note: format string is defined here +20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", + | ~~~^ + | | + | long long unsigned int + | %x +../kernel/bpf/verifier.c:20787:24: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘Elf32_Addr’ {aka ‘unsigned int’} [-Wformat=] +20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +20788 | ELF_R_TYPE(rel->r_info), ELF_R_SYM(rel->r_info), rel->r_offset); + | ~~~~~~~~~~~~~ + | | + | Elf32_Addr {aka unsigned int} +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20787:17: note: in expansion of macro ‘printk’ +20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", + | ^~~~~~ +../kernel/bpf/verifier.c:20787:81: note: format string is defined here +20787 | printk("inlinable_kfuncs_init: tp=0x%llx, sym=0x%llx, off=0x%llx\n", + | ~~~^ + | | + | long long unsigned int + | %x +../kernel/bpf/verifier.c:20798:32: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Word’ {aka ‘unsigned int’} [-Wformat=] +20798 | printk("relocation #%u unexpected relocation type: %llu\n", i, ELF_R_TYPE(rel->r_info)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20798:25: note: in expansion of macro ‘printk’ +20798 | printk("relocation #%u unexpected relocation type: %llu\n", i, ELF_R_TYPE(rel->r_info)); + | ^~~~~~ +../kernel/bpf/verifier.c:20798:79: note: format string is defined here +20798 | printk("relocation #%u unexpected relocation type: %llu\n", i, ELF_R_TYPE(rel->r_info)); + | ~~~^ + | | + | long long unsigned int + | %u +../kernel/bpf/verifier.c:20814:32: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Addr’ {aka ‘unsigned int’} [-Wformat=] +20814 | printk("relocation #%u invalid offset: %llu\n", i, rel->r_offset); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ + | | + | Elf32_Addr {aka unsigned int} +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20814:25: note: in expansion of macro ‘printk’ +20814 | printk("relocation #%u invalid offset: %llu\n", i, rel->r_offset); + | ^~~~~~ +../kernel/bpf/verifier.c:20814:67: note: format string is defined here +20814 | printk("relocation #%u invalid offset: %llu\n", i, rel->r_offset); + | ~~~^ + | | + | long long unsigned int + | %u +../kernel/bpf/verifier.c:20823:32: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Addr’ {aka ‘unsigned int’} [-Wformat=] +20823 | printk("relocation #%u invalid instruction at offset %llu\n", i, rel->r_offset); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ + | | + | Elf32_Addr {aka unsigned int} +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20823:25: note: in expansion of macro ‘printk’ +20823 | printk("relocation #%u invalid instruction at offset %llu\n", i, rel->r_offset); + | ^~~~~~ +../kernel/bpf/verifier.c:20823:81: note: format string is defined here +20823 | printk("relocation #%u invalid instruction at offset %llu\n", i, rel->r_offset); + | ~~~^ + | | + | long long unsigned int + | %u +../kernel/bpf/verifier.c:20833:24: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] +20833 | printk("inlinable_kfuncs_init: patching insn %ld, imm=%d, off=%d\n", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +20834 | rinsn - (struct bpf_insn *)s->text, rinsn->imm, rinsn->off); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | int +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20833:17: note: in expansion of macro ‘printk’ +20833 | printk("inlinable_kfuncs_init: patching insn %ld, imm=%d, off=%d\n", + | ^~~~~~ +../kernel/bpf/verifier.c:20833:64: note: format string is defined here +20833 | printk("inlinable_kfuncs_init: patching insn %ld, imm=%d, off=%d\n", + | ~~^ + | | + | long int + | %d +../kernel/bpf/verifier.c: In function ‘bpf_register_inlinable_kfuncs’: +../kernel/bpf/verifier.c:20901:24: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘Elf32_Addr’ {aka ‘unsigned int’} [-Wformat=] +20901 | printk("adding inlinable kfunc %s at 0x%llx, %u instructions, btf_id=%d\n", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +20902 | sh->name, sym->st_value, sh->insn_num, sh->btf_id); + | ~~~~~~~~~~~~~ + | | + | Elf32_Addr {aka unsigned int} +../include/linux/printk.h:462:25: note: in definition of macro ‘printk_index_wrap’ + 462 | _p_func(_fmt, ##__VA_ARGS__); \ + | ^~~~ +../kernel/bpf/verifier.c:20901:17: note: in expansion of macro ‘printk’ +20901 | printk("adding inlinable kfunc %s at 0x%llx, %u instructions, btf_id=%d\n", + | ^~~~~~ +../kernel/bpf/verifier.c:20901:59: note: format string is defined here +20901 | printk("adding inlinable kfunc %s at 0x%llx, %u instructions, btf_id=%d\n", + | ~~~^ + | | + | long long unsigned int + | %x +../kernel/bpf/verifier.c: In function ‘inlinable_kfuncs_init’: +../kernel/bpf/verifier.c:20910:46: warning: taking address of expression of type ‘void’ +20910 | return bpf_register_inlinable_kfuncs(&inlinable_kfuncs_data, + | ^ +../kernel/bpf/verifier.c:20911:44: warning: taking address of expression of type ‘void’ +20911 | &inlinable_kfuncs_data_end - &inlinable_kfuncs_data); + | ^ +../kernel/bpf/verifier.c:20911:73: warning: taking address of expression of type ‘void’ +20911 | &inlinable_kfuncs_data_end - &inlinable_kfuncs_data); + | ^ +/tmp/ccLa7YdB.s: Assembler messages: +/tmp/ccLa7YdB.s:9: Warning: ignoring changed section attributes for .data +/tmp/ccLa7YdB.s:12: Error: file not found: kernel/bpf/inlinable_kfuncs.bpf.linked.o +make[5]: *** [../scripts/Makefile.build:229: kernel/bpf/verifier.o] Error 1 +make[4]: *** [../scripts/Makefile.build:478: kernel/bpf] Error 2 +make[4]: *** Waiting for unfinished jobs.... +make[3]: *** [../scripts/Makefile.build:478: kernel] Error 2 +make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1956: .] Error 2 +make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:224: __sub-make] Error 2 +make: *** [Makefile:224: __sub-make] Error 2 Per-file breakdown --- /tmp/tmp.YRa4ujMjjo 2024-11-07 10:14:08.878043437 -0800 +++ /tmp/tmp.X6BW2GtDVk 2024-11-07 10:14:08.891043330 -0800 @@ -0,0 +1 @@ + 14 ../kernel/bpf/verifier.c