diff mbox series

[bpf-next,v1,06/19] selftests/bpf: Drop unneeded include in flow_dissector.c

Message ID e8039a3af82275aa0052fafb70cd9fe4d6f9b5e4.1721713597.git.tony.ambardar@gmail.com (mailing list archive)
State New
Headers show
Series selftests/bpf: Improve libc portability / musl support (part 1) | expand

Commit Message

Tony Ambardar July 23, 2024, 5:54 a.m. UTC
Test prog flow_dissector.c includes glibc extension '<error.h>' and fails
to build for non-glibc (i.e. musl) systems. However, the header is actually
not needed, so remove it to allow more portable compilation.

Fixes: 0905beec9f52 ("selftests/bpf: run flow dissector tests in skb-less mode")
Signed-off-by: Tony Ambardar <tony.ambardar@gmail.com>
---
 tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
index 9e5f38739104..9625e6d21791 100644
--- a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
+++ b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
@@ -1,7 +1,6 @@ 
 // SPDX-License-Identifier: GPL-2.0
 #include <test_progs.h>
 #include <network_helpers.h>
-#include <error.h>
 #include <linux/if_tun.h>
 #include <sys/uio.h>