selftests/bpf: fix bpf_get_current_task
authorAlexei Starovoitov <ast@kernel.org>
Fri, 17 May 2019 04:34:11 +0000 (21:34 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 17 May 2019 11:19:30 +0000 (13:19 +0200)
Fix bpf_get_current_task() declaration.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/bpf_helpers.h

index 6e80b66d7fb1d7a715782bdbffe74fbea005d0a6..5f6f9e7aba2abfddd591027693324de04e7fdadc 100644 (file)
@@ -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;