]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Remove unused variable in tc_tunnel prog
authorTobias Klauser <tklauser@distanz.ch>
Tue, 13 Jul 2021 10:27:19 +0000 (12:27 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 15 Jul 2021 19:54:43 +0000 (21:54 +0200)
commit5446eeda36ad7ff5402a79d7fc87c3b5b4a848f1
tree80733961fc0dd3ffb19db63ec52b9076dbd8014c
parent3f3dad2d2661df9ebb6b512e5b7973bd3c917f7c
selftests/bpf: Remove unused variable in tc_tunnel prog

The variable buf is unused since commit d6ad792a0e64 ("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: d6ad792a0e64 ("selftests/bpf: convert bpf tunnel test to BPF_ADJ_ROOM_MAC")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Willem de Bruijn <willemb@google.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20210713102719.8890-1-tklauser@distanz.ch
tools/testing/selftests/bpf/progs/test_tc_tunnel.c