Re: [PATCH 1/2] arm: traps: move declaration for irq_stack_ptr to irq.h
From: Linus Walleij
Date: Mon Jun 08 2026 - 05:07:37 EST
Hi Maninder,
thanks for your patch!
On Mon, Apr 27, 2026 at 7:52 AM Maninder Singh <maninder1.s@xxxxxxxxxxx> wrote:
> Moving declaration for irq_stack_ptr to irq.h,
> because next patch will use it for IRQ STACK checking.
OK
> Also irq_stack_ptr is defined as READ_MOSTLY, so declaration
> should also be the same.
But is that even right in the first place?
AFAIU a stack pointer is usually read exactly as much as it
is written.
Yours,
Linus Walleij