Skip to contentSkip to conversation

riscv: Remove unused REG_AMOSWAP_AQ

PATCH New Davidlohr Bueso 1 participant 1 message Oct 18 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: Remove unused REG_AMOSWAP_AQ

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.

---
 arch/riscv/include/asm/asm.h | 1 -
 1 file changed, 1 deletion(-)
arch/riscv/include/asm/asm.h +0 -1
index b8bf842d4c13..80287b3f68f1 100644
@@ -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)
Signature · 7 lines
2.39.5


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv