]>
Commit | Line | Data |
---|---|---|
fb43722c SL |
1 | From 4c96d4b936cfe8f5d89f883794c8fc204b4fce45 Mon Sep 17 00:00:00 2001 |
2 | From: Alexei Starovoitov <ast@kernel.org> | |
3 | Date: Thu, 16 May 2019 21:34:11 -0700 | |
4 | Subject: selftests/bpf: fix bpf_get_current_task | |
5 | ||
6 | [ Upstream commit 7ed4b4e60bb1dd3df7a45dfbde3a96efce9df7eb ] | |
7 | ||
8 | Fix bpf_get_current_task() declaration. | |
9 | ||
10 | Signed-off-by: Alexei Starovoitov <ast@kernel.org> | |
11 | Acked-by: Andrii Nakryiko <andriin@fb.com> | |
12 | Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> | |
13 | Signed-off-by: Sasha Levin <sashal@kernel.org> | |
14 | --- | |
15 | tools/testing/selftests/bpf/bpf_helpers.h | 2 +- | |
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
17 | ||
18 | diff --git a/tools/testing/selftests/bpf/bpf_helpers.h b/tools/testing/selftests/bpf/bpf_helpers.h | |
19 | index c81fc350f7ad..a43a52cdd3f0 100644 | |
20 | --- a/tools/testing/selftests/bpf/bpf_helpers.h | |
21 | +++ b/tools/testing/selftests/bpf/bpf_helpers.h | |
22 | @@ -246,7 +246,7 @@ static int (*bpf_skb_change_type)(void *ctx, __u32 type) = | |
23 | (void *) BPF_FUNC_skb_change_type; | |
24 | static unsigned int (*bpf_get_hash_recalc)(void *ctx) = | |
25 | (void *) BPF_FUNC_get_hash_recalc; | |
26 | -static unsigned long long (*bpf_get_current_task)(void *ctx) = | |
27 | +static unsigned long long (*bpf_get_current_task)(void) = | |
28 | (void *) BPF_FUNC_get_current_task; | |
29 | static int (*bpf_skb_change_tail)(void *ctx, __u32 len, __u64 flags) = | |
30 | (void *) BPF_FUNC_skb_change_tail; | |
31 | -- | |
32 | 2.20.1 | |
33 |