xsk.c includes , a leftover from libbpf's AF_XDP code; nothing in it uses a barrier, the ring helpers in xsk.h use C11 atomics. On riscv, the tools asm/barrier.h includes from tools/arch/riscv/include. selftests/bpf had that directory on the include path but selftests/net does not, so since the move both xskxceiver and xdp_hw_metadata fail to build on riscv: asm/barrier.h:13:10: fatal error: asm/fence.h: No such file or directory Drop the redundant include. Fixes: e8f9d8237988 ("selftests: xsk: move the AF_XDP test suite to selftests/net") Fixes: d01fb5c81130 ("selftests: net: move xdp_hw_metadata from selftests/bpf") Signed-off-by: Maciej Fijalkowski --- tools/testing/selftests/net/lib/xsk/xsk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/net/lib/xsk/xsk.c b/tools/testing/selftests/net/lib/xsk/xsk.c index 6bd32caf5d08..4e9d14f883ac 100644 --- a/tools/testing/selftests/net/lib/xsk/xsk.c +++ b/tools/testing/selftests/net/lib/xsk/xsk.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include base-commit: 6964ff21c5d8b75649211a52dbfd92753e605649 -- 2.43.0