========== build_clang - FAILED tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/run_tags_test.sh: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/config: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/settings: warning: ignored by one of the .gitignore files ../net/core/drop_monitor.c:1162:32: error: incompatible function pointer types passing 'void (*const)(void *, struct sk_buff *, void *, enum skb_drop_reason)' to parameter of type 'void (*)(void *, struct sk_buff *, void *, enum skb_drop_reason, struct sock *)' [-Wincompatible-function-pointer-types] 1162 | rc = register_trace_kfree_skb(ops->kfree_skb_probe, NULL); | ^~~~~~~~~~~~~~~~~~~~ ../include/trace/events/skb.h:24:1: note: passing argument to parameter 'probe' here 24 | TRACE_EVENT(kfree_skb, | ^ ../include/linux/tracepoint.h:568:2: note: expanded from macro 'TRACE_EVENT' 568 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^ ../include/linux/tracepoint.h:434:2: note: expanded from macro 'DECLARE_TRACE' 434 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ | ^ ../include/linux/tracepoint.h:270:31: note: expanded from macro '__DECLARE_TRACE' 270 | register_trace_##name(void (*probe)(data_proto), void *data) \ | ^ ../net/core/drop_monitor.c:1177:29: error: incompatible function pointer types passing 'void (*const)(void *, struct sk_buff *, void *, enum skb_drop_reason)' to parameter of type 'void (*)(void *, struct sk_buff *, void *, enum skb_drop_reason, struct sock *)' [-Wincompatible-function-pointer-types] 1177 | unregister_trace_kfree_skb(ops->kfree_skb_probe, NULL); | ^~~~~~~~~~~~~~~~~~~~ ../include/trace/events/skb.h:24:1: note: passing argument to parameter 'probe' here 24 | TRACE_EVENT(kfree_skb, | ^ ../include/linux/tracepoint.h:568:2: note: expanded from macro 'TRACE_EVENT' 568 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^ ../include/linux/tracepoint.h:434:2: note: expanded from macro 'DECLARE_TRACE' 434 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ | ^ ../include/linux/tracepoint.h:283:33: note: expanded from macro '__DECLARE_TRACE' 283 | unregister_trace_##name(void (*probe)(data_proto), void *data) \ | ^ ../net/core/drop_monitor.c:1200:29: error: incompatible function pointer types passing 'void (*const)(void *, struct sk_buff *, void *, enum skb_drop_reason)' to parameter of type 'void (*)(void *, struct sk_buff *, void *, enum skb_drop_reason, struct sock *)' [-Wincompatible-function-pointer-types] 1200 | unregister_trace_kfree_skb(ops->kfree_skb_probe, NULL); | ^~~~~~~~~~~~~~~~~~~~ ../include/trace/events/skb.h:24:1: note: passing argument to parameter 'probe' here 24 | TRACE_EVENT(kfree_skb, | ^ ../include/linux/tracepoint.h:568:2: note: expanded from macro 'TRACE_EVENT' 568 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^ ../include/linux/tracepoint.h:434:2: note: expanded from macro 'DECLARE_TRACE' 434 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ | ^ ../include/linux/tracepoint.h:283:33: note: expanded from macro '__DECLARE_TRACE' 283 | unregister_trace_##name(void (*probe)(data_proto), void *data) \ | ^ 3 errors generated. make[5]: *** [../scripts/Makefile.build:244: net/core/drop_monitor.o] Error 1 make[4]: *** [../scripts/Makefile.build:485: net/core] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:485: net] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1934: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:240: __sub-make] Error 2 make: *** [Makefile:240: __sub-make] Error 2 tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/run_tags_test.sh: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/config: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/settings: warning: ignored by one of the .gitignore files ../net/core/drop_monitor.c:1162:32: error: incompatible function pointer types passing 'void (*const)(void *, struct sk_buff *, void *, enum skb_drop_reason)' to parameter of type 'void (*)(void *, struct sk_buff *, void *, enum skb_drop_reason, struct sock *)' [-Wincompatible-function-pointer-types] 1162 | rc = register_trace_kfree_skb(ops->kfree_skb_probe, NULL); | ^~~~~~~~~~~~~~~~~~~~ ../include/trace/events/skb.h:24:1: note: passing argument to parameter 'probe' here 24 | TRACE_EVENT(kfree_skb, | ^ ../include/linux/tracepoint.h:568:2: note: expanded from macro 'TRACE_EVENT' 568 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^ ../include/linux/tracepoint.h:434:2: note: expanded from macro 'DECLARE_TRACE' 434 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ | ^ ../include/linux/tracepoint.h:270:31: note: expanded from macro '__DECLARE_TRACE' 270 | register_trace_##name(void (*probe)(data_proto), void *data) \ | ^ ../net/core/drop_monitor.c:1177:29: error: incompatible function pointer types passing 'void (*const)(void *, struct sk_buff *, void *, enum skb_drop_reason)' to parameter of type 'void (*)(void *, struct sk_buff *, void *, enum skb_drop_reason, struct sock *)' [-Wincompatible-function-pointer-types] 1177 | unregister_trace_kfree_skb(ops->kfree_skb_probe, NULL); | ^~~~~~~~~~~~~~~~~~~~ ../include/trace/events/skb.h:24:1: note: passing argument to parameter 'probe' here 24 | TRACE_EVENT(kfree_skb, | ^ ../include/linux/tracepoint.h:568:2: note: expanded from macro 'TRACE_EVENT' 568 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^ ../include/linux/tracepoint.h:434:2: note: expanded from macro 'DECLARE_TRACE' 434 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ | ^ ../include/linux/tracepoint.h:283:33: note: expanded from macro '__DECLARE_TRACE' 283 | unregister_trace_##name(void (*probe)(data_proto), void *data) \ | ^ ../net/core/drop_monitor.c:1200:29: error: incompatible function pointer types passing 'void (*const)(void *, struct sk_buff *, void *, enum skb_drop_reason)' to parameter of type 'void (*)(void *, struct sk_buff *, void *, enum skb_drop_reason, struct sock *)' [-Wincompatible-function-pointer-types] 1200 | unregister_trace_kfree_skb(ops->kfree_skb_probe, NULL); | ^~~~~~~~~~~~~~~~~~~~ ../include/trace/events/skb.h:24:1: note: passing argument to parameter 'probe' here 24 | TRACE_EVENT(kfree_skb, | ^ ../include/linux/tracepoint.h:568:2: note: expanded from macro 'TRACE_EVENT' 568 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^ ../include/linux/tracepoint.h:434:2: note: expanded from macro 'DECLARE_TRACE' 434 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ | ^ ../include/linux/tracepoint.h:283:33: note: expanded from macro '__DECLARE_TRACE' 283 | unregister_trace_##name(void (*probe)(data_proto), void *data) \ | ^ 3 errors generated. make[5]: *** [../scripts/Makefile.build:244: net/core/drop_monitor.o] Error 1 make[4]: *** [../scripts/Makefile.build:485: net/core] Error 2 make[4]: *** Waiting for unfinished jobs.... ../net/packet/af_packet.c:2131:6: warning: variable 'sk' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 2131 | if (skb->pkt_type == PACKET_LOOPBACK) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../net/packet/af_packet.c:2229:21: note: uninitialized use occurs here 2229 | sk_skb_reason_drop(sk, skb, drop_reason); | ^~ ../net/packet/af_packet.c:2131:2: note: remove the 'if' if its condition is always false 2131 | if (skb->pkt_type == PACKET_LOOPBACK) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2132 | goto drop; | ~~~~~~~~~ ../net/packet/af_packet.c:2124:17: note: initialize the variable 'sk' to silence this warning 2124 | struct sock *sk; | ^ | = NULL ../net/packet/af_packet.c:2260:6: warning: variable 'sk' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 2260 | if (skb->pkt_type == PACKET_LOOPBACK) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../net/packet/af_packet.c:2497:21: note: uninitialized use occurs here 2497 | sk_skb_reason_drop(sk, skb, drop_reason); | ^~ ../net/packet/af_packet.c:2260:2: note: remove the 'if' if its condition is always false 2260 | if (skb->pkt_type == PACKET_LOOPBACK) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2261 | goto drop; | ~~~~~~~~~ ../net/packet/af_packet.c:2237:17: note: initialize the variable 'sk' to silence this warning 2237 | struct sock *sk; | ^ | = NULL 2 warnings generated. make[3]: *** [../scripts/Makefile.build:485: net] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1934: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:240: __sub-make] Error 2 make: *** [Makefile:240: __sub-make] Error 2 New errors added --- /tmp/tmp.cZZ3kHxwUO 2024-05-31 20:48:20.952706756 -0700 +++ /tmp/tmp.xz3KT5OFPO 2024-05-31 20:48:35.657007398 -0700 @@ -57,0 +58,31 @@ +../net/packet/af_packet.c:2131:6: warning: variable 'sk' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 2131 | if (skb->pkt_type == PACKET_LOOPBACK) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../net/packet/af_packet.c:2229:21: note: uninitialized use occurs here + 2229 | sk_skb_reason_drop(sk, skb, drop_reason); + | ^~ +../net/packet/af_packet.c:2131:2: note: remove the 'if' if its condition is always false + 2131 | if (skb->pkt_type == PACKET_LOOPBACK) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 2132 | goto drop; + | ~~~~~~~~~ +../net/packet/af_packet.c:2124:17: note: initialize the variable 'sk' to silence this warning + 2124 | struct sock *sk; + | ^ + | = NULL +../net/packet/af_packet.c:2260:6: warning: variable 'sk' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 2260 | if (skb->pkt_type == PACKET_LOOPBACK) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../net/packet/af_packet.c:2497:21: note: uninitialized use occurs here + 2497 | sk_skb_reason_drop(sk, skb, drop_reason); + | ^~ +../net/packet/af_packet.c:2260:2: note: remove the 'if' if its condition is always false + 2260 | if (skb->pkt_type == PACKET_LOOPBACK) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 2261 | goto drop; + | ~~~~~~~~~ +../net/packet/af_packet.c:2237:17: note: initialize the variable 'sk' to silence this warning + 2237 | struct sock *sk; + | ^ + | = NULL +2 warnings generated. Per-file breakdown --- /tmp/tmp.OJTO4RYWF2 2024-05-31 20:48:35.665007561 -0700 +++ /tmp/tmp.cESNevijvC 2024-05-31 20:48:35.667007602 -0700 @@ -1,0 +2 @@ + 4 ../net/packet/af_packet.c