]> Git Repo - J-linux.git/commitdiff
selftests/bpf: Remove unused variable in tc_tunnel prog
authorTobias Klauser <[email protected]>
Tue, 13 Jul 2021 10:27:19 +0000 (12:27 +0200)
committerDaniel Borkmann <[email protected]>
Thu, 15 Jul 2021 19:54:43 +0000 (21:54 +0200)
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Willem de Bruijn <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
tools/testing/selftests/bpf/progs/test_tc_tunnel.c

index 84cd63259554af8f5bc982eb15bf2ed230a90d0f..a0e7762b1e5ae48610050ef99cf4109797622b3e 100644 (file)
@@ -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;
This page took 0.071793 seconds and 4 git commands to generate.