Skip to contentSkip to conversation

selftests/bpf: fix inet_csk_accept prototype in test_sk_storage_tracing.c

PATCH Applied Andrii Nakryiko 2 participants 2 messages May 28, 2024 – May 29, 2024

Subsystems (3)
lore
Share & tools
lore

Andrii Nakryiko

author maintainer
#0 lore raw

PATCH 1/1 selftests/bpf: fix inet_csk_accept prototype in test_sk_storage_tracing.c

Recent kernel change ([0]) changed inet_csk_accept() prototype. Adapt progs/test_sk_storage_tracing.c to take that into account.

[0] 92ef0fd55ac8 ("net: change proto and proto_ops accept type")

---
 tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c +1 -1
index 02e718f06e0f..40531e56776e 100644
@@ -84,7 +84,7 @@ int BPF_PROG(trace_tcp_connect, struct sock *sk)
 }
 
 SEC("fexit/inet_csk_accept")
-int BPF_PROG(inet_csk_accept, struct sock *sk, int flags, int *err, bool kern,
+int BPF_PROG(inet_csk_accept, struct sock *sk, struct proto_accept_arg *arg,
 	     struct sock *accepted_sk)
 {
 	set_task_info(accepted_sk);
Signature · 1 line
2.43.0
#1 lore raw
This patch was applied to bpf/bpf.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <[email protected]>:

Quoted 8 lines · On Tue, 28 May 2024 15:32:18 -0700 you wrote:

Recent kernel change ([0]) changed inet_csk_accept() prototype. Adapt progs/test_sk_storage_tracing.c to take that into account.

[0] 92ef0fd55ac8 ("net: change proto and proto_ops accept type")

[...]

Here is the summary with links:
- [bpf-next] selftests/bpf: fix inet_csk_accept prototype in test_sk_storage_tracing.c

    https://git.kernel.org/bpf/bpf/c/9dfdb706e164

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html