]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-5.1/selftests-bpf-fix-bpf_get_current_task.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / queue-5.1 / selftests-bpf-fix-bpf_get_current_task.patch
CommitLineData
fb43722c
SL
1From 4c96d4b936cfe8f5d89f883794c8fc204b4fce45 Mon Sep 17 00:00:00 2001
2From: Alexei Starovoitov <ast@kernel.org>
3Date: Thu, 16 May 2019 21:34:11 -0700
4Subject: selftests/bpf: fix bpf_get_current_task
5
6[ Upstream commit 7ed4b4e60bb1dd3df7a45dfbde3a96efce9df7eb ]
7
8Fix bpf_get_current_task() declaration.
9
10Signed-off-by: Alexei Starovoitov <ast@kernel.org>
11Acked-by: Andrii Nakryiko <andriin@fb.com>
12Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
13Signed-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
18diff --git a/tools/testing/selftests/bpf/bpf_helpers.h b/tools/testing/selftests/bpf/bpf_helpers.h
19index 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--
322.20.1
33