========== build_32bit - FAILED ../kernel/bpf/syscall.c: In function ‘load_fd’: ../kernel/bpf/syscall.c:6461:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 6461 | if (copy_from_user(obj->maps, (const void *)attr->load_fd.maps, | ^ ../kernel/bpf/syscall.c:6481:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 6481 | if (copy_from_user(modules, (const void *)attr->load_fd.modules, | ^ ../kernel/bpf/syscall.c: At top level: ../kernel/bpf/syscall.c:6092:1: warning: ‘skip_mods_and_typedefs’ defined but not used [-Wunused-function] 6092 | skip_mods_and_typedefs(const struct btf *btf, u32 id, u32 *res_id) | ^~~~~~~~~~~~~~~~~~~~~~ ../kernel/bpf/syscall.c:6082:13: warning: ‘sym_is_extern’ defined but not used [-Wunused-function] 6082 | static bool sym_is_extern(const Elf64_Sym *sym) | ^~~~~~~~~~~~~ ../kernel/bpf/syscall.c:6056:12: warning: ‘find_extern_sec_btf_id’ defined but not used [-Wunused-function] 6056 | static int find_extern_sec_btf_id(struct btf *btf, int ext_btf_id) | ^~~~~~~~~~~~~~~~~~~~~~ ../kernel/bpf/syscall.c:6016:12: warning: ‘find_extern_btf_id’ defined but not used [-Wunused-function] 6016 | static int find_extern_btf_id(const struct btf *btf, const char *ext_name) | ^~~~~~~~~~~~~~~~~~ WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o ../kernel/bpf/syscall.c: In function ‘collect_externs’: ../kernel/bpf/syscall.c:6438:36: error: passing argument 1 of ‘sym_is_extern’ from incompatible pointer type [-Wincompatible-pointer-types] 6438 | if (!sym_is_extern(&sym[i])) | ^~~~~~~ | | | Elf32_Sym * {aka struct elf32_sym *} ../kernel/bpf/syscall.c:6082:44: note: expected ‘const Elf64_Sym *’ {aka ‘const struct elf64_sym *’} but argument is of type ‘Elf32_Sym *’ {aka ‘struct elf32_sym *’} 6082 | static bool sym_is_extern(const Elf64_Sym *sym) | ~~~~~~~~~~~~~~~~~^~~ ../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 ‘load_fd’: ../kernel/bpf/syscall.c:6794:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 6794 | if (copy_from_user(obj->maps, (const void *)attr->load_fd.maps, | ^ ../kernel/bpf/syscall.c:6814:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 6814 | if (copy_from_user(modules, (const void *)attr->load_fd.modules, | ^ 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.PhCJ33xEZF 2025-01-09 14:49:19.115879839 -0800 +++ /tmp/tmp.KgMaVuTEPz 2025-01-09 14:49:32.559736164 -0800 @@ -0,0 +1,12 @@ +../kernel/bpf/syscall.c: In function ‘collect_externs’: +../kernel/bpf/syscall.c:6438:36: error: passing argument 1 of ‘sym_is_extern’ from incompatible pointer type [-Wincompatible-pointer-types] + 6438 | if (!sym_is_extern(&sym[i])) + | ^~~~~~~ + | | + | Elf32_Sym * {aka struct elf32_sym *} +../kernel/bpf/syscall.c:6082:44: note: expected ‘const Elf64_Sym *’ {aka ‘const struct elf64_sym *’} but argument is of type ‘Elf32_Sym *’ {aka ‘struct elf32_sym *’} + 6082 | static bool sym_is_extern(const Elf64_Sym *sym) + | ~~~~~~~~~~~~~~~~~^~~ +../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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2,2 +14,2 @@ -../kernel/bpf/syscall.c:6461:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 6461 | if (copy_from_user(obj->maps, (const void *)attr->load_fd.maps, +../kernel/bpf/syscall.c:6794:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 6794 | if (copy_from_user(obj->maps, (const void *)attr->load_fd.maps, @@ -5,2 +17,2 @@ -../kernel/bpf/syscall.c:6481:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 6481 | if (copy_from_user(modules, (const void *)attr->load_fd.modules, +../kernel/bpf/syscall.c:6814:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 6814 | if (copy_from_user(modules, (const void *)attr->load_fd.modules, @@ -8,14 +20,7 @@ -../kernel/bpf/syscall.c: At top level: -../kernel/bpf/syscall.c:6092:1: warning: ‘skip_mods_and_typedefs’ defined but not used [-Wunused-function] - 6092 | skip_mods_and_typedefs(const struct btf *btf, u32 id, u32 *res_id) - | ^~~~~~~~~~~~~~~~~~~~~~ -../kernel/bpf/syscall.c:6082:13: warning: ‘sym_is_extern’ defined but not used [-Wunused-function] - 6082 | static bool sym_is_extern(const Elf64_Sym *sym) - | ^~~~~~~~~~~~~ -../kernel/bpf/syscall.c:6056:12: warning: ‘find_extern_sec_btf_id’ defined but not used [-Wunused-function] - 6056 | static int find_extern_sec_btf_id(struct btf *btf, int ext_btf_id) - | ^~~~~~~~~~~~~~~~~~~~~~ -../kernel/bpf/syscall.c:6016:12: warning: ‘find_extern_btf_id’ defined but not used [-Wunused-function] - 6016 | static int find_extern_btf_id(const struct btf *btf, const char *ext_name) - | ^~~~~~~~~~~~~~~~~~ -WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o +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 Per-file breakdown --- /tmp/tmp.9g0peOdoMt 2025-01-09 14:49:32.567736078 -0800 +++ /tmp/tmp.Hz0DBSn3YV 2025-01-09 14:49:32.570736046 -0800 @@ -1 +1 @@ - 6 ../kernel/bpf/syscall.c + 4 ../kernel/bpf/syscall.c