Skip to contentSkip to conversation

openrisc: rename STACK_FRAME_OVERHEAD to MIN_REDZONE

PATCH New Taimoor Zaeem 1 participant 1 message Oct 13, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openrisc: rename STACK_FRAME_OVERHEAD to MIN_REDZONE

As mentioned in the TODO, the STACK_FRAME_OVERHEAD is the red zone, hence renamed to MIN_REDZONE in ptrace.h and processor.h.

---
 arch/openrisc/include/asm/processor.h | 2 +-
 arch/openrisc/include/asm/ptrace.h    | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
arch/openrisc/include/asm/processor.h +1 -1
index 3ff893a67c13..b0a00dcebf0c 100644
@@ -55,7 +55,7 @@ struct thread_struct {
  * user->kernel transition registers are reached by this (i.e. not regs
  * for running signal handler)
  */
-#define user_regs(thread_info)  (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - STACK_FRAME_OVERHEAD)) - 1)
+#define user_regs(thread_info)  (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - MIN_REDZONE)) - 1)
 
 /*
  * Dito but for the currently running task
arch/openrisc/include/asm/ptrace.h +1 -2
index 28facf2f3e00..0b86764653ef 100644
@@ -94,8 +94,7 @@ struct pt_regs {
 	long dummy2;		/* Cheap alignment fix */
 };
 
-/* TODO: Rename this to REDZONE because that's what it is */
-#define STACK_FRAME_OVERHEAD  128  /* size of minimum stack frame */
+#define MIN_REDZONE  128  /* size of minimum stack frame */
 
 #define MAX_REG_OFFSET offsetof(struct pt_regs, orig_gpr11)
 
Signature · 1 line
2.43.0