========== build_allmodconfig_warn - FAILED ../net/core/filter.c:1423:39: warning: incorrect type in argument 1 (different address spaces) ../net/core/filter.c:1423:39: expected struct sock_filter const *filter ../net/core/filter.c:1423:39: got struct sock_filter [noderef] __user *filter ../net/core/filter.c:1501:39: warning: incorrect type in argument 1 (different address spaces) ../net/core/filter.c:1501:39: expected struct sock_filter const *filter ../net/core/filter.c:1501:39: got struct sock_filter [noderef] __user *filter ../net/core/filter.c:2323:45: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:2323:45: expected restricted __be32 [usertype] daddr ../net/core/filter.c:2323:45: got unsigned int [usertype] ipv4_nh ../net/core/filter.c:3914:29: warning: symbol 'bpf_xdp_get_buff_len_trace_proto' was not declared. Should it be static? ../net/core/filter.c:4647:29: warning: symbol 'bpf_skb_output_proto' was not declared. Should it be static? ../net/core/filter.c:5061:29: warning: symbol 'bpf_xdp_output_proto' was not declared. Should it be static? ../net/core/filter.c:7936:29: warning: symbol 'bpf_sk_storage_get_cg_sock_proto' was not declared. Should it be static? ../net/core/filter.c:11900:17: warning: symbol 'bpf_dynptr_from_skb' was not declared. Should it be static? ../net/core/filter.c:11916:17: warning: symbol 'bpf_dynptr_from_xdp' was not declared. Should it be static? ../net/core/filter.c:11932:17: warning: symbol 'bpf_sock_addr_set_sun_path' was not declared. Should it be static? ../net/core/filter.c:11953:17: warning: symbol 'bpf_sk_assign_tcp_reqsk' was not declared. Should it be static? ../net/core/filter.c:12143:17: warning: symbol 'bpf_sock_destroy' was not declared. Should it be static? ../net/core/filter.c:1931:43: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:1931:43: expected restricted __wsum [usertype] diff ../net/core/filter.c:1931:43: got unsigned long long [usertype] to ../net/core/filter.c:1934:36: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:1934:36: expected restricted __be16 [usertype] old ../net/core/filter.c:1934:36: got unsigned long long [usertype] from ../net/core/filter.c:1934:42: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1934:42: expected restricted __be16 [usertype] new ../net/core/filter.c:1934:42: got unsigned long long [usertype] to ../net/core/filter.c:1937:36: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:1937:36: expected restricted __be32 [usertype] from ../net/core/filter.c:1937:36: got unsigned long long [usertype] from ../net/core/filter.c:1937:42: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1937:42: expected restricted __be32 [usertype] to ../net/core/filter.c:1937:42: got unsigned long long [usertype] to ../net/core/filter.c:1982:59: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1982:59: expected restricted __wsum [usertype] diff ../net/core/filter.c:1982:59: got unsigned long long [usertype] to ../net/core/filter.c:1985:52: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1985:52: expected restricted __be16 [usertype] from ../net/core/filter.c:1985:52: got unsigned long long [usertype] from ../net/core/filter.c:1985:58: warning: incorrect type in argument 4 (different base types) ../net/core/filter.c:1985:58: expected restricted __be16 [usertype] to ../net/core/filter.c:1985:58: got unsigned long long [usertype] to ../net/core/filter.c:1988:52: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1988:52: expected restricted __be32 [usertype] from ../net/core/filter.c:1988:52: got unsigned long long [usertype] from ../net/core/filter.c:1988:58: warning: incorrect type in argument 4 (different base types) ../net/core/filter.c:1988:58: expected restricted __be32 [usertype] to ../net/core/filter.c:1988:58: got unsigned long long [usertype] to ../net/core/filter.c:2055:35: warning: incorrect type in return expression (different base types) ../net/core/filter.c:2055:35: expected unsigned long long ../net/core/filter.c:2055:35: got restricted __wsum [usertype] csum ../net/core/filter.c:5859:17: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5859:17: expected unsigned int [usertype] spi ../net/core/filter.c:5859:17: got restricted __be32 const [usertype] spi ../net/core/filter.c:5867:33: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5867:33: expected unsigned int [usertype] remote_ipv4 ../net/core/filter.c:5867:33: got restricted __be32 const [usertype] a4 ../kernel/bpf/verifier.c:347:12: warning: symbol 'btf_vmlinux' was not declared. Should it be static? ../kernel/bpf/verifier.c:21788:38: error: subtraction of functions? Share your drugs ../kernel/bpf/verifier.c: note: in included file (through ../include/linux/bpf.h, ../include/linux/bpf-cgroup.h): ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? ../net/core/filter.c:12071:1: error: return type defaults to ‘int’ [-Wimplicit-int] 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^~~~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12071:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes] In file included from ../include/linux/btf.h:10, from ../include/linux/bpf.h:28, from ../include/linux/bpf_verifier.h:7, from ../net/core/filter.c:21: ../net/core/filter.c: In function ‘BTF_HIDDEN_KFUNCS_START’: ../net/core/filter.c:12075:18: error: storage class specified for parameter ‘bpf_kfunc_check_set_xdp’ 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~ ../include/linux/btf_ids.h:235:46: error: parameter ‘bpf_kfunc_check_set_xdp’ is initialized 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~~~~~~~~ ../net/core/filter.c:12075:1: note: in expansion of macro ‘BTF_KFUNCS_START’ 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^~~~~~~~~~~~~~~~ ../net/core/filter.c:12079:18: error: storage class specified for parameter ‘bpf_kfunc_check_set_sock_addr’ 12079 | BTF_KFUNCS_START(bpf_kfunc_check_set_sock_addr) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~ ../include/linux/btf_ids.h:235:46: error: parameter ‘bpf_kfunc_check_set_sock_addr’ is initialized 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~~~~~~~~ ../net/core/filter.c:12079:1: note: in expansion of macro ‘BTF_KFUNCS_START’ 12079 | BTF_KFUNCS_START(bpf_kfunc_check_set_sock_addr) | ^~~~~~~~~~~~~~~~ ../net/core/filter.c:12083:18: error: storage class specified for parameter ‘bpf_kfunc_check_set_tcp_reqsk’ 12083 | BTF_KFUNCS_START(bpf_kfunc_check_set_tcp_reqsk) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~ ../include/linux/btf_ids.h:235:46: error: parameter ‘bpf_kfunc_check_set_tcp_reqsk’ is initialized 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~~~~~~~~ ../net/core/filter.c:12083:1: note: in expansion of macro ‘BTF_KFUNCS_START’ 12083 | BTF_KFUNCS_START(bpf_kfunc_check_set_tcp_reqsk) | ^~~~~~~~~~~~~~~~ ../net/core/filter.c:12087:13: error: storage class specified for parameter ‘bpf_dynptr_from_skb_list’ 12087 | BTF_ID_LIST(bpf_dynptr_from_skb_list) | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:223:53: note: in definition of macro ‘BTF_ID_LIST’ 223 | #define BTF_ID_LIST(name) static u32 __maybe_unused name[64]; | ^~~~ ../net/core/filter.c:12092:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 12092 | { | ^ ../net/core/filter.c:12122:38: error: storage class specified for parameter ‘bpf_kfunc_set_skb’ 12122 | static const struct btf_kfunc_id_set bpf_kfunc_set_skb = { | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12122:21: error: parameter ‘bpf_kfunc_set_skb’ is initialized 12122 | static const struct btf_kfunc_id_set bpf_kfunc_set_skb = { | ^~~~~~~~~~~~~~~~ ../net/core/filter.c:12125:24: error: ‘bpf_kfunc_check_hidden_set_skb’ undeclared (first use in this function); did you mean ‘bpf_kfunc_check_set_skb’? 12125 | .hidden_set = &bpf_kfunc_check_hidden_set_skb, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | bpf_kfunc_check_set_skb ../net/core/filter.c:12125:24: note: each undeclared identifier is reported only once for each function it appears in ../net/core/filter.c:12126:19: error: ‘bpf_kfunc_set_skb_remap’ undeclared (first use in this function); did you mean ‘bpf_kfunc_set_skb’? 12126 | .remap = &bpf_kfunc_set_skb_remap, | ^~~~~~~~~~~~~~~~~~~~~~~ | bpf_kfunc_set_skb ../net/core/filter.c:12129:38: error: storage class specified for parameter ‘bpf_kfunc_set_xdp’ 12129 | static const struct btf_kfunc_id_set bpf_kfunc_set_xdp = { | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12129:21: error: parameter ‘bpf_kfunc_set_xdp’ is initialized 12129 | static const struct btf_kfunc_id_set bpf_kfunc_set_xdp = { | ^~~~~~~~~~~~~~~~ ../net/core/filter.c:12134:38: error: storage class specified for parameter ‘bpf_kfunc_set_sock_addr’ 12134 | static const struct btf_kfunc_id_set bpf_kfunc_set_sock_addr = { | ^~~~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12134:21: error: parameter ‘bpf_kfunc_set_sock_addr’ is initialized 12134 | static const struct btf_kfunc_id_set bpf_kfunc_set_sock_addr = { | ^~~~~~~~~~~~~~~~ ../net/core/filter.c:12139:38: error: storage class specified for parameter ‘bpf_kfunc_set_tcp_reqsk’ 12139 | static const struct btf_kfunc_id_set bpf_kfunc_set_tcp_reqsk = { | ^~~~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12139:21: error: parameter ‘bpf_kfunc_set_tcp_reqsk’ is initialized 12139 | static const struct btf_kfunc_id_set bpf_kfunc_set_tcp_reqsk = { | ^~~~~~~~~~~~~~~~ ../net/core/filter.c:12145:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 12145 | { | ^ In file included from : ../include/linux/compiler.h:189:45: error: storage class specified for parameter ‘__UNIQUE_ID___addressable_bpf_kfunc_init2974’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ 83 | #define ___PASTE(a,b) a##b | ^ ../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ 84 | #define __PASTE(a,b) ___PASTE(a,b) | ^~~~~~~~ ../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; | ^~~~~~~~~~~ ../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) | ^~~~~~~~~~~~~~ ../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ 256 | __ADDRESSABLE(fn) | ^~~~~~~~~~~~~ ../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ 261 | __define_initcall_stub(__stub, fn) \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ 12164 | late_initcall(bpf_kfunc_init); | ^~~~~~~~~~~~~ ../net/core/filter.c:12164:1: error: parameter ‘__UNIQUE_ID___addressable_bpf_kfunc_init2974’ is initialized ../net/core/filter.c:12164:1: warning: ‘used’ attribute ignored [-Wattributes] ../include/linux/compiler.h:189:45: error: section attribute not allowed for ‘__UNIQUE_ID___addressable_bpf_kfunc_init2974’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ 83 | #define ___PASTE(a,b) a##b | ^ ../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ 84 | #define __PASTE(a,b) ___PASTE(a,b) | ^~~~~~~~ ../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; | ^~~~~~~~~~~ ../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) | ^~~~~~~~~~~~~~ ../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ 256 | __ADDRESSABLE(fn) | ^~~~~~~~~~~~~ ../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ 261 | __define_initcall_stub(__stub, fn) \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ 12164 | late_initcall(bpf_kfunc_init); | ^~~~~~~~~~~~~ In file included from ../arch/x86/include/asm/atomic.h:5, from ../include/linux/atomic.h:7, from ../net/core/filter.c:20: ../net/core/filter.c:12164:15: error: ‘bpf_kfunc_init’ undeclared (first use in this function); did you mean ‘bpf_func_info’? 12164 | late_initcall(bpf_kfunc_init); | ^~~~~~~~~~~~~~ ../include/linux/compiler.h:227:72: note: in definition of macro ‘___ADDRESSABLE’ 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; | ^~~ ../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ 256 | __ADDRESSABLE(fn) | ^~~~~~~~~~~~~ ../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ 261 | __define_initcall_stub(__stub, fn) \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ 12164 | late_initcall(bpf_kfunc_init); | ^~~~~~~~~~~~~ In file included from ../include/linux/printk.h:6, 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: ../include/linux/init.h:262:9: error: expected declaration specifiers before ‘asm’ 262 | asm(".section \"" __sec "\", \"a\" \n" \ | ^~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ 12164 | late_initcall(bpf_kfunc_init); | ^~~~~~~~~~~~~ In file included from ../include/linux/atomic/atomic-instrumented.h:15, from ../include/linux/atomic.h:82: ../include/linux/build_bug.h:78:41: error: expected declaration specifiers before ‘_Static_assert’ 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~~~~~~~~~~~ ../include/linux/build_bug.h:77:34: note: in expansion of macro ‘__static_assert’ 77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) | ^~~~~~~~~~~~~~~ ../include/linux/init.h:266:9: note: in expansion of macro ‘static_assert’ 266 | static_assert(__same_type(initcall_t, &fn)); | ^~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ 12164 | late_initcall(bpf_kfunc_init); | ^~~~~~~~~~~~~ ../net/core/filter.c:12164:30: error: expected declaration specifiers before ‘;’ token 12164 | late_initcall(bpf_kfunc_init); | ^ In file included from ./../include/linux/compiler_types.h:174: ../include/linux/compiler-gcc.h:134:33: error: expected declaration specifiers before ‘#pragma’ 134 | #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) | ^~~~~~~ ./../include/linux/compiler_types.h:557:25: note: in expansion of macro ‘__diag’ 557 | #define __diag_push() __diag(push) | ^~~~~~ ../include/linux/btf.h:89:9: note: in expansion of macro ‘__diag_push’ 89 | __diag_push(); \ | ^~~~~~~~~~~ ../net/core/filter.c:12166:1: note: in expansion of macro ‘__bpf_kfunc_start_defs’ 12166 | __bpf_kfunc_start_defs(); | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/compiler-gcc.h:134:33: error: expected declaration specifiers before ‘#pragma’ 134 | #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) | ^~~~~~~ ../include/linux/compiler-gcc.h:143:9: note: in expansion of macro ‘__diag’ 143 | __diag(__diag_GCC_ignore option) | ^~~~~~ ../include/linux/btf.h:90:9: note: in expansion of macro ‘__diag_ignore_all’ 90 | __diag_ignore_all("-Wmissing-declarations", \ | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12166:1: note: in expansion of macro ‘__bpf_kfunc_start_defs’ 12166 | __bpf_kfunc_start_defs(); | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/compiler-gcc.h:134:33: error: expected declaration specifiers before ‘#pragma’ 134 | #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) | ^~~~~~~ ../include/linux/compiler-gcc.h:143:9: note: in expansion of macro ‘__diag’ 143 | __diag(__diag_GCC_ignore option) | ^~~~~~ ../include/linux/btf.h:92:9: note: in expansion of macro ‘__diag_ignore_all’ 92 | __diag_ignore_all("-Wmissing-prototypes", \ | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12166:1: note: in expansion of macro ‘__bpf_kfunc_start_defs’ 12166 | __bpf_kfunc_start_defs(); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./../include/linux/compiler_types.h:89: ../include/linux/compiler_attributes.h:349:41: error: expected declaration specifiers before ‘__attribute__’ 349 | #define __used __attribute__((__used__)) | ^~~~~~~~~~~~~ ../include/linux/btf.h:86:21: note: in expansion of macro ‘__used’ 86 | #define __bpf_kfunc __used __retain noinline | ^~~~~~ ../net/core/filter.c:12184:1: note: in expansion of macro ‘__bpf_kfunc’ 12184 | __bpf_kfunc int bpf_sock_destroy(struct sock_common *sock) | ^~~~~~~~~~~ ../include/linux/compiler-gcc.h:134:33: error: expected declaration specifiers before ‘#pragma’ 134 | #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) | ^~~~~~~ ./../include/linux/compiler_types.h:558:25: note: in expansion of macro ‘__diag’ 558 | #define __diag_pop() __diag(pop) | ^~~~~~ ../include/linux/btf.h:95:32: note: in expansion of macro ‘__diag_pop’ 95 | #define __bpf_kfunc_end_defs() __diag_pop() | ^~~~~~~~~~ ../net/core/filter.c:12200:1: note: in expansion of macro ‘__bpf_kfunc_end_defs’ 12200 | __bpf_kfunc_end_defs(); | ^~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12202:18: error: storage class specified for parameter ‘bpf_sk_iter_kfunc_ids’ 12202 | BTF_KFUNCS_START(bpf_sk_iter_kfunc_ids) | ^~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~ ../include/linux/btf_ids.h:235:46: error: parameter ‘bpf_sk_iter_kfunc_ids’ is initialized 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~~~~~~~~ ../net/core/filter.c:12202:1: note: in expansion of macro ‘BTF_KFUNCS_START’ 12202 | BTF_KFUNCS_START(bpf_sk_iter_kfunc_ids) | ^~~~~~~~~~~~~~~~ ../net/core/filter.c:12207:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 12207 | { | ^ ../net/core/filter.c:12214:38: error: storage class specified for parameter ‘bpf_sk_iter_kfunc_set’ 12214 | static const struct btf_kfunc_id_set bpf_sk_iter_kfunc_set = { | ^~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12214:21: error: parameter ‘bpf_sk_iter_kfunc_set’ is initialized 12214 | static const struct btf_kfunc_id_set bpf_sk_iter_kfunc_set = { | ^~~~~~~~~~~~~~~~ ../net/core/filter.c:12217:19: error: ‘tracing_iter_filter’ undeclared (first use in this function) 12217 | .filter = tracing_iter_filter, | ^~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12221:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 12221 | { | ^ ../include/linux/compiler.h:189:45: error: storage class specified for parameter ‘__UNIQUE_ID___addressable_init_subsystem2976’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ 83 | #define ___PASTE(a,b) a##b | ^ ../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ 84 | #define __PASTE(a,b) ___PASTE(a,b) | ^~~~~~~~ ../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; | ^~~~~~~~~~~ ../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) | ^~~~~~~~~~~~~~ ../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ 256 | __ADDRESSABLE(fn) | ^~~~~~~~~~~~~ ../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ 261 | __define_initcall_stub(__stub, fn) \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ 12224 | late_initcall(init_subsystem); | ^~~~~~~~~~~~~ ../net/core/filter.c:12224:1: error: parameter ‘__UNIQUE_ID___addressable_init_subsystem2976’ is initialized ../net/core/filter.c:12224:1: warning: ‘used’ attribute ignored [-Wattributes] ../include/linux/compiler.h:189:45: error: section attribute not allowed for ‘__UNIQUE_ID___addressable_init_subsystem2976’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ 83 | #define ___PASTE(a,b) a##b | ^ ../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ 84 | #define __PASTE(a,b) ___PASTE(a,b) | ^~~~~~~~ ../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; | ^~~~~~~~~~~ ../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) | ^~~~~~~~~~~~~~ ../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ 256 | __ADDRESSABLE(fn) | ^~~~~~~~~~~~~ ../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ 261 | __define_initcall_stub(__stub, fn) \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ 12224 | late_initcall(init_subsystem); | ^~~~~~~~~~~~~ ../net/core/filter.c:12224:15: error: ‘init_subsystem’ undeclared (first use in this function) 12224 | late_initcall(init_subsystem); | ^~~~~~~~~~~~~~ ../include/linux/compiler.h:227:72: note: in definition of macro ‘___ADDRESSABLE’ 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; | ^~~ ../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ 256 | __ADDRESSABLE(fn) | ^~~~~~~~~~~~~ ../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ 261 | __define_initcall_stub(__stub, fn) \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ 12224 | late_initcall(init_subsystem); | ^~~~~~~~~~~~~ ../include/linux/init.h:262:9: error: expected declaration specifiers before ‘asm’ 262 | asm(".section \"" __sec "\", \"a\" \n" \ | ^~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ 12224 | late_initcall(init_subsystem); | ^~~~~~~~~~~~~ ../include/linux/build_bug.h:78:41: error: expected declaration specifiers before ‘_Static_assert’ 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~~~~~~~~~~~ ../include/linux/build_bug.h:77:34: note: in expansion of macro ‘__static_assert’ 77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) | ^~~~~~~~~~~~~~~ ../include/linux/init.h:266:9: note: in expansion of macro ‘static_assert’ 266 | static_assert(__same_type(initcall_t, &fn)); | ^~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ 12224 | late_initcall(init_subsystem); | ^~~~~~~~~~~~~ ../net/core/filter.c:12224:30: error: expected declaration specifiers before ‘;’ token 12224 | late_initcall(init_subsystem); | ^ ../include/linux/compiler.h:189:45: error: declaration for parameter ‘__UNIQUE_ID___addressable_init_subsystem2976’ but no such parameter 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ 83 | #define ___PASTE(a,b) a##b | ^ ../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ 84 | #define __PASTE(a,b) ___PASTE(a,b) | ^~~~~~~~ ../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; | ^~~~~~~~~~~ ../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) | ^~~~~~~~~~~~~~ ../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ 256 | __ADDRESSABLE(fn) | ^~~~~~~~~~~~~ ../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ 261 | __define_initcall_stub(__stub, fn) \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ 12224 | late_initcall(init_subsystem); | ^~~~~~~~~~~~~ ../net/core/filter.c:12214:38: error: declaration for parameter ‘bpf_sk_iter_kfunc_set’ but no such parameter 12214 | static const struct btf_kfunc_id_set bpf_sk_iter_kfunc_set = { | ^~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12202:18: error: declaration for parameter ‘bpf_sk_iter_kfunc_ids’ but no such parameter 12202 | BTF_KFUNCS_START(bpf_sk_iter_kfunc_ids) | ^~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~ ../include/linux/compiler.h:189:45: error: declaration for parameter ‘__UNIQUE_ID___addressable_bpf_kfunc_init2974’ but no such parameter 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ 83 | #define ___PASTE(a,b) a##b | ^ ../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ 84 | #define __PASTE(a,b) ___PASTE(a,b) | ^~~~~~~~ ../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | ^~~~~~~ ../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; | ^~~~~~~~~~~ ../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) | ^~~~~~~~~~~~~~ ../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ 256 | __ADDRESSABLE(fn) | ^~~~~~~~~~~~~ ../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ 261 | __define_initcall_stub(__stub, fn) \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ 274 | ____define_initcall(fn, \ | ^~~~~~~~~~~~~~~~~~~ ../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) | ^~~~~~~~~~~~~~~~~ ../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) | ^~~~~~~~~~~~~~~~~~ ../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ 313 | #define late_initcall(fn) __define_initcall(fn, 7) | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ 12164 | late_initcall(bpf_kfunc_init); | ^~~~~~~~~~~~~ ../net/core/filter.c:12139:38: error: declaration for parameter ‘bpf_kfunc_set_tcp_reqsk’ but no such parameter 12139 | static const struct btf_kfunc_id_set bpf_kfunc_set_tcp_reqsk = { | ^~~~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12134:38: error: declaration for parameter ‘bpf_kfunc_set_sock_addr’ but no such parameter 12134 | static const struct btf_kfunc_id_set bpf_kfunc_set_sock_addr = { | ^~~~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12129:38: error: declaration for parameter ‘bpf_kfunc_set_xdp’ but no such parameter 12129 | static const struct btf_kfunc_id_set bpf_kfunc_set_xdp = { | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12122:38: error: declaration for parameter ‘bpf_kfunc_set_skb’ but no such parameter 12122 | static const struct btf_kfunc_id_set bpf_kfunc_set_skb = { | ^~~~~~~~~~~~~~~~~ ../net/core/filter.c:12087:13: error: declaration for parameter ‘bpf_dynptr_from_skb_list’ but no such parameter 12087 | BTF_ID_LIST(bpf_dynptr_from_skb_list) | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:223:53: note: in definition of macro ‘BTF_ID_LIST’ 223 | #define BTF_ID_LIST(name) static u32 __maybe_unused name[64]; | ^~~~ ../net/core/filter.c:12083:18: error: declaration for parameter ‘bpf_kfunc_check_set_tcp_reqsk’ but no such parameter 12083 | BTF_KFUNCS_START(bpf_kfunc_check_set_tcp_reqsk) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~ ../net/core/filter.c:12079:18: error: declaration for parameter ‘bpf_kfunc_check_set_sock_addr’ but no such parameter 12079 | BTF_KFUNCS_START(bpf_kfunc_check_set_sock_addr) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~ ../net/core/filter.c:12075:18: error: declaration for parameter ‘bpf_kfunc_check_set_xdp’ but no such parameter 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^~~~ ../net/core/filter.c:12225: error: expected ‘{’ at end of input ../net/core/filter.c:12071:1: note: the ABI of passing struct with a flexible array member has changed in GCC 4.4 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^~~~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:12225: error: control reaches end of non-void function [-Werror=return-type] cc1: some warnings being treated as errors make[5]: *** [../scripts/Makefile.build:194: net/core/filter.o] Error 1 make[4]: *** [../scripts/Makefile.build:440: net/core] Error 2 make[3]: *** [../scripts/Makefile.build:440: net] Error 2 make[3]: *** Waiting for unfinished jobs.... ../kernel/bpf/verifier.c:347:12: warning: symbol 'btf_vmlinux' was not declared. Should it be static? ../kernel/bpf/verifier.c:21778:38: error: subtraction of functions? Share your drugs ../kernel/bpf/verifier.c: note: in included file (through ../include/linux/bpf.h, ../include/linux/bpf-cgroup.h): ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1989: .] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.nVUmkvUbAw 2024-12-19 15:34:49.778296217 -0800 +++ /tmp/tmp.5fQLrWt5mm 2024-12-19 15:35:09.528094789 -0800 @@ -1,57 +1,644 @@ -../net/core/filter.c:1423:39: warning: incorrect type in argument 1 (different address spaces) -../net/core/filter.c:1423:39: expected struct sock_filter const *filter -../net/core/filter.c:1423:39: got struct sock_filter [noderef] __user *filter -../net/core/filter.c:1501:39: warning: incorrect type in argument 1 (different address spaces) -../net/core/filter.c:1501:39: expected struct sock_filter const *filter -../net/core/filter.c:1501:39: got struct sock_filter [noderef] __user *filter -../net/core/filter.c:2323:45: warning: incorrect type in argument 2 (different base types) -../net/core/filter.c:2323:45: expected restricted __be32 [usertype] daddr -../net/core/filter.c:2323:45: got unsigned int [usertype] ipv4_nh -../net/core/filter.c:3914:29: warning: symbol 'bpf_xdp_get_buff_len_trace_proto' was not declared. Should it be static? -../net/core/filter.c:4647:29: warning: symbol 'bpf_skb_output_proto' was not declared. Should it be static? -../net/core/filter.c:5061:29: warning: symbol 'bpf_xdp_output_proto' was not declared. Should it be static? -../net/core/filter.c:7936:29: warning: symbol 'bpf_sk_storage_get_cg_sock_proto' was not declared. Should it be static? -../net/core/filter.c:11900:17: warning: symbol 'bpf_dynptr_from_skb' was not declared. Should it be static? -../net/core/filter.c:11916:17: warning: symbol 'bpf_dynptr_from_xdp' was not declared. Should it be static? -../net/core/filter.c:11932:17: warning: symbol 'bpf_sock_addr_set_sun_path' was not declared. Should it be static? -../net/core/filter.c:11953:17: warning: symbol 'bpf_sk_assign_tcp_reqsk' was not declared. Should it be static? -../net/core/filter.c:12143:17: warning: symbol 'bpf_sock_destroy' was not declared. Should it be static? -../net/core/filter.c:1931:43: warning: incorrect type in argument 2 (different base types) -../net/core/filter.c:1931:43: expected restricted __wsum [usertype] diff -../net/core/filter.c:1931:43: got unsigned long long [usertype] to -../net/core/filter.c:1934:36: warning: incorrect type in argument 2 (different base types) -../net/core/filter.c:1934:36: expected restricted __be16 [usertype] old -../net/core/filter.c:1934:36: got unsigned long long [usertype] from -../net/core/filter.c:1934:42: warning: incorrect type in argument 3 (different base types) -../net/core/filter.c:1934:42: expected restricted __be16 [usertype] new -../net/core/filter.c:1934:42: got unsigned long long [usertype] to -../net/core/filter.c:1937:36: warning: incorrect type in argument 2 (different base types) -../net/core/filter.c:1937:36: expected restricted __be32 [usertype] from -../net/core/filter.c:1937:36: got unsigned long long [usertype] from -../net/core/filter.c:1937:42: warning: incorrect type in argument 3 (different base types) -../net/core/filter.c:1937:42: expected restricted __be32 [usertype] to -../net/core/filter.c:1937:42: got unsigned long long [usertype] to -../net/core/filter.c:1982:59: warning: incorrect type in argument 3 (different base types) -../net/core/filter.c:1982:59: expected restricted __wsum [usertype] diff -../net/core/filter.c:1982:59: got unsigned long long [usertype] to -../net/core/filter.c:1985:52: warning: incorrect type in argument 3 (different base types) -../net/core/filter.c:1985:52: expected restricted __be16 [usertype] from -../net/core/filter.c:1985:52: got unsigned long long [usertype] from -../net/core/filter.c:1985:58: warning: incorrect type in argument 4 (different base types) -../net/core/filter.c:1985:58: expected restricted __be16 [usertype] to -../net/core/filter.c:1985:58: got unsigned long long [usertype] to -../net/core/filter.c:1988:52: warning: incorrect type in argument 3 (different base types) -../net/core/filter.c:1988:52: expected restricted __be32 [usertype] from -../net/core/filter.c:1988:52: got unsigned long long [usertype] from -../net/core/filter.c:1988:58: warning: incorrect type in argument 4 (different base types) -../net/core/filter.c:1988:58: expected restricted __be32 [usertype] to -../net/core/filter.c:1988:58: got unsigned long long [usertype] to -../net/core/filter.c:2055:35: warning: incorrect type in return expression (different base types) -../net/core/filter.c:2055:35: expected unsigned long long -../net/core/filter.c:2055:35: got restricted __wsum [usertype] csum -../net/core/filter.c:5859:17: warning: incorrect type in assignment (different base types) -../net/core/filter.c:5859:17: expected unsigned int [usertype] spi -../net/core/filter.c:5859:17: got restricted __be32 const [usertype] spi -../net/core/filter.c:5867:33: warning: incorrect type in assignment (different base types) -../net/core/filter.c:5867:33: expected unsigned int [usertype] remote_ipv4 -../net/core/filter.c:5867:33: got restricted __be32 const [usertype] a4 +../net/core/filter.c:12071:1: error: return type defaults to ‘int’ [-Wimplicit-int] +12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) + | ^~~~~~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12071:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes] +In file included from ../include/linux/btf.h:10, + from ../include/linux/bpf.h:28, + from ../include/linux/bpf_verifier.h:7, + from ../net/core/filter.c:21: +../net/core/filter.c: In function ‘BTF_HIDDEN_KFUNCS_START’: +../net/core/filter.c:12075:18: error: storage class specified for parameter ‘bpf_kfunc_check_set_xdp’ +12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~ +../include/linux/btf_ids.h:235:46: error: parameter ‘bpf_kfunc_check_set_xdp’ is initialized + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~~~~~~~~ +../net/core/filter.c:12075:1: note: in expansion of macro ‘BTF_KFUNCS_START’ +12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) + | ^~~~~~~~~~~~~~~~ +../net/core/filter.c:12079:18: error: storage class specified for parameter ‘bpf_kfunc_check_set_sock_addr’ +12079 | BTF_KFUNCS_START(bpf_kfunc_check_set_sock_addr) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~ +../include/linux/btf_ids.h:235:46: error: parameter ‘bpf_kfunc_check_set_sock_addr’ is initialized + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~~~~~~~~ +../net/core/filter.c:12079:1: note: in expansion of macro ‘BTF_KFUNCS_START’ +12079 | BTF_KFUNCS_START(bpf_kfunc_check_set_sock_addr) + | ^~~~~~~~~~~~~~~~ +../net/core/filter.c:12083:18: error: storage class specified for parameter ‘bpf_kfunc_check_set_tcp_reqsk’ +12083 | BTF_KFUNCS_START(bpf_kfunc_check_set_tcp_reqsk) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~ +../include/linux/btf_ids.h:235:46: error: parameter ‘bpf_kfunc_check_set_tcp_reqsk’ is initialized + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~~~~~~~~ +../net/core/filter.c:12083:1: note: in expansion of macro ‘BTF_KFUNCS_START’ +12083 | BTF_KFUNCS_START(bpf_kfunc_check_set_tcp_reqsk) + | ^~~~~~~~~~~~~~~~ +../net/core/filter.c:12087:13: error: storage class specified for parameter ‘bpf_dynptr_from_skb_list’ +12087 | BTF_ID_LIST(bpf_dynptr_from_skb_list) + | ^~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:223:53: note: in definition of macro ‘BTF_ID_LIST’ + 223 | #define BTF_ID_LIST(name) static u32 __maybe_unused name[64]; + | ^~~~ +../net/core/filter.c:12092:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token +12092 | { + | ^ +../net/core/filter.c:12122:38: error: storage class specified for parameter ‘bpf_kfunc_set_skb’ +12122 | static const struct btf_kfunc_id_set bpf_kfunc_set_skb = { + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12122:21: error: parameter ‘bpf_kfunc_set_skb’ is initialized +12122 | static const struct btf_kfunc_id_set bpf_kfunc_set_skb = { + | ^~~~~~~~~~~~~~~~ +../net/core/filter.c:12125:24: error: ‘bpf_kfunc_check_hidden_set_skb’ undeclared (first use in this function); did you mean ‘bpf_kfunc_check_set_skb’? +12125 | .hidden_set = &bpf_kfunc_check_hidden_set_skb, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | bpf_kfunc_check_set_skb +../net/core/filter.c:12125:24: note: each undeclared identifier is reported only once for each function it appears in +../net/core/filter.c:12126:19: error: ‘bpf_kfunc_set_skb_remap’ undeclared (first use in this function); did you mean ‘bpf_kfunc_set_skb’? +12126 | .remap = &bpf_kfunc_set_skb_remap, + | ^~~~~~~~~~~~~~~~~~~~~~~ + | bpf_kfunc_set_skb +../net/core/filter.c:12129:38: error: storage class specified for parameter ‘bpf_kfunc_set_xdp’ +12129 | static const struct btf_kfunc_id_set bpf_kfunc_set_xdp = { + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12129:21: error: parameter ‘bpf_kfunc_set_xdp’ is initialized +12129 | static const struct btf_kfunc_id_set bpf_kfunc_set_xdp = { + | ^~~~~~~~~~~~~~~~ +../net/core/filter.c:12134:38: error: storage class specified for parameter ‘bpf_kfunc_set_sock_addr’ +12134 | static const struct btf_kfunc_id_set bpf_kfunc_set_sock_addr = { + | ^~~~~~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12134:21: error: parameter ‘bpf_kfunc_set_sock_addr’ is initialized +12134 | static const struct btf_kfunc_id_set bpf_kfunc_set_sock_addr = { + | ^~~~~~~~~~~~~~~~ +../net/core/filter.c:12139:38: error: storage class specified for parameter ‘bpf_kfunc_set_tcp_reqsk’ +12139 | static const struct btf_kfunc_id_set bpf_kfunc_set_tcp_reqsk = { + | ^~~~~~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12139:21: error: parameter ‘bpf_kfunc_set_tcp_reqsk’ is initialized +12139 | static const struct btf_kfunc_id_set bpf_kfunc_set_tcp_reqsk = { + | ^~~~~~~~~~~~~~~~ +../net/core/filter.c:12145:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token +12145 | { + | ^ +In file included from : +../include/linux/compiler.h:189:45: error: storage class specified for parameter ‘__UNIQUE_ID___addressable_bpf_kfunc_init2974’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~~~~~~ +./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ + 83 | #define ___PASTE(a,b) a##b + | ^ +../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ + 84 | #define __PASTE(a,b) ___PASTE(a,b) + | ^~~~~~~~ +../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ + 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; + | ^~~~~~~~~~~ +../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ + 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) + | ^~~~~~~~~~~~~~ +../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ + 256 | __ADDRESSABLE(fn) + | ^~~~~~~~~~~~~ +../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ + 261 | __define_initcall_stub(__stub, fn) \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ +12164 | late_initcall(bpf_kfunc_init); + | ^~~~~~~~~~~~~ +../net/core/filter.c:12164:1: error: parameter ‘__UNIQUE_ID___addressable_bpf_kfunc_init2974’ is initialized +../net/core/filter.c:12164:1: warning: ‘used’ attribute ignored [-Wattributes] +../include/linux/compiler.h:189:45: error: section attribute not allowed for ‘__UNIQUE_ID___addressable_bpf_kfunc_init2974’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~~~~~~ +./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ + 83 | #define ___PASTE(a,b) a##b + | ^ +../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ + 84 | #define __PASTE(a,b) ___PASTE(a,b) + | ^~~~~~~~ +../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ + 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; + | ^~~~~~~~~~~ +../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ + 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) + | ^~~~~~~~~~~~~~ +../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ + 256 | __ADDRESSABLE(fn) + | ^~~~~~~~~~~~~ +../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ + 261 | __define_initcall_stub(__stub, fn) \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ +12164 | late_initcall(bpf_kfunc_init); + | ^~~~~~~~~~~~~ +In file included from ../arch/x86/include/asm/atomic.h:5, + from ../include/linux/atomic.h:7, + from ../net/core/filter.c:20: +../net/core/filter.c:12164:15: error: ‘bpf_kfunc_init’ undeclared (first use in this function); did you mean ‘bpf_func_info’? +12164 | late_initcall(bpf_kfunc_init); + | ^~~~~~~~~~~~~~ +../include/linux/compiler.h:227:72: note: in definition of macro ‘___ADDRESSABLE’ + 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; + | ^~~ +../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ + 256 | __ADDRESSABLE(fn) + | ^~~~~~~~~~~~~ +../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ + 261 | __define_initcall_stub(__stub, fn) \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ +12164 | late_initcall(bpf_kfunc_init); + | ^~~~~~~~~~~~~ +In file included from ../include/linux/printk.h:6, + 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: +../include/linux/init.h:262:9: error: expected declaration specifiers before ‘asm’ + 262 | asm(".section \"" __sec "\", \"a\" \n" \ + | ^~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ +12164 | late_initcall(bpf_kfunc_init); + | ^~~~~~~~~~~~~ +In file included from ../include/linux/atomic/atomic-instrumented.h:15, + from ../include/linux/atomic.h:82: +../include/linux/build_bug.h:78:41: error: expected declaration specifiers before ‘_Static_assert’ + 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) + | ^~~~~~~~~~~~~~ +../include/linux/build_bug.h:77:34: note: in expansion of macro ‘__static_assert’ + 77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) + | ^~~~~~~~~~~~~~~ +../include/linux/init.h:266:9: note: in expansion of macro ‘static_assert’ + 266 | static_assert(__same_type(initcall_t, &fn)); + | ^~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ +12164 | late_initcall(bpf_kfunc_init); + | ^~~~~~~~~~~~~ +../net/core/filter.c:12164:30: error: expected declaration specifiers before ‘;’ token +12164 | late_initcall(bpf_kfunc_init); + | ^ +In file included from ./../include/linux/compiler_types.h:174: +../include/linux/compiler-gcc.h:134:33: error: expected declaration specifiers before ‘#pragma’ + 134 | #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) + | ^~~~~~~ +./../include/linux/compiler_types.h:557:25: note: in expansion of macro ‘__diag’ + 557 | #define __diag_push() __diag(push) + | ^~~~~~ +../include/linux/btf.h:89:9: note: in expansion of macro ‘__diag_push’ + 89 | __diag_push(); \ + | ^~~~~~~~~~~ +../net/core/filter.c:12166:1: note: in expansion of macro ‘__bpf_kfunc_start_defs’ +12166 | __bpf_kfunc_start_defs(); + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/compiler-gcc.h:134:33: error: expected declaration specifiers before ‘#pragma’ + 134 | #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) + | ^~~~~~~ +../include/linux/compiler-gcc.h:143:9: note: in expansion of macro ‘__diag’ + 143 | __diag(__diag_GCC_ignore option) + | ^~~~~~ +../include/linux/btf.h:90:9: note: in expansion of macro ‘__diag_ignore_all’ + 90 | __diag_ignore_all("-Wmissing-declarations", \ + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12166:1: note: in expansion of macro ‘__bpf_kfunc_start_defs’ +12166 | __bpf_kfunc_start_defs(); + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/compiler-gcc.h:134:33: error: expected declaration specifiers before ‘#pragma’ + 134 | #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) + | ^~~~~~~ +../include/linux/compiler-gcc.h:143:9: note: in expansion of macro ‘__diag’ + 143 | __diag(__diag_GCC_ignore option) + | ^~~~~~ +../include/linux/btf.h:92:9: note: in expansion of macro ‘__diag_ignore_all’ + 92 | __diag_ignore_all("-Wmissing-prototypes", \ + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12166:1: note: in expansion of macro ‘__bpf_kfunc_start_defs’ +12166 | __bpf_kfunc_start_defs(); + | ^~~~~~~~~~~~~~~~~~~~~~ +In file included from ./../include/linux/compiler_types.h:89: +../include/linux/compiler_attributes.h:349:41: error: expected declaration specifiers before ‘__attribute__’ + 349 | #define __used __attribute__((__used__)) + | ^~~~~~~~~~~~~ +../include/linux/btf.h:86:21: note: in expansion of macro ‘__used’ + 86 | #define __bpf_kfunc __used __retain noinline + | ^~~~~~ +../net/core/filter.c:12184:1: note: in expansion of macro ‘__bpf_kfunc’ +12184 | __bpf_kfunc int bpf_sock_destroy(struct sock_common *sock) + | ^~~~~~~~~~~ +../include/linux/compiler-gcc.h:134:33: error: expected declaration specifiers before ‘#pragma’ + 134 | #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) + | ^~~~~~~ +./../include/linux/compiler_types.h:558:25: note: in expansion of macro ‘__diag’ + 558 | #define __diag_pop() __diag(pop) + | ^~~~~~ +../include/linux/btf.h:95:32: note: in expansion of macro ‘__diag_pop’ + 95 | #define __bpf_kfunc_end_defs() __diag_pop() + | ^~~~~~~~~~ +../net/core/filter.c:12200:1: note: in expansion of macro ‘__bpf_kfunc_end_defs’ +12200 | __bpf_kfunc_end_defs(); + | ^~~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12202:18: error: storage class specified for parameter ‘bpf_sk_iter_kfunc_ids’ +12202 | BTF_KFUNCS_START(bpf_sk_iter_kfunc_ids) + | ^~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~ +../include/linux/btf_ids.h:235:46: error: parameter ‘bpf_sk_iter_kfunc_ids’ is initialized + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~~~~~~~~ +../net/core/filter.c:12202:1: note: in expansion of macro ‘BTF_KFUNCS_START’ +12202 | BTF_KFUNCS_START(bpf_sk_iter_kfunc_ids) + | ^~~~~~~~~~~~~~~~ +../net/core/filter.c:12207:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token +12207 | { + | ^ +../net/core/filter.c:12214:38: error: storage class specified for parameter ‘bpf_sk_iter_kfunc_set’ +12214 | static const struct btf_kfunc_id_set bpf_sk_iter_kfunc_set = { + | ^~~~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12214:21: error: parameter ‘bpf_sk_iter_kfunc_set’ is initialized +12214 | static const struct btf_kfunc_id_set bpf_sk_iter_kfunc_set = { + | ^~~~~~~~~~~~~~~~ +../net/core/filter.c:12217:19: error: ‘tracing_iter_filter’ undeclared (first use in this function) +12217 | .filter = tracing_iter_filter, + | ^~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12221:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token +12221 | { + | ^ +../include/linux/compiler.h:189:45: error: storage class specified for parameter ‘__UNIQUE_ID___addressable_init_subsystem2976’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~~~~~~ +./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ + 83 | #define ___PASTE(a,b) a##b + | ^ +../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ + 84 | #define __PASTE(a,b) ___PASTE(a,b) + | ^~~~~~~~ +../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ + 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; + | ^~~~~~~~~~~ +../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ + 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) + | ^~~~~~~~~~~~~~ +../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ + 256 | __ADDRESSABLE(fn) + | ^~~~~~~~~~~~~ +../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ + 261 | __define_initcall_stub(__stub, fn) \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ +12224 | late_initcall(init_subsystem); + | ^~~~~~~~~~~~~ +../net/core/filter.c:12224:1: error: parameter ‘__UNIQUE_ID___addressable_init_subsystem2976’ is initialized +../net/core/filter.c:12224:1: warning: ‘used’ attribute ignored [-Wattributes] +../include/linux/compiler.h:189:45: error: section attribute not allowed for ‘__UNIQUE_ID___addressable_init_subsystem2976’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~~~~~~ +./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ + 83 | #define ___PASTE(a,b) a##b + | ^ +../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ + 84 | #define __PASTE(a,b) ___PASTE(a,b) + | ^~~~~~~~ +../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ + 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; + | ^~~~~~~~~~~ +../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ + 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) + | ^~~~~~~~~~~~~~ +../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ + 256 | __ADDRESSABLE(fn) + | ^~~~~~~~~~~~~ +../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ + 261 | __define_initcall_stub(__stub, fn) \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ +12224 | late_initcall(init_subsystem); + | ^~~~~~~~~~~~~ +../net/core/filter.c:12224:15: error: ‘init_subsystem’ undeclared (first use in this function) +12224 | late_initcall(init_subsystem); + | ^~~~~~~~~~~~~~ +../include/linux/compiler.h:227:72: note: in definition of macro ‘___ADDRESSABLE’ + 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; + | ^~~ +../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ + 256 | __ADDRESSABLE(fn) + | ^~~~~~~~~~~~~ +../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ + 261 | __define_initcall_stub(__stub, fn) \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ +12224 | late_initcall(init_subsystem); + | ^~~~~~~~~~~~~ +../include/linux/init.h:262:9: error: expected declaration specifiers before ‘asm’ + 262 | asm(".section \"" __sec "\", \"a\" \n" \ + | ^~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ +12224 | late_initcall(init_subsystem); + | ^~~~~~~~~~~~~ +../include/linux/build_bug.h:78:41: error: expected declaration specifiers before ‘_Static_assert’ + 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) + | ^~~~~~~~~~~~~~ +../include/linux/build_bug.h:77:34: note: in expansion of macro ‘__static_assert’ + 77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) + | ^~~~~~~~~~~~~~~ +../include/linux/init.h:266:9: note: in expansion of macro ‘static_assert’ + 266 | static_assert(__same_type(initcall_t, &fn)); + | ^~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ +12224 | late_initcall(init_subsystem); + | ^~~~~~~~~~~~~ +../net/core/filter.c:12224:30: error: expected declaration specifiers before ‘;’ token +12224 | late_initcall(init_subsystem); + | ^ +../include/linux/compiler.h:189:45: error: declaration for parameter ‘__UNIQUE_ID___addressable_init_subsystem2976’ but no such parameter + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~~~~~~ +./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ + 83 | #define ___PASTE(a,b) a##b + | ^ +../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ + 84 | #define __PASTE(a,b) ___PASTE(a,b) + | ^~~~~~~~ +../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ + 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; + | ^~~~~~~~~~~ +../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ + 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) + | ^~~~~~~~~~~~~~ +../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ + 256 | __ADDRESSABLE(fn) + | ^~~~~~~~~~~~~ +../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ + 261 | __define_initcall_stub(__stub, fn) \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12224:1: note: in expansion of macro ‘late_initcall’ +12224 | late_initcall(init_subsystem); + | ^~~~~~~~~~~~~ +../net/core/filter.c:12214:38: error: declaration for parameter ‘bpf_sk_iter_kfunc_set’ but no such parameter +12214 | static const struct btf_kfunc_id_set bpf_sk_iter_kfunc_set = { + | ^~~~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12202:18: error: declaration for parameter ‘bpf_sk_iter_kfunc_ids’ but no such parameter +12202 | BTF_KFUNCS_START(bpf_sk_iter_kfunc_ids) + | ^~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~ +../include/linux/compiler.h:189:45: error: declaration for parameter ‘__UNIQUE_ID___addressable_bpf_kfunc_init2974’ but no such parameter + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~~~~~~ +./../include/linux/compiler_types.h:83:23: note: in definition of macro ‘___PASTE’ + 83 | #define ___PASTE(a,b) a##b + | ^ +../include/linux/compiler.h:189:29: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +./../include/linux/compiler_types.h:84:22: note: in expansion of macro ‘___PASTE’ + 84 | #define __PASTE(a,b) ___PASTE(a,b) + | ^~~~~~~~ +../include/linux/compiler.h:189:37: note: in expansion of macro ‘__PASTE’ + 189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) + | ^~~~~~~ +../include/linux/compiler.h:227:9: note: in expansion of macro ‘__UNIQUE_ID’ + 227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym; + | ^~~~~~~~~~~ +../include/linux/compiler.h:229:9: note: in expansion of macro ‘___ADDRESSABLE’ + 229 | ___ADDRESSABLE(sym, __section(".discard.addressable")) + | ^~~~~~~~~~~~~~ +../include/linux/init.h:256:9: note: in expansion of macro ‘__ADDRESSABLE’ + 256 | __ADDRESSABLE(fn) + | ^~~~~~~~~~~~~ +../include/linux/init.h:261:9: note: in expansion of macro ‘__define_initcall_stub’ + 261 | __define_initcall_stub(__stub, fn) \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:274:9: note: in expansion of macro ‘____define_initcall’ + 274 | ____define_initcall(fn, \ + | ^~~~~~~~~~~~~~~~~~~ +../include/linux/init.h:280:9: note: in expansion of macro ‘__unique_initcall’ + 280 | __unique_initcall(fn, id, __sec, __initcall_id(fn)) + | ^~~~~~~~~~~~~~~~~ +../include/linux/init.h:282:35: note: in expansion of macro ‘___define_initcall’ + 282 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/init.h:313:41: note: in expansion of macro ‘__define_initcall’ + 313 | #define late_initcall(fn) __define_initcall(fn, 7) + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12164:1: note: in expansion of macro ‘late_initcall’ +12164 | late_initcall(bpf_kfunc_init); + | ^~~~~~~~~~~~~ +../net/core/filter.c:12139:38: error: declaration for parameter ‘bpf_kfunc_set_tcp_reqsk’ but no such parameter +12139 | static const struct btf_kfunc_id_set bpf_kfunc_set_tcp_reqsk = { + | ^~~~~~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12134:38: error: declaration for parameter ‘bpf_kfunc_set_sock_addr’ but no such parameter +12134 | static const struct btf_kfunc_id_set bpf_kfunc_set_sock_addr = { + | ^~~~~~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12129:38: error: declaration for parameter ‘bpf_kfunc_set_xdp’ but no such parameter +12129 | static const struct btf_kfunc_id_set bpf_kfunc_set_xdp = { + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12122:38: error: declaration for parameter ‘bpf_kfunc_set_skb’ but no such parameter +12122 | static const struct btf_kfunc_id_set bpf_kfunc_set_skb = { + | ^~~~~~~~~~~~~~~~~ +../net/core/filter.c:12087:13: error: declaration for parameter ‘bpf_dynptr_from_skb_list’ but no such parameter +12087 | BTF_ID_LIST(bpf_dynptr_from_skb_list) + | ^~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:223:53: note: in definition of macro ‘BTF_ID_LIST’ + 223 | #define BTF_ID_LIST(name) static u32 __maybe_unused name[64]; + | ^~~~ +../net/core/filter.c:12083:18: error: declaration for parameter ‘bpf_kfunc_check_set_tcp_reqsk’ but no such parameter +12083 | BTF_KFUNCS_START(bpf_kfunc_check_set_tcp_reqsk) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~ +../net/core/filter.c:12079:18: error: declaration for parameter ‘bpf_kfunc_check_set_sock_addr’ but no such parameter +12079 | BTF_KFUNCS_START(bpf_kfunc_check_set_sock_addr) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~ +../net/core/filter.c:12075:18: error: declaration for parameter ‘bpf_kfunc_check_set_xdp’ but no such parameter +12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/btf_ids.h:235:73: note: in definition of macro ‘BTF_KFUNCS_START’ + 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; + | ^~~~ +../net/core/filter.c:12225: error: expected ‘{’ at end of input +../net/core/filter.c:12071:1: note: the ABI of passing struct with a flexible array member has changed in GCC 4.4 +12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) + | ^~~~~~~~~~~~~~~~~~~~~~~ +../net/core/filter.c:12225: error: control reaches end of non-void function [-Werror=return-type] +cc1: some warnings being treated as errors +make[5]: *** [../scripts/Makefile.build:194: net/core/filter.o] Error 1 +make[4]: *** [../scripts/Makefile.build:440: net/core] Error 2 +make[3]: *** [../scripts/Makefile.build:440: net] Error 2 +make[3]: *** Waiting for unfinished jobs.... @@ -59 +646 @@ -../kernel/bpf/verifier.c:21788:38: error: subtraction of functions? Share your drugs +../kernel/bpf/verifier.c:21778:38: error: subtraction of functions? Share your drugs @@ -69 +656,3 @@ -WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o +make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1989: .] Error 2 +make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:251: __sub-make] Error 2 +make: *** [Makefile:251: __sub-make] Error 2 Per-file breakdown --- /tmp/tmp.9UPPo27RDV 2024-12-19 15:35:09.537094697 -0800 +++ /tmp/tmp.yewb0vps53 2024-12-19 15:35:09.540094666 -0800 @@ -1,0 +2,6 @@ + 4 ../include/linux/btf_ids.h + 2 ../include/linux/build_bug.h + 1 ../include/linux/compiler_attributes.h + 4 ../include/linux/compiler-gcc.h + 6 ../include/linux/compiler.h + 2 ../include/linux/init.h @@ -3 +9 @@ - 25 ../net/core/filter.c + 44 ../net/core/filter.c