[PW_SID:1122908] [v2] selftests/rseq: Fix a building error for riscv arch#2234
[PW_SID:1122908] [v2] selftests/rseq: Fix a building error for riscv arch#2234linux-riscv-bot wants to merge 1 commit into
Conversation
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: c92786e ("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>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
|
Patch 1: "[v2] selftests/rseq: Fix a building error for riscv arch" |
PR for series 1122908 applied to workflow__riscv__fixes
Name: [v2] selftests/rseq: Fix a building error for riscv arch
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1122908
Version: 2