]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Use local type for bpf_fou_encap in test_tunnel_kern
authorGregory Bell <grbell@redhat.com>
Fri, 17 Apr 2026 15:41:22 +0000 (11:41 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 26 Apr 2026 23:42:23 +0000 (16:42 -0700)
commitafb0450be061907a0f5d36bd8b010ca30eda3d3b
treeac753ac6a79cb7f8d1da236aedd1ac618f75a54a
parentac985e7bf840e34a8dafe0808cc571fd85896c30
selftests/bpf: Use local type for bpf_fou_encap in test_tunnel_kern

Replace the forward-declared struct bpf_fou_encap with the existing
bpf_fou_encap___local type in the bpf_skb_set_fou_encap and
bpf_skb_get_fou_encap declarations. This removes the need for
the forward declaration and the explicit casts at each call.

Fixes: d17f9b370df6 ("selftests/bpf: Fix compilation failure when CONFIG_NET_FOU!=y")
Signed-off-by: Gregory Bell <grbell@redhat.com>
Link: https://lore.kernel.org/r/20260417154122.2558890-3-grbell@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/test_tunnel_kern.c