aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2019-05-17 00:34:11 -0400
committerDaniel Borkmann <daniel@iogearbox.net>2019-05-17 07:19:30 -0400
commit7ed4b4e60bb1dd3df7a45dfbde3a96efce9df7eb (patch)
tree30dba55d189538db6d6e98a4868463d9e5d8d76b
parentd72386fe7a8472f859333b078fd8bb9d254d51f2 (diff)
selftests/bpf: fix bpf_get_current_task
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>
-rw-r--r--tools/testing/selftests/bpf/bpf_helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/bpf_helpers.h b/tools/testing/selftests/bpf/bpf_helpers.h
index 6e80b66d7fb1..5f6f9e7aba2a 100644
--- a/tools/testing/selftests/bpf/bpf_helpers.h
+++ b/tools/testing/selftests/bpf/bpf_helpers.h
@@ -278,7 +278,7 @@ static int (*bpf_skb_change_type)(void *ctx, __u32 type) =
278 (void *) BPF_FUNC_skb_change_type; 278 (void *) BPF_FUNC_skb_change_type;
279static unsigned int (*bpf_get_hash_recalc)(void *ctx) = 279static unsigned int (*bpf_get_hash_recalc)(void *ctx) =
280 (void *) BPF_FUNC_get_hash_recalc; 280 (void *) BPF_FUNC_get_hash_recalc;
281static unsigned long long (*bpf_get_current_task)(void *ctx) = 281static unsigned long long (*bpf_get_current_task)(void) =
282 (void *) BPF_FUNC_get_current_task; 282 (void *) BPF_FUNC_get_current_task;
283static int (*bpf_skb_change_tail)(void *ctx, __u32 len, __u64 flags) = 283static int (*bpf_skb_change_tail)(void *ctx, __u32 len, __u64 flags) =
284 (void *) BPF_FUNC_skb_change_tail; 284 (void *) BPF_FUNC_skb_change_tail;