selftests/bpf: fix bpf_get_current_task
Subsystems (5)
Alexei Starovoitov
maintainerPATCH 1/1 selftests/bpf: fix bpf_get_current_task
Fix bpf_get_current_task() declaration.
Signed-off-by Alexei Starovoitov <[email protected]>
--- tools/testing/selftests/bpf/bpf_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/bpf_helpers.h +1 -1
@@ -278,7 +278,7 @@ static int (*bpf_skb_change_type)(void *ctx, __u32 type) = (void *) BPF_FUNC_skb_change_type;static unsigned int (*bpf_get_hash_recalc)(void *ctx) = (void *) BPF_FUNC_get_hash_recalc; -static unsigned long long (*bpf_get_current_task)(void *ctx) = +static unsigned long long (*bpf_get_current_task)(void ) = (void *) BPF_FUNC_get_current_task;static int (*bpf_skb_change_tail)(void *ctx,__u32 len,__u64 flags) = (void *) BPF_FUNC_skb_change_tail;
Signature · 1 line
2.20.0
Quoted 4 lines · Alexei Starovoitov
Fix
bpf_get_current_task()declaration.Signed-off-by Alexei Starovoitov <[email protected]>
Acked-by Andrii Nakryiko <[email protected]>
Quoted 20 lines
--- tools/testing/selftests/bpf/bpf_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/bpf/bpf_helpers.h +1
-2@@ -278,7 +278,7 @@ static int (*bpf_skb_change_type)(void *ctx, __u32 type) = (void *) BPF_FUNC_skb_change_type;static unsigned int (*bpf_get_hash_recalc)(void *ctx) = (void *) BPF_FUNC_get_hash_recalc; -static unsigned long long (*bpf_get_current_task)(void *ctx) = +static unsigned long long (*bpf_get_current_task)(void ) = (void *) BPF_FUNC_get_current_task;static int (*bpf_skb_change_tail)(void *ctx,__u32 len,__u64 flags) = (void *) BPF_FUNC_skb_change_tail; --2.20.0
Quoted 3 lines · Alexei Starovoitov
Fix
bpf_get_current_task()declaration.Signed-off-by Alexei Starovoitov <[email protected]>
Applied, thanks!