../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:3923:29: warning: symbol 'bpf_xdp_get_buff_len_trace_proto' was not declared. Should it be static? ../net/core/filter.c:4655:29: warning: symbol 'bpf_skb_output_proto' was not declared. Should it be static? ../net/core/filter.c:5069:29: warning: symbol 'bpf_xdp_output_proto' was not declared. Should it be static? ../net/core/filter.c:7944:29: warning: symbol 'bpf_sk_storage_get_cg_sock_proto' was not declared. Should it be static? ../net/core/filter.c:11915:17: warning: symbol 'bpf_dynptr_from_skb' was not declared. Should it be static? ../net/core/filter.c:11931:17: warning: symbol 'bpf_dynptr_from_xdp' was not declared. Should it be static? ../net/core/filter.c:11947:17: warning: symbol 'bpf_sock_addr_set_sun_path' was not declared. Should it be static? ../net/core/filter.c:11968:17: warning: symbol 'bpf_sk_assign_tcp_reqsk' was not declared. Should it be static? ../net/core/filter.c:12158: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:5867:17: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5867:17: expected unsigned int [usertype] spi ../net/core/filter.c:5867:17: got restricted __be32 const [usertype] spi ../net/core/filter.c:5875:33: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5875:33: expected unsigned int [usertype] remote_ipv4 ../net/core/filter.c:5875:33: got restricted __be32 const [usertype] a4 ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? ../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:3923:29: warning: symbol 'bpf_xdp_get_buff_len_trace_proto' was not declared. Should it be static? ../net/core/filter.c:4655:29: warning: symbol 'bpf_skb_output_proto' was not declared. Should it be static? ../net/core/filter.c:5069:29: warning: symbol 'bpf_xdp_output_proto' was not declared. Should it be static? ../net/core/filter.c:7944:29: warning: symbol 'bpf_sk_storage_get_cg_sock_proto' was not declared. Should it be static? ../net/core/filter.c:11915:17: warning: symbol 'bpf_dynptr_from_skb' was not declared. Should it be static? ../net/core/filter.c:11931:17: warning: symbol 'bpf_dynptr_from_xdp' was not declared. Should it be static? ../net/core/filter.c:11947:17: warning: symbol 'bpf_sock_addr_set_sun_path' was not declared. Should it be static? ../net/core/filter.c:11968:17: warning: symbol 'bpf_sk_assign_tcp_reqsk' was not declared. Should it be static? ../net/core/filter.c:12076:28: warning: symbol 'bpf_skb_acquire' was not declared. Should it be static? ../net/core/filter.c:12086:18: warning: symbol 'bpf_skb_release' was not declared. Should it be static? ../net/core/filter.c:12095:18: warning: symbol 'bpf_skb_destroy' was not declared. Should it be static? ../net/core/filter.c:12220: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:5867:17: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5867:17: expected unsigned int [usertype] spi ../net/core/filter.c:5867:17: got restricted __be32 const [usertype] spi ../net/core/filter.c:5875:33: warning: incorrect type in assignment (different base types) ../net/core/filter.c:5875:33: expected unsigned int [usertype] remote_ipv4 ../net/core/filter.c:5875:33: got restricted __be32 const [usertype] a4 ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? New errors added --- /tmp/tmp.Ja9W3LYFTV 2025-02-20 15:14:52.283244622 -0800 +++ /tmp/tmp.J7GzmCzvjr 2025-02-20 15:17:13.358711666 -0800 @@ -18 +18,4 @@ -../net/core/filter.c:12158:17: warning: symbol 'bpf_sock_destroy' was not declared. Should it be static? +../net/core/filter.c:12076:28: warning: symbol 'bpf_skb_acquire' was not declared. Should it be static? +../net/core/filter.c:12086:18: warning: symbol 'bpf_skb_release' was not declared. Should it be static? +../net/core/filter.c:12095:18: warning: symbol 'bpf_skb_destroy' was not declared. Should it be static? +../net/core/filter.c:12220:17: warning: symbol 'bpf_sock_destroy' was not declared. Should it be static? Per-file breakdown --- /tmp/tmp.u0B48tvqGo 2025-02-20 15:17:13.366711579 -0800 +++ /tmp/tmp.Pp3Z6WILM2 2025-02-20 15:17:13.369711546 -0800 @@ -1 +1 @@ - 25 ../net/core/filter.c + 28 ../net/core/filter.c