When testing the patch in #520, on either 32-bit or 64-bit ARM:
In file included from net/xdp/xsk_queue.c:10:
net/xdp/xsk_queue.h:292:2: warning: expression result unused [-Wunused-value]
WRITE_ONCE(q->ring->producer, q->prod_tail);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:284:6: note: expanded from macro 'WRITE_ONCE'
__u.__val; \
~~~ ^~~~~
1 warning generated.
In file included from net/xdp/xsk_diag.c:14:
net/xdp/xsk_queue.h:292:2: warning: expression result unused [-Wunused-value]
WRITE_ONCE(q->ring->producer, q->prod_tail);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:284:6: note: expanded from macro 'WRITE_ONCE'
__u.__val; \
~~~ ^~~~~
1 warning generated.
In file included from net/xdp/xdp_umem.c:19:
net/xdp/xsk_queue.h:292:2: warning: expression result unused [-Wunused-value]
WRITE_ONCE(q->ring->producer, q->prod_tail);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:284:6: note: expanded from macro 'WRITE_ONCE'
__u.__val; \
~~~ ^~~~~
1 warning generated.
In file included from net/xdp/xsk.c:28:
net/xdp/xsk_queue.h:292:2: warning: expression result unused [-Wunused-value]
WRITE_ONCE(q->ring->producer, q->prod_tail);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:284:6: note: expanded from macro 'WRITE_ONCE'
__u.__val; \
~~~ ^~~~~
1 warning generated.
Also reported by @tmroeder on that same thread.
Can be reproduced with make -j$(nproc) CC=clang allyesconfig net/xdp/
This is now visible in -next for everyone because -Wunused-value has been turned on.
I've found the issue and am about to send a fix.
Patch sent: https://lore.kernel.org/lkml/[email protected]/
Merged into mainline: https://git.kernel.org/torvalds/c/f7019b7b0ad14bde732b8953161994edfc384953