bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf] selftests/bpf: fix bpf_get_current_task
@ 2019-05-17  4:34 Alexei Starovoitov
  2019-05-17  6:31 ` Andrii Nakryiko
  2019-05-17 12:23 ` Daniel Borkmann
  0 siblings, 2 replies; 3+ messages in thread
From: Alexei Starovoitov @ 2019-05-17  4:34 UTC (permalink / raw)
  To: davem; +Cc: daniel, netdev, bpf, kernel-team

Fix bpf_get_current_task() declaration.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
---
 tools/testing/selftests/bpf/bpf_helpers.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) =
 	(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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf] selftests/bpf: fix bpf_get_current_task
  2019-05-17  4:34 [PATCH bpf] selftests/bpf: fix bpf_get_current_task Alexei Starovoitov
@ 2019-05-17  6:31 ` Andrii Nakryiko
  2019-05-17 12:23 ` Daniel Borkmann
  1 sibling, 0 replies; 3+ messages in thread
From: Andrii Nakryiko @ 2019-05-17  6:31 UTC (permalink / raw)
  To: Alexei Starovoitov; +Cc: davem, Daniel Borkmann, Networking, bpf, Kernel Team

On Thu, May 16, 2019 at 9:34 PM Alexei Starovoitov <ast@kernel.org> wrote:
>
> Fix bpf_get_current_task() declaration.
>
> Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Acked-by: Andrii Nakryiko <andriin@fb.com>

> ---
>  tools/testing/selftests/bpf/bpf_helpers.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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) =
>         (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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf] selftests/bpf: fix bpf_get_current_task
  2019-05-17  4:34 [PATCH bpf] selftests/bpf: fix bpf_get_current_task Alexei Starovoitov
  2019-05-17  6:31 ` Andrii Nakryiko
@ 2019-05-17 12:23 ` Daniel Borkmann
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Borkmann @ 2019-05-17 12:23 UTC (permalink / raw)
  To: Alexei Starovoitov, davem; +Cc: netdev, bpf, kernel-team

On 05/17/2019 06:34 AM, Alexei Starovoitov wrote:
> Fix bpf_get_current_task() declaration.
> 
> Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Applied, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-17 12:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-17  4:34 [PATCH bpf] selftests/bpf: fix bpf_get_current_task Alexei Starovoitov
2019-05-17  6:31 ` Andrii Nakryiko
2019-05-17 12:23 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).