[PATCH 0/4] selftests: riscv: Fix compilation issues for v_ptrace and cfi

From: Charlie Jenkins via B4 Relay

Date: Thu Mar 05 2026 - 03:17:48 EST


There are a couple of compilation issues of the riscv selftests.
Coincidentally two of the issues are independent problems with not
including the header that includes the BIT() macro and the other issue
is from checkpatch incorrectly suggesting to remove non-redundant
braces.

Signed-off-by: Charlie Jenkins <thecharlesjenkins@xxxxxxxxx>
---
Charlie Jenkins (4):
selftests: riscv: Add definition of BIT() macro
selftests: riscv: Add braces around EXPECT_EQ()
riscv: ptrace: Fix BIT() compilation issues
selftests: riscv: Add license to cfi selftest

arch/riscv/include/uapi/asm/ptrace.h | 1 +
tools/testing/selftests/riscv/cfi/Makefile | 2 ++
tools/testing/selftests/riscv/vector/Makefile | 2 ++
tools/testing/selftests/riscv/vector/validate_v_ptrace.c | 16 ++++++++++------
4 files changed, 15 insertions(+), 6 deletions(-)
---
base-commit: c107785c7e8dbabd1c18301a1c362544b5786282
change-id: 20260304-fix_selftests-c3f0ae46b3c7

Best regards,
--
Charlie Jenkins <thecharlesjenkins@xxxxxxxxx>