========== build_allmodconfig_warn - FAILED ../net/core/filter.c:1431:39: warning: incorrect type in argument 1 (different address spaces) ../net/core/filter.c:1431:39: expected struct sock_filter const *filter ../net/core/filter.c:1431:39: got struct sock_filter [noderef] __user *filter ../net/core/filter.c:1509:39: warning: incorrect type in argument 1 (different address spaces) ../net/core/filter.c:1509:39: expected struct sock_filter const *filter ../net/core/filter.c:1509:39: got struct sock_filter [noderef] __user *filter ../net/core/filter.c:2331:45: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:2331:45: expected restricted __be32 [usertype] daddr ../net/core/filter.c:2331:45: got unsigned int [usertype] ipv4_nh ../net/core/filter.c:3931:29: warning: symbol 'bpf_xdp_get_buff_len_trace_proto' was not declared. Should it be static? ../net/core/filter.c:4663:29: warning: symbol 'bpf_skb_output_proto' was not declared. Should it be static? ../net/core/filter.c:5077:29: warning: symbol 'bpf_xdp_output_proto' was not declared. Should it be static? ../net/core/filter.c:8014:29: warning: symbol 'bpf_sk_storage_get_cg_sock_proto' was not declared. Should it be static? ../net/core/filter.c:11973:17: warning: symbol 'bpf_dynptr_from_skb' was not declared. Should it be static? ../net/core/filter.c:11989:17: warning: symbol 'bpf_dynptr_from_xdp' was not declared. Should it be static? ../net/core/filter.c:12005:17: warning: symbol 'bpf_sock_addr_set_sun_path' was not declared. Should it be static? ../net/core/filter.c:12026:17: warning: symbol 'bpf_sk_assign_tcp_reqsk' was not declared. Should it be static? ../net/core/filter.c:12123:17: warning: symbol 'bpf_sock_ops_enable_tx_tstamp' was not declared. Should it be static? ../net/core/filter.c:12245:17: warning: symbol 'bpf_sock_destroy' was not declared. Should it be static? ../net/core/filter.c:1939:43: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:1939:43: expected restricted __wsum [usertype] diff ../net/core/filter.c:1939:43: got unsigned long long [usertype] to ../net/core/filter.c:1942:36: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:1942:36: expected restricted __be16 [usertype] old ../net/core/filter.c:1942:36: got unsigned long long [usertype] from ../net/core/filter.c:1942:42: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1942:42: expected restricted __be16 [usertype] new ../net/core/filter.c:1942:42: got unsigned long long [usertype] to ../net/core/filter.c:1945:36: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:1945:36: expected restricted __be32 [usertype] from ../net/core/filter.c:1945:36: got unsigned long long [usertype] from ../net/core/filter.c:1945:42: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1945:42: expected restricted __be32 [usertype] to ../net/core/filter.c:1945:42: got unsigned long long [usertype] to ../net/core/filter.c:1990:59: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1990:59: expected restricted __wsum [usertype] diff ../net/core/filter.c:1990:59: got unsigned long long [usertype] to ../net/core/filter.c:1993:52: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1993:52: expected restricted __be16 [usertype] from ../net/core/filter.c:1993:52: got unsigned long long [usertype] from ../net/core/filter.c:1993:58: warning: incorrect type in argument 4 (different base types) ../net/core/filter.c:1993:58: expected restricted __be16 [usertype] to ../net/core/filter.c:1993:58: got unsigned long long [usertype] to ../net/core/filter.c:1996:52: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1996:52: expected restricted __be32 [usertype] from ../net/core/filter.c:1996:52: got unsigned long long [usertype] from ../net/core/filter.c:1996:58: warning: incorrect type in argument 4 (different base types) ../net/core/filter.c:1996:58: expected restricted __be32 [usertype] to ../net/core/filter.c:1996:58: got unsigned long long [usertype] to ../net/core/filter.c:2063:35: warning: incorrect type in return expression (different base types) ../net/core/filter.c:2063:35: expected unsigned long long ../net/core/filter.c:2063:35: got restricted __wsum [usertype] csum ../net/core/filter.c:5934:17: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5934:17: expected unsigned int [usertype] spi ../net/core/filter.c:5934:17: got restricted __be32 const [usertype] spi ../net/core/filter.c:5942:33: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5942:33: expected unsigned int [usertype] remote_ipv4 ../net/core/filter.c:5942:33: got restricted __be32 const [usertype] a4 ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_printk’: ../kernel/trace/bpf_trace.c:378:9: warning: function ‘____bpf_trace_printk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 378 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_vprintk’: ../kernel/trace/bpf_trace.c:434:9: warning: function ‘____bpf_trace_vprintk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 434 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_seq_printf’: ../kernel/trace/bpf_trace.c:476:9: warning: function ‘____bpf_seq_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 476 | seq_bprintf(m, fmt, data.bin_args); | ^~~~~~~~~~~ ../fs/bpf_fs_kfuncs.c:41:25: warning: symbol 'bpf_get_task_exe_file' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:57:18: warning: symbol 'bpf_put_file' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:81:17: warning: symbol 'bpf_path_d_path' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:129:17: warning: symbol 'bpf_get_dentry_xattr' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:162:17: warning: symbol 'bpf_get_file_xattr' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:288:17: warning: symbol 'bpf_set_dentry_xattr' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:314:17: warning: symbol 'bpf_remove_dentry_xattr' was not declared. Should it be static? ../kernel/bpf/helpers.c: In function ‘____bpf_snprintf’: ../kernel/bpf/helpers.c:1067:9: warning: function ‘____bpf_snprintf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 1067 | err = bstr_printf(str, str_size, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c:190:29: warning: symbol 'bpf_probe_read_user_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:227:29: warning: symbol 'bpf_probe_read_user_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:242:29: warning: symbol 'bpf_probe_read_kernel_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:277:29: warning: symbol 'bpf_probe_read_kernel_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:575:29: warning: symbol 'bpf_perf_event_read_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:761:29: warning: symbol 'bpf_get_current_task_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:772:29: warning: symbol 'bpf_get_current_task_btf_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:787:29: warning: symbol 'bpf_task_pt_regs_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:835:41: warning: incorrect type in assignment (different address spaces) ../kernel/trace/bpf_trace.c:835:41: expected void [noderef] __user *[addressable] [assigned] [usertype] sival_ptr ../kernel/trace/bpf_trace.c:835:41: got void * ../kernel/trace/bpf_trace.c:885:29: warning: symbol 'bpf_send_signal_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:897:29: warning: symbol 'bpf_send_signal_thread_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1188:29: warning: symbol 'bpf_get_branch_snapshot_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1273:28: warning: symbol 'bpf_lookup_user_key' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1322:28: warning: symbol 'bpf_lookup_system_key' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1346:18: warning: symbol 'bpf_key_put' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1366:17: warning: symbol 'bpf_verify_pkcs7_signature' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3390:18: warning: symbol 'bpf_session_is_return' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3398:19: warning: symbol 'bpf_session_cookie' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3579:17: warning: symbol 'bpf_send_signal_task' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3591:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3588:17: warning: symbol 'bpf_probe_read_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3595:17: warning: symbol 'bpf_probe_read_kernel_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3605:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3602:17: warning: symbol 'bpf_probe_read_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3609:17: warning: symbol 'bpf_probe_read_kernel_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3619:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3616:17: warning: symbol 'bpf_copy_from_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3626:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3623:17: warning: symbol 'bpf_copy_from_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3634:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3630:17: warning: symbol 'bpf_copy_from_user_task_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3642:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3638:17: warning: symbol 'bpf_copy_from_user_task_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:2514:21: warning: dereference of noderef expression ../kernel/trace/bpf_trace.c:2518:66: warning: dereference of noderef expression ../kernel/trace/bpf_trace.c: note: in included file (through ../include/linux/rbtree.h, ../include/linux/mm_types.h, ../include/linux/mmzone.h, ../include/linux/gfp.h, ../include/linux/slab.h): ../include/linux/rcupdate.h:871:25: warning: context imbalance in 'uprobe_prog_run' - unexpected unlock ../kernel/bpf/core.c:243:49: error: arithmetics on pointers to functions ../kernel/bpf/core.c:2966:29: warning: symbol 'bpf_seq_printf_btf_proto' was not declared. Should it be static? ../kernel/bpf/core.c: note: in included file (through ../include/trace/trace_events.h, ../include/trace/define_trace.h, ../include/trace/events/xdp.h, ../include/linux/bpf_trace.h): ../include/trace/events/xdp.h:321:1: warning: Using plain integer as NULL pointer ../include/trace/events/xdp.h:348:1: warning: Using plain integer as NULL pointer ../include/trace/events/xdp.h:382:1: warning: Using plain integer as NULL pointer ../kernel/bpf/core.c: note: in included file (through ../include/linux/rbtree_latch.h, ../include/linux/bpf.h, ../include/linux/filter.h): ../include/linux/rbtree.h:74:9: error: incompatible types in comparison expression (different address spaces): ../include/linux/rbtree.h:74:9: struct rb_node [noderef] __rcu * ../include/linux/rbtree.h:74:9: struct rb_node * ../include/linux/rbtree.h:74:9: error: incompatible types in comparison expression (different address spaces): ../include/linux/rbtree.h:74:9: struct rb_node [noderef] __rcu * ../include/linux/rbtree.h:74:9: struct rb_node * ../kernel/bpf/helpers.c:1197:21: warning: incorrect type in assignment (different address spaces) ../kernel/bpf/helpers.c:1197:21: expected unsigned long long ( *[usertype] callback_fn )( ... ) ../kernel/bpf/helpers.c:1197:21: got void [noderef] __rcu * ../kernel/bpf/helpers.c:1900:29: warning: symbol 'bpf_get_current_task_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1901:29: warning: symbol 'bpf_get_current_task_btf_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1902:29: warning: symbol 'bpf_probe_read_user_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1903:29: warning: symbol 'bpf_probe_read_user_str_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1904:29: warning: symbol 'bpf_probe_read_kernel_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1905:29: warning: symbol 'bpf_probe_read_kernel_str_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1906:29: warning: symbol 'bpf_task_pt_regs_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1907:29: warning: symbol 'bpf_perf_event_read_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1908:29: warning: symbol 'bpf_send_signal_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1909:29: warning: symbol 'bpf_send_signal_thread_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1912:29: warning: symbol 'bpf_get_branch_snapshot_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:2172:18: warning: symbol 'bpf_obj_new_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2186:18: warning: symbol 'bpf_percpu_obj_new_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2217:18: warning: symbol 'bpf_obj_drop_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2225:18: warning: symbol 'bpf_percpu_obj_drop_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2231:18: warning: symbol 'bpf_refcount_acquire_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2276:17: warning: symbol 'bpf_list_push_front_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2286:17: warning: symbol 'bpf_list_push_back_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2319:34: warning: symbol 'bpf_list_pop_front' was not declared. Should it be static? ../kernel/bpf/helpers.c:2324:34: warning: symbol 'bpf_list_pop_back' was not declared. Should it be static? ../kernel/bpf/helpers.c:2329:34: warning: symbol 'bpf_list_front' was not declared. Should it be static? ../kernel/bpf/helpers.c:2339:34: warning: symbol 'bpf_list_back' was not declared. Should it be static? ../kernel/bpf/helpers.c:2349:32: warning: symbol 'bpf_rbtree_remove' was not declared. Should it be static? ../kernel/bpf/helpers.c:2405:17: warning: symbol 'bpf_rbtree_add_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2415:32: warning: symbol 'bpf_rbtree_first' was not declared. Should it be static? ../kernel/bpf/helpers.c:2422:32: warning: symbol 'bpf_rbtree_root' was not declared. Should it be static? ../kernel/bpf/helpers.c:2429:32: warning: symbol 'bpf_rbtree_left' was not declared. Should it be static? ../kernel/bpf/helpers.c:2439:32: warning: symbol 'bpf_rbtree_right' was not declared. Should it be static? ../kernel/bpf/helpers.c:2455:32: warning: symbol 'bpf_task_acquire' was not declared. Should it be static? ../kernel/bpf/helpers.c:2466:18: warning: symbol 'bpf_task_release' was not declared. Should it be static? ../kernel/bpf/helpers.c:2471:18: warning: symbol 'bpf_task_release_dtor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2484:27: warning: symbol 'bpf_cgroup_acquire' was not declared. Should it be static? ../kernel/bpf/helpers.c:2496:18: warning: symbol 'bpf_cgroup_release' was not declared. Should it be static? ../kernel/bpf/helpers.c:2501:18: warning: symbol 'bpf_cgroup_release_dtor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2514:27: warning: symbol 'bpf_cgroup_ancestor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2534:27: warning: symbol 'bpf_cgroup_from_id' was not declared. Should it be static? ../kernel/bpf/helpers.c:2554:18: warning: symbol 'bpf_task_under_cgroup' was not declared. Should it be static? ../kernel/bpf/helpers.c:2597:27: warning: symbol 'bpf_task_get_cgroup1' was not declared. Should it be static? ../kernel/bpf/helpers.c:2614:32: warning: symbol 'bpf_task_from_pid' was not declared. Should it be static? ../kernel/bpf/helpers.c:2633:32: warning: symbol 'bpf_task_from_vpid' was not declared. Should it be static? ../kernel/bpf/helpers.c:2674:18: warning: symbol 'bpf_dynptr_slice' was not declared. Should it be static? ../kernel/bpf/helpers.c:2792:17: warning: symbol 'bpf_dynptr_adjust' was not declared. Should it be static? ../kernel/bpf/helpers.c:2811:18: warning: symbol 'bpf_dynptr_is_null' was not declared. Should it be static? ../kernel/bpf/helpers.c:2818:18: warning: symbol 'bpf_dynptr_is_rdonly' was not declared. Should it be static? ../kernel/bpf/helpers.c:2828:19: warning: symbol 'bpf_dynptr_size' was not declared. Should it be static? ../kernel/bpf/helpers.c:2838:17: warning: symbol 'bpf_dynptr_clone' was not declared. Should it be static? ../kernel/bpf/helpers.c:2865:17: warning: symbol 'bpf_dynptr_copy' was not declared. Should it be static? ../kernel/bpf/helpers.c:2909:18: warning: symbol 'bpf_cast_to_kern_ctx' was not declared. Should it be static? ../kernel/bpf/helpers.c:2914:18: warning: symbol 'bpf_rdonly_cast' was not declared. Should it be static? ../kernel/bpf/helpers.c:2919:18: warning: symbol 'bpf_rcu_read_lock' was not declared. Should it be static? ../kernel/bpf/helpers.c:2924:18: warning: symbol 'bpf_rcu_read_unlock' was not declared. Should it be static? ../kernel/bpf/helpers.c:2953:18: warning: symbol 'bpf_throw' was not declared. Should it be static? ../kernel/bpf/helpers.c:2972:17: warning: symbol 'bpf_wq_init' was not declared. Should it be static? ../kernel/bpf/helpers.c:2986:17: warning: symbol 'bpf_wq_start' was not declared. Should it be static? ../kernel/bpf/helpers.c:3003:17: warning: symbol 'bpf_wq_set_callback_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:3017:18: warning: symbol 'bpf_preempt_disable' was not declared. Should it be static? ../kernel/bpf/helpers.c:3022:18: warning: symbol 'bpf_preempt_enable' was not declared. Should it be static? ../kernel/bpf/helpers.c:3081:1: warning: symbol 'bpf_iter_bits_new' was not declared. Should it be static? ../kernel/bpf/helpers.c:3142:17: warning: symbol 'bpf_iter_bits_next' was not declared. Should it be static? ../kernel/bpf/helpers.c:3168:18: warning: symbol 'bpf_iter_bits_destroy' was not declared. Should it be static? ../kernel/bpf/helpers.c:3192:17: warning: symbol 'bpf_copy_from_user_str' was not declared. Should it be static? ../kernel/bpf/helpers.c:3237:17: warning: symbol 'bpf_copy_from_user_task_str' was not declared. Should it be static? ../kernel/bpf/helpers.c:3267:18: warning: symbol 'bpf_local_irq_save' was not declared. Should it be static? ../kernel/bpf/helpers.c:3272:18: warning: symbol 'bpf_local_irq_restore' was not declared. Should it be static? ../kernel/bpf/helpers.c:3277:18: warning: symbol '__bpf_trap' was not declared. Should it be static? ../kernel/bpf/helpers.c:2919:18: warning: context imbalance in 'bpf_rcu_read_lock' - wrong count at exit ../kernel/bpf/helpers.c: note: in included file (through ../include/linux/workqueue.h, ../include/linux/bpf.h): ../include/linux/rcupdate.h:871:25: warning: context imbalance in 'bpf_rcu_read_unlock' - unexpected unlock ../kernel/bpf/verifier.c:349:12: warning: symbol 'btf_vmlinux' was not declared. Should it be static? ../kernel/bpf/verifier.c:22407: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 ../kernel/bpf/trampoline.c: In function ‘__bpf_gtrampoline_unlink_prog’: ../kernel/bpf/trampoline.c:715:23: error: ‘struct kfunc_md’ has no member named ‘tramp’ 715 | if (md->tramp) | ^~ ../kernel/bpf/trampoline.c:716:25: error: implicit declaration of function ‘bpf_gtrampoline_remove’; did you mean ‘bpf_gtrampoline_update’? [-Wimplicit-function-declaration] 716 | bpf_gtrampoline_remove(md->tramp, link->link.prog, false); | ^~~~~~~~~~~~~~~~~~~~~~ | bpf_gtrampoline_update ../kernel/bpf/trampoline.c:716:50: error: ‘struct kfunc_md’ has no member named ‘tramp’ 716 | bpf_gtrampoline_remove(md->tramp, link->link.prog, false); | ^~ make[5]: *** [../scripts/Makefile.build:203: kernel/bpf/trampoline.o] Error 1 make[5]: *** Waiting for unfinished jobs.... ../kernel/bpf/dmabuf_iter.c:119:17: warning: symbol 'bpf_iter_dmabuf_new' was not declared. Should it be static? ../kernel/bpf/dmabuf_iter.c:130:28: warning: symbol 'bpf_iter_dmabuf_next' was not declared. Should it be static? ../kernel/bpf/dmabuf_iter.c:142:18: warning: symbol 'bpf_iter_dmabuf_destroy' was not declared. Should it be static? ../kernel/bpf/cgroup_iter.c:310:17: warning: symbol 'bpf_iter_css_new' was not declared. Should it be static? ../kernel/bpf/cgroup_iter.c:334:40: warning: symbol 'bpf_iter_css_next' was not declared. Should it be static? ../kernel/bpf/cgroup_iter.c:355:18: warning: symbol 'bpf_iter_css_destroy' was not declared. Should it be static? ../kernel/bpf/cpumask.c:53:32: warning: symbol 'bpf_cpumask_create' was not declared. Should it be static? ../kernel/bpf/cpumask.c:83:32: warning: symbol 'bpf_cpumask_acquire' was not declared. Should it be static? ../kernel/bpf/cpumask.c:97:18: warning: symbol 'bpf_cpumask_release' was not declared. Should it be static? ../kernel/bpf/cpumask.c:105:18: warning: symbol 'bpf_cpumask_release_dtor' was not declared. Should it be static? ../kernel/bpf/cpumask.c:121:17: warning: symbol 'bpf_cpumask_first' was not declared. Should it be static? ../kernel/bpf/cpumask.c:137:17: warning: symbol 'bpf_cpumask_first_zero' was not declared. Should it be static? ../kernel/bpf/cpumask.c:154:17: warning: symbol 'bpf_cpumask_first_and' was not declared. Should it be static? ../kernel/bpf/cpumask.c:165:18: warning: symbol 'bpf_cpumask_set_cpu' was not declared. Should it be static? ../kernel/bpf/cpumask.c:178:18: warning: symbol 'bpf_cpumask_clear_cpu' was not declared. Should it be static? ../kernel/bpf/cpumask.c:195:18: warning: symbol 'bpf_cpumask_test_cpu' was not declared. Should it be static? ../kernel/bpf/cpumask.c:212:18: warning: symbol 'bpf_cpumask_test_and_set_cpu' was not declared. Should it be static? ../kernel/bpf/cpumask.c:230:18: warning: symbol 'bpf_cpumask_test_and_clear_cpu' was not declared. Should it be static? ../kernel/bpf/cpumask.c:242:18: warning: symbol 'bpf_cpumask_setall' was not declared. Should it be static? ../kernel/bpf/cpumask.c:251:18: warning: symbol 'bpf_cpumask_clear' was not declared. Should it be static? ../kernel/bpf/cpumask.c:268:18: warning: symbol 'bpf_cpumask_and' was not declared. Should it be static? ../kernel/bpf/cpumask.c:283:18: warning: symbol 'bpf_cpumask_or' was not declared. Should it be static? ../kernel/bpf/cpumask.c:298:18: warning: symbol 'bpf_cpumask_xor' was not declared. Should it be static? ../kernel/bpf/cpumask.c:316:18: warning: symbol 'bpf_cpumask_equal' was not declared. Should it be static? ../kernel/bpf/cpumask.c:332:18: warning: symbol 'bpf_cpumask_intersects' was not declared. Should it be static? ../kernel/bpf/cpumask.c:348:18: warning: symbol 'bpf_cpumask_subset' was not declared. Should it be static? ../kernel/bpf/cpumask.c:363:18: warning: symbol 'bpf_cpumask_empty' was not declared. Should it be static? ../kernel/bpf/cpumask.c:378:18: warning: symbol 'bpf_cpumask_full' was not declared. Should it be static? ../kernel/bpf/cpumask.c:390:18: warning: symbol 'bpf_cpumask_copy' was not declared. Should it be static? ../kernel/bpf/cpumask.c:405:17: warning: symbol 'bpf_cpumask_any_distribute' was not declared. Should it be static? ../kernel/bpf/cpumask.c:423:17: warning: symbol 'bpf_cpumask_any_and_distribute' was not declared. Should it be static? ../kernel/bpf/cpumask.c:438:17: warning: symbol 'bpf_cpumask_weight' was not declared. Should it be static? ../kernel/bpf/cpumask.c:457:17: warning: symbol 'bpf_cpumask_populate' was not declared. Should it be static? ../kernel/bpf/kmem_cache_iter.c:24:17: warning: symbol 'bpf_iter_kmem_cache_new' was not declared. Should it be static? ../kernel/bpf/kmem_cache_iter.c:35:31: warning: symbol 'bpf_iter_kmem_cache_next' was not declared. Should it be static? ../kernel/bpf/kmem_cache_iter.c:80:18: warning: symbol 'bpf_iter_kmem_cache_destroy' was not declared. Should it be static? ../kernel/bpf/rqspinlock.c:102:39: warning: incorrect type in initializer (different address spaces) ../kernel/bpf/rqspinlock.c:102:39: expected void const [noderef] __percpu *__vpp_verify ../kernel/bpf/rqspinlock.c:102:39: got struct rqspinlock_held * ../kernel/bpf/rqspinlock.c:124:39: warning: incorrect type in initializer (different address spaces) ../kernel/bpf/rqspinlock.c:124:39: expected void const [noderef] __percpu *__vpp_verify ../kernel/bpf/rqspinlock.c:124:39: got struct rqspinlock_held * ../kernel/bpf/rqspinlock.c:137:51: warning: incorrect type in initializer (different address spaces) ../kernel/bpf/rqspinlock.c:137:51: expected void const [noderef] __percpu *__vpp_verify ../kernel/bpf/rqspinlock.c:137:51: got struct rqspinlock_held * ../kernel/bpf/rqspinlock.c:669:17: warning: symbol 'bpf_res_spin_lock' was not declared. Should it be static? ../kernel/bpf/rqspinlock.c:685:18: warning: symbol 'bpf_res_spin_unlock' was not declared. Should it be static? ../kernel/bpf/rqspinlock.c:691:17: warning: symbol 'bpf_res_spin_lock_irqsave' was not declared. Should it be static? ../kernel/bpf/rqspinlock.c:709:18: warning: symbol 'bpf_res_spin_unlock_irqrestore' was not declared. Should it be static? ../kernel/bpf/crypto.c:145:35: warning: symbol 'bpf_crypto_ctx_create' was not declared. Should it be static? ../kernel/bpf/crypto.c:242:35: warning: symbol 'bpf_crypto_ctx_acquire' was not declared. Should it be static? ../kernel/bpf/crypto.c:258:18: warning: symbol 'bpf_crypto_ctx_release' was not declared. Should it be static? ../kernel/bpf/crypto.c:313:17: warning: symbol 'bpf_crypto_decrypt' was not declared. Should it be static? ../kernel/bpf/crypto.c:334:17: warning: symbol 'bpf_crypto_encrypt' was not declared. Should it be static? ../kernel/bpf/arena.c:555:18: warning: symbol 'bpf_arena_alloc_pages' was not declared. Should it be static? ../kernel/bpf/arena.c:567:18: warning: symbol 'bpf_arena_free_pages' was not declared. Should it be static? ../kernel/bpf/stackmap.c:490:9: warning: context imbalance in '__bpf_get_stack' - different lock contexts for basic block ../kernel/bpf/bpf_struct_ops.c:582:27: warning: symbol 'bpf_struct_ops_link_lops' was not declared. Should it be static? ../kernel/bpf/btf.c: note: in included file (through ../include/linux/bpf.h, ../include/linux/bpf_verifier.h): ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar make[4]: *** [../scripts/Makefile.build:461: kernel/bpf] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:461: kernel] Error 2 make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:2011: .] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 ../fs/bpf_fs_kfuncs.c:41:25: warning: symbol 'bpf_get_task_exe_file' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:57:18: warning: symbol 'bpf_put_file' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:81:17: warning: symbol 'bpf_path_d_path' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:129:17: warning: symbol 'bpf_get_dentry_xattr' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:162:17: warning: symbol 'bpf_get_file_xattr' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:288:17: warning: symbol 'bpf_set_dentry_xattr' was not declared. Should it be static? ../fs/bpf_fs_kfuncs.c:314:17: warning: symbol 'bpf_remove_dentry_xattr' was not declared. Should it be static? ../kernel/bpf/trampoline.c: In function ‘__bpf_gtrampoline_unlink_prog’: ../kernel/bpf/trampoline.c:715:23: error: ‘struct kfunc_md’ has no member named ‘tramp’ 715 | if (md->tramp) | ^~ ../kernel/bpf/trampoline.c:716:25: error: implicit declaration of function ‘bpf_gtrampoline_remove’; did you mean ‘bpf_gtrampoline_update’? [-Wimplicit-function-declaration] 716 | bpf_gtrampoline_remove(md->tramp, link->link.prog, false); | ^~~~~~~~~~~~~~~~~~~~~~ | bpf_gtrampoline_update ../kernel/bpf/trampoline.c:716:50: error: ‘struct kfunc_md’ has no member named ‘tramp’ 716 | bpf_gtrampoline_remove(md->tramp, link->link.prog, false); | ^~ make[5]: *** [../scripts/Makefile.build:203: kernel/bpf/trampoline.o] Error 1 make[5]: *** Waiting for unfinished jobs.... ../kernel/bpf/helpers.c: In function ‘____bpf_snprintf’: ../kernel/bpf/helpers.c:1067:9: warning: function ‘____bpf_snprintf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 1067 | err = bstr_printf(str, str_size, fmt, data.bin_args); | ^~~ ../kernel/bpf/bpf_struct_ops.c:582:27: warning: symbol 'bpf_struct_ops_link_lops' was not declared. Should it be static? ../kernel/bpf/helpers.c:1197:21: warning: incorrect type in assignment (different address spaces) ../kernel/bpf/helpers.c:1197:21: expected unsigned long long ( *[usertype] callback_fn )( ... ) ../kernel/bpf/helpers.c:1197:21: got void [noderef] __rcu * ../kernel/bpf/helpers.c:1900:29: warning: symbol 'bpf_get_current_task_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1901:29: warning: symbol 'bpf_get_current_task_btf_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1902:29: warning: symbol 'bpf_probe_read_user_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1903:29: warning: symbol 'bpf_probe_read_user_str_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1904:29: warning: symbol 'bpf_probe_read_kernel_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1905:29: warning: symbol 'bpf_probe_read_kernel_str_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1906:29: warning: symbol 'bpf_task_pt_regs_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1907:29: warning: symbol 'bpf_perf_event_read_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1908:29: warning: symbol 'bpf_send_signal_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1909:29: warning: symbol 'bpf_send_signal_thread_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1912:29: warning: symbol 'bpf_get_branch_snapshot_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:2172:18: warning: symbol 'bpf_obj_new_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2186:18: warning: symbol 'bpf_percpu_obj_new_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2217:18: warning: symbol 'bpf_obj_drop_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2225:18: warning: symbol 'bpf_percpu_obj_drop_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2231:18: warning: symbol 'bpf_refcount_acquire_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2276:17: warning: symbol 'bpf_list_push_front_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2286:17: warning: symbol 'bpf_list_push_back_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2319:34: warning: symbol 'bpf_list_pop_front' was not declared. Should it be static? ../kernel/bpf/helpers.c:2324:34: warning: symbol 'bpf_list_pop_back' was not declared. Should it be static? ../kernel/bpf/helpers.c:2329:34: warning: symbol 'bpf_list_front' was not declared. Should it be static? ../kernel/bpf/helpers.c:2339:34: warning: symbol 'bpf_list_back' was not declared. Should it be static? ../kernel/bpf/helpers.c:2349:32: warning: symbol 'bpf_rbtree_remove' was not declared. Should it be static? ../kernel/bpf/helpers.c:2405:17: warning: symbol 'bpf_rbtree_add_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2415:32: warning: symbol 'bpf_rbtree_first' was not declared. Should it be static? ../kernel/bpf/helpers.c:2422:32: warning: symbol 'bpf_rbtree_root' was not declared. Should it be static? ../kernel/bpf/helpers.c:2429:32: warning: symbol 'bpf_rbtree_left' was not declared. Should it be static? ../kernel/bpf/helpers.c:2439:32: warning: symbol 'bpf_rbtree_right' was not declared. Should it be static? ../kernel/bpf/helpers.c:2455:32: warning: symbol 'bpf_task_acquire' was not declared. Should it be static? ../kernel/bpf/helpers.c:2466:18: warning: symbol 'bpf_task_release' was not declared. Should it be static? ../kernel/bpf/helpers.c:2471:18: warning: symbol 'bpf_task_release_dtor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2484:27: warning: symbol 'bpf_cgroup_acquire' was not declared. Should it be static? ../kernel/bpf/helpers.c:2496:18: warning: symbol 'bpf_cgroup_release' was not declared. Should it be static? ../kernel/bpf/helpers.c:2501:18: warning: symbol 'bpf_cgroup_release_dtor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2514:27: warning: symbol 'bpf_cgroup_ancestor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2534:27: warning: symbol 'bpf_cgroup_from_id' was not declared. Should it be static? ../kernel/bpf/helpers.c:2554:18: warning: symbol 'bpf_task_under_cgroup' was not declared. Should it be static? ../kernel/bpf/helpers.c:2597:27: warning: symbol 'bpf_task_get_cgroup1' was not declared. Should it be static? ../kernel/bpf/helpers.c:2614:32: warning: symbol 'bpf_task_from_pid' was not declared. Should it be static? ../kernel/bpf/helpers.c:2633:32: warning: symbol 'bpf_task_from_vpid' was not declared. Should it be static? ../kernel/bpf/helpers.c:2674:18: warning: symbol 'bpf_dynptr_slice' was not declared. Should it be static? ../kernel/bpf/helpers.c:2792:17: warning: symbol 'bpf_dynptr_adjust' was not declared. Should it be static? ../kernel/bpf/helpers.c:2811:18: warning: symbol 'bpf_dynptr_is_null' was not declared. Should it be static? ../kernel/bpf/helpers.c:2818:18: warning: symbol 'bpf_dynptr_is_rdonly' was not declared. Should it be static? ../kernel/bpf/helpers.c:2828:19: warning: symbol 'bpf_dynptr_size' was not declared. Should it be static? ../kernel/bpf/helpers.c:2838:17: warning: symbol 'bpf_dynptr_clone' was not declared. Should it be static? ../kernel/bpf/helpers.c:2865:17: warning: symbol 'bpf_dynptr_copy' was not declared. Should it be static? ../kernel/bpf/helpers.c:2909:18: warning: symbol 'bpf_cast_to_kern_ctx' was not declared. Should it be static? ../kernel/bpf/helpers.c:2914:18: warning: symbol 'bpf_rdonly_cast' was not declared. Should it be static? ../kernel/bpf/helpers.c:2919:18: warning: symbol 'bpf_rcu_read_lock' was not declared. Should it be static? ../kernel/bpf/helpers.c:2924:18: warning: symbol 'bpf_rcu_read_unlock' was not declared. Should it be static? ../kernel/bpf/helpers.c:2953:18: warning: symbol 'bpf_throw' was not declared. Should it be static? ../kernel/bpf/helpers.c:2972:17: warning: symbol 'bpf_wq_init' was not declared. Should it be static? ../kernel/bpf/helpers.c:2986:17: warning: symbol 'bpf_wq_start' was not declared. Should it be static? ../kernel/bpf/helpers.c:3003:17: warning: symbol 'bpf_wq_set_callback_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:3017:18: warning: symbol 'bpf_preempt_disable' was not declared. Should it be static? ../kernel/bpf/helpers.c:3022:18: warning: symbol 'bpf_preempt_enable' was not declared. Should it be static? ../kernel/bpf/helpers.c:3081:1: warning: symbol 'bpf_iter_bits_new' was not declared. Should it be static? ../kernel/bpf/helpers.c:3142:17: warning: symbol 'bpf_iter_bits_next' was not declared. Should it be static? ../kernel/bpf/helpers.c:3168:18: warning: symbol 'bpf_iter_bits_destroy' was not declared. Should it be static? ../kernel/bpf/helpers.c:3192:17: warning: symbol 'bpf_copy_from_user_str' was not declared. Should it be static? ../kernel/bpf/helpers.c:3237:17: warning: symbol 'bpf_copy_from_user_task_str' was not declared. Should it be static? ../kernel/bpf/helpers.c:3267:18: warning: symbol 'bpf_local_irq_save' was not declared. Should it be static? ../kernel/bpf/helpers.c:3272:18: warning: symbol 'bpf_local_irq_restore' was not declared. Should it be static? ../kernel/bpf/helpers.c:3277:18: warning: symbol '__bpf_trap' was not declared. Should it be static? ../kernel/bpf/helpers.c:2919:18: warning: context imbalance in 'bpf_rcu_read_lock' - wrong count at exit ../kernel/bpf/helpers.c: note: in included file (through ../include/linux/workqueue.h, ../include/linux/bpf.h): ../include/linux/rcupdate.h:871:25: warning: context imbalance in 'bpf_rcu_read_unlock' - unexpected unlock ../kernel/bpf/core.c:243:49: error: arithmetics on pointers to functions ../kernel/bpf/core.c:2966:29: warning: symbol 'bpf_seq_printf_btf_proto' was not declared. Should it be static? ../kernel/bpf/core.c: note: in included file (through ../include/trace/trace_events.h, ../include/trace/define_trace.h, ../include/trace/events/xdp.h, ../include/linux/bpf_trace.h): ../include/trace/events/xdp.h:321:1: warning: Using plain integer as NULL pointer ../include/trace/events/xdp.h:348:1: warning: Using plain integer as NULL pointer ../include/trace/events/xdp.h:382:1: warning: Using plain integer as NULL pointer ../kernel/bpf/core.c: note: in included file (through ../include/linux/rbtree_latch.h, ../include/linux/bpf.h, ../include/linux/filter.h): ../include/linux/rbtree.h:74:9: error: incompatible types in comparison expression (different address spaces): ../include/linux/rbtree.h:74:9: struct rb_node [noderef] __rcu * ../include/linux/rbtree.h:74:9: struct rb_node * ../include/linux/rbtree.h:74:9: error: incompatible types in comparison expression (different address spaces): ../include/linux/rbtree.h:74:9: struct rb_node [noderef] __rcu * ../include/linux/rbtree.h:74:9: struct rb_node * ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_printk’: ../kernel/trace/bpf_trace.c:378:9: warning: function ‘____bpf_trace_printk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 378 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_vprintk’: ../kernel/trace/bpf_trace.c:434:9: warning: function ‘____bpf_trace_vprintk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 434 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_seq_printf’: ../kernel/trace/bpf_trace.c:476:9: warning: function ‘____bpf_seq_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 476 | seq_bprintf(m, fmt, data.bin_args); | ^~~~~~~~~~~ ../kernel/trace/bpf_trace.c:190:29: warning: symbol 'bpf_probe_read_user_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:227:29: warning: symbol 'bpf_probe_read_user_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:242:29: warning: symbol 'bpf_probe_read_kernel_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:277:29: warning: symbol 'bpf_probe_read_kernel_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:575:29: warning: symbol 'bpf_perf_event_read_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:761:29: warning: symbol 'bpf_get_current_task_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:772:29: warning: symbol 'bpf_get_current_task_btf_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:787:29: warning: symbol 'bpf_task_pt_regs_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:835:41: warning: incorrect type in assignment (different address spaces) ../kernel/trace/bpf_trace.c:835:41: expected void [noderef] __user *[addressable] [assigned] [usertype] sival_ptr ../kernel/trace/bpf_trace.c:835:41: got void * ../kernel/trace/bpf_trace.c:885:29: warning: symbol 'bpf_send_signal_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:897:29: warning: symbol 'bpf_send_signal_thread_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1188:29: warning: symbol 'bpf_get_branch_snapshot_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1273:28: warning: symbol 'bpf_lookup_user_key' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1322:28: warning: symbol 'bpf_lookup_system_key' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1346:18: warning: symbol 'bpf_key_put' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1366:17: warning: symbol 'bpf_verify_pkcs7_signature' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3390:18: warning: symbol 'bpf_session_is_return' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3398:19: warning: symbol 'bpf_session_cookie' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3579:17: warning: symbol 'bpf_send_signal_task' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3591:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3588:17: warning: symbol 'bpf_probe_read_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3595:17: warning: symbol 'bpf_probe_read_kernel_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3605:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3602:17: warning: symbol 'bpf_probe_read_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3609:17: warning: symbol 'bpf_probe_read_kernel_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3619:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3616:17: warning: symbol 'bpf_copy_from_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3626:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3623:17: warning: symbol 'bpf_copy_from_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3634:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3630:17: warning: symbol 'bpf_copy_from_user_task_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3642:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3638:17: warning: symbol 'bpf_copy_from_user_task_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:2514:21: warning: dereference of noderef expression ../kernel/trace/bpf_trace.c:2518:66: warning: dereference of noderef expression ../kernel/trace/bpf_trace.c: note: in included file (through ../include/linux/rbtree.h, ../include/linux/mm_types.h, ../include/linux/mmzone.h, ../include/linux/gfp.h, ../include/linux/slab.h): ../include/linux/rcupdate.h:871:25: warning: context imbalance in 'uprobe_prog_run' - unexpected unlock ../kernel/bpf/btf.c: note: in included file (through ../include/linux/bpf.h, ../include/linux/bpf_verifier.h): ../include/linux/bpfptr.h:65:40: warning: cast to non-scalar ../include/linux/bpfptr.h:65:40: warning: cast from non-scalar ../net/core/filter.c:1431:39: warning: incorrect type in argument 1 (different address spaces) ../net/core/filter.c:1431:39: expected struct sock_filter const *filter ../net/core/filter.c:1431:39: got struct sock_filter [noderef] __user *filter ../net/core/filter.c:1509:39: warning: incorrect type in argument 1 (different address spaces) ../net/core/filter.c:1509:39: expected struct sock_filter const *filter ../net/core/filter.c:1509:39: got struct sock_filter [noderef] __user *filter ../net/core/filter.c:2331:45: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:2331:45: expected restricted __be32 [usertype] daddr ../net/core/filter.c:2331:45: got unsigned int [usertype] ipv4_nh ../net/core/filter.c:3931:29: warning: symbol 'bpf_xdp_get_buff_len_trace_proto' was not declared. Should it be static? ../net/core/filter.c:4663:29: warning: symbol 'bpf_skb_output_proto' was not declared. Should it be static? ../net/core/filter.c:5077:29: warning: symbol 'bpf_xdp_output_proto' was not declared. Should it be static? ../net/core/filter.c:8014:29: warning: symbol 'bpf_sk_storage_get_cg_sock_proto' was not declared. Should it be static? ../net/core/filter.c:11973:17: warning: symbol 'bpf_dynptr_from_skb' was not declared. Should it be static? ../net/core/filter.c:11989:17: warning: symbol 'bpf_dynptr_from_xdp' was not declared. Should it be static? ../net/core/filter.c:12005:17: warning: symbol 'bpf_sock_addr_set_sun_path' was not declared. Should it be static? ../net/core/filter.c:12026:17: warning: symbol 'bpf_sk_assign_tcp_reqsk' was not declared. Should it be static? ../net/core/filter.c:12123:17: warning: symbol 'bpf_sock_ops_enable_tx_tstamp' was not declared. Should it be static? ../net/core/filter.c:12245:17: warning: symbol 'bpf_sock_destroy' was not declared. Should it be static? ../net/core/filter.c:1939:43: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:1939:43: expected restricted __wsum [usertype] diff ../net/core/filter.c:1939:43: got unsigned long long [usertype] to ../net/core/filter.c:1942:36: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:1942:36: expected restricted __be16 [usertype] old ../net/core/filter.c:1942:36: got unsigned long long [usertype] from ../net/core/filter.c:1942:42: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1942:42: expected restricted __be16 [usertype] new ../net/core/filter.c:1942:42: got unsigned long long [usertype] to ../net/core/filter.c:1945:36: warning: incorrect type in argument 2 (different base types) ../net/core/filter.c:1945:36: expected restricted __be32 [usertype] from ../net/core/filter.c:1945:36: got unsigned long long [usertype] from ../net/core/filter.c:1945:42: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1945:42: expected restricted __be32 [usertype] to ../net/core/filter.c:1945:42: got unsigned long long [usertype] to ../net/core/filter.c:1990:59: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1990:59: expected restricted __wsum [usertype] diff ../net/core/filter.c:1990:59: got unsigned long long [usertype] to ../net/core/filter.c:1993:52: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1993:52: expected restricted __be16 [usertype] from ../net/core/filter.c:1993:52: got unsigned long long [usertype] from ../net/core/filter.c:1993:58: warning: incorrect type in argument 4 (different base types) ../net/core/filter.c:1993:58: expected restricted __be16 [usertype] to ../net/core/filter.c:1993:58: got unsigned long long [usertype] to ../net/core/filter.c:1996:52: warning: incorrect type in argument 3 (different base types) ../net/core/filter.c:1996:52: expected restricted __be32 [usertype] from ../net/core/filter.c:1996:52: got unsigned long long [usertype] from ../net/core/filter.c:1996:58: warning: incorrect type in argument 4 (different base types) ../net/core/filter.c:1996:58: expected restricted __be32 [usertype] to ../net/core/filter.c:1996:58: got unsigned long long [usertype] to ../net/core/filter.c:2063:35: warning: incorrect type in return expression (different base types) ../net/core/filter.c:2063:35: expected unsigned long long ../net/core/filter.c:2063:35: got restricted __wsum [usertype] csum ../net/core/filter.c:5934:17: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5934:17: expected unsigned int [usertype] spi ../net/core/filter.c:5934:17: got restricted __be32 const [usertype] spi ../net/core/filter.c:5942:33: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5942:33: expected unsigned int [usertype] remote_ipv4 ../net/core/filter.c:5942:33: got restricted __be32 const [usertype] a4 ../kernel/bpf/verifier.c:349:12: warning: symbol 'btf_vmlinux' was not declared. Should it be static? ../kernel/bpf/verifier.c:22407: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[4]: *** [../scripts/Makefile.build:461: kernel/bpf] Error 2 make[3]: *** [../scripts/Makefile.build:461: kernel] Error 2 make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:2011: .] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2