]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: Strengthen duplicate and inconsistent definition of RV_X()
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Fri, 20 Jun 2025 20:21:58 +0000 (20:21 +0000)
committerPaul Walmsley <pjw@kernel.org>
Tue, 16 Sep 2025 22:28:30 +0000 (16:28 -0600)
commit833bbb0d91d21694ec0d8909b6c71f5df448c575
treeb27acf6b65a77ca0ec2f63b1fa11520807934ac7
parent932131fd3ed21538a9b16f14e46b2794f244a196
riscv: Strengthen duplicate and inconsistent definition of RV_X()

RV_X() macro is defined in two different ways which is error prone.

So harmonize its first definition and add another macro RV_X_MASK() for
the second one.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250620-dev-alex-insn_duplicate_v5_manual-v5-2-d865dc9ad180@rivosinc.com
[pjw@kernel.org: upcase the macro name to conform with previous practice]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/asm/insn.h
arch/riscv/kernel/machine_kexec_file.c
arch/riscv/kernel/traps_misaligned.c
arch/riscv/kvm/vcpu_insn.c