[PATCH] riscv: Remove unused REG_AMOSWAP_AQ

Davidlohr Bueso dave at stgolabs.net
Sun Oct 18 16:20:16 PDT 2026


Its only user was the shadow_stack lock in handle_kernel_stack_overflow,
which commit be97d0db5f44 ("riscv: VMAP_STACK overflow detection
thread-safe") removed along with shadow_stack itself.

Signed-off-by: Davidlohr Bueso <dave at stgolabs.net>
---
 arch/riscv/include/asm/asm.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/riscv/include/asm/asm.h b/arch/riscv/include/asm/asm.h
index b8bf842d4c13..80287b3f68f1 100644
--- a/arch/riscv/include/asm/asm.h
+++ b/arch/riscv/include/asm/asm.h
@@ -29,7 +29,6 @@
 #define REG_L		__REG_SEL(ld, lw)
 #define REG_S		__REG_SEL(sd, sw)
 #define REG_SC		__REG_SEL(sc.d, sc.w)
-#define REG_AMOSWAP_AQ	__REG_SEL(amoswap.d.aq, amoswap.w.aq)
 #define REG_ASM		__REG_SEL(.dword, .word)
 #define SZREG		__REG_SEL(8, 4)
 #define LGREG		__REG_SEL(3, 2)
-- 
2.39.5




More information about the linux-riscv mailing list