bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next] selftests/bpf: remove unused variable in tc_tunnel prog
@ 2021-07-13 10:27 Tobias Klauser
  2021-07-13 10:36 ` Willem de Bruijn
  2021-07-15 20:00 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 4+ messages in thread
From: Tobias Klauser @ 2021-07-13 10:27 UTC (permalink / raw)
  To: bpf
  Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko, Willem de Bruijn

The variable buf is unused since commit 005edd16562b ("selftests/bpf:
convert bpf tunnel test to BPF_ADJ_ROOM_MAC"). Remove it to fix the
following warning:

    test_tc_tunnel.c:531:7: warning: unused variable 'buf' [-Wunused-variable]

Fixes: 005edd16562b ("selftests/bpf: convert bpf tunnel test to BPF_ADJ_ROOM_MAC")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 tools/testing/selftests/bpf/progs/test_tc_tunnel.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/bpf/progs/test_tc_tunnel.c b/tools/testing/selftests/bpf/progs/test_tc_tunnel.c
index 84cd63259554..a0e7762b1e5a 100644
--- a/tools/testing/selftests/bpf/progs/test_tc_tunnel.c
+++ b/tools/testing/selftests/bpf/progs/test_tc_tunnel.c
@@ -528,7 +528,6 @@ int __encap_ip6vxlan_eth(struct __sk_buff *skb)
 
 static int decap_internal(struct __sk_buff *skb, int off, int len, char proto)
 {
-	char buf[sizeof(struct v6hdr)];
 	struct gre_hdr greh;
 	struct udphdr udph;
 	int olen = len;
-- 
2.31.1


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

* Re: [PATCH bpf-next] selftests/bpf: remove unused variable in tc_tunnel prog
  2021-07-13 10:27 [PATCH bpf-next] selftests/bpf: remove unused variable in tc_tunnel prog Tobias Klauser
@ 2021-07-13 10:36 ` Willem de Bruijn
  2021-07-14  0:27   ` John Fastabend
  2021-07-15 20:00 ` patchwork-bot+netdevbpf
  1 sibling, 1 reply; 4+ messages in thread
From: Willem de Bruijn @ 2021-07-13 10:36 UTC (permalink / raw)
  To: Tobias Klauser; +Cc: bpf, Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko

On Tue, Jul 13, 2021 at 12:27 PM Tobias Klauser <tklauser@distanz.ch> wrote:
>
> The variable buf is unused since commit 005edd16562b ("selftests/bpf:
> convert bpf tunnel test to BPF_ADJ_ROOM_MAC"). Remove it to fix the
> following warning:
>
>     test_tc_tunnel.c:531:7: warning: unused variable 'buf' [-Wunused-variable]
>
> Fixes: 005edd16562b ("selftests/bpf: convert bpf tunnel test to BPF_ADJ_ROOM_MAC")
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

Acked-by: Willem de Bruijn <willemb@google.com>

Thanks for the fix, Tobias.

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

* Re: [PATCH bpf-next] selftests/bpf: remove unused variable in tc_tunnel prog
  2021-07-13 10:36 ` Willem de Bruijn
@ 2021-07-14  0:27   ` John Fastabend
  0 siblings, 0 replies; 4+ messages in thread
From: John Fastabend @ 2021-07-14  0:27 UTC (permalink / raw)
  To: Willem de Bruijn, Tobias Klauser
  Cc: bpf, Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko

Willem de Bruijn wrote:
> On Tue, Jul 13, 2021 at 12:27 PM Tobias Klauser <tklauser@distanz.ch> wrote:
> >
> > The variable buf is unused since commit 005edd16562b ("selftests/bpf:
> > convert bpf tunnel test to BPF_ADJ_ROOM_MAC"). Remove it to fix the
> > following warning:
> >
> >     test_tc_tunnel.c:531:7: warning: unused variable 'buf' [-Wunused-variable]
> >
> > Fixes: 005edd16562b ("selftests/bpf: convert bpf tunnel test to BPF_ADJ_ROOM_MAC")
> > Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> 
> Acked-by: Willem de Bruijn <willemb@google.com>
> 
> Thanks for the fix, Tobias.

Acked-by: John Fastabend <john.fastabend@gmail.com>

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

* Re: [PATCH bpf-next] selftests/bpf: remove unused variable in tc_tunnel prog
  2021-07-13 10:27 [PATCH bpf-next] selftests/bpf: remove unused variable in tc_tunnel prog Tobias Klauser
  2021-07-13 10:36 ` Willem de Bruijn
@ 2021-07-15 20:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-07-15 20:00 UTC (permalink / raw)
  To: Tobias Klauser; +Cc: bpf, ast, daniel, andrii, willemb

Hello:

This patch was applied to bpf/bpf-next.git (refs/heads/master):

On Tue, 13 Jul 2021 12:27:19 +0200 you wrote:
> The variable buf is unused since commit 005edd16562b ("selftests/bpf:
> convert bpf tunnel test to BPF_ADJ_ROOM_MAC"). Remove it to fix the
> following warning:
> 
>     test_tc_tunnel.c:531:7: warning: unused variable 'buf' [-Wunused-variable]
> 
> Fixes: 005edd16562b ("selftests/bpf: convert bpf tunnel test to BPF_ADJ_ROOM_MAC")
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> 
> [...]

Here is the summary with links:
  - [bpf-next] selftests/bpf: remove unused variable in tc_tunnel prog
    https://git.kernel.org/bpf/bpf-next/c/de587d564f95

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2021-07-15 20:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13 10:27 [PATCH bpf-next] selftests/bpf: remove unused variable in tc_tunnel prog Tobias Klauser
2021-07-13 10:36 ` Willem de Bruijn
2021-07-14  0:27   ` John Fastabend
2021-07-15 20:00 ` patchwork-bot+netdevbpf

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).