summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHui Wang <hui.wang@canonical.com>2026-07-07 16:23:48 +0800
committerPaul Walmsley <pjw@kernel.org>2026-07-08 10:59:14 -0600
commita2ac823d8a228e392bc6a79ea63b550ab84a55b2 (patch)
tree2e7eb17d60f90262f61a2ef07012550d8553ec42 /lib
parent3fb29495b486b1ec61708248cb388745fc607278 (diff)
selftests/rseq: Fix a building error for riscv arch
RISC-V rseq selftests include asm/fence.h from tools/arch/riscv, but the rseq Makefile only adds tools/include in the CFLAGS, this results in the building failure both for native and cross build: In file included from rseq.h:131, from rseq.c:37: rseq-riscv.h:11:10: fatal error: asm/fence.h: No such file or directory To fix it, add the matching tools/arch/$(ARCH)/include path in the CFLAGS and derive ARCH from SUBARCH for standalone native builds where ARCH is not set. Fixes: c92786e179e0 ("KVM: riscv: selftests: Use the existing RISCV_FENCE macro in `rseq-riscv.h`") Cc: stable@vger.kernel.org Signed-off-by: Hui Wang <hui.wang@canonical.com> Link: https://patch.msgid.link/20260707082348.36896-1-hui.wang@canonical.com Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions