🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
3 messages
3 total messages Started by Maciej Fijalkowski Mon, 16 Nov 2026 10:51
[PATCH net-next] selftests: xsk: drop asm/barrier.h to fix the riscv build
#17059
Author: Maciej Fijalkowski
Date: Mon, 16 Nov 2026 10:51
35 lines
10127 bytes
xsk.c includes <asm/barrier.h>, 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 <asm/fence.h> 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 <maciej.fijalkowski@intel.com>
---
 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 <string.h>
 #include <unistd.h>
 #include <arpa/inet.h>
-#include <asm/barrier.h>
 #include <linux/compiler.h>
 #include <linux/ethtool.h>
 #include <linux/filter.h>

base-commit: 6964ff21c5d8b75649211a52dbfd92753e605649
-- 
2.43.0
Re: [PATCH net-next] selftests: xsk: drop asm/barrier.h to fix the riscv build
#17113
Author: Jason Xing
Date: Mon, 16 Nov 2026 11:45
23 lines
12780 bytes
On Mon, Nov 16, 2026 at 6:52 PM Maciej Fijalkowski
<maciej.fijalkowski@intel.com> wrote:
>
> xsk.c includes <asm/barrier.h>, 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 <asm/fence.h> 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 <maciej.fijalkowski@intel.com>

Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Re: [PATCH net-next] selftests: xsk: drop asm/barrier.h to fix the riscv build
#17611
Author: patchwork-bot+netdevbpf
Date: Tue, 17 Nov 2026 03:30
24 lines
8771 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 16 Nov 2026 11:51:59 +0100 you wrote:
> xsk.c includes <asm/barrier.h>, 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 <asm/fence.h> 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:
> 
> [...]

Here is the summary with links:
  - [net-next] selftests: xsk: drop asm/barrier.h to fix the riscv build
    https://git.kernel.org/netdev/net-next/c/6ff4c5942a30

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads