[PATCH] powerpc/irq: Mark check_return_regs_valid() notrace

Michael Ellerman mpe at ellerman.id.au
Thu Apr 6 22:21:18 AEST 2023

check_return_regs_valid() is called from the middle of the irq exit
handling, which is all notrace, so mark it notrace also.

Rerported-by: Sachin Sant <sachinp at linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
 arch/powerpc/kernel/interrupt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/kernel/interrupt.c b/arch/powerpc/kernel/interrupt.c
index 0ec1581619db..e34c72285b4e 100644
--- a/arch/powerpc/kernel/interrupt.c
+++ b/arch/powerpc/kernel/interrupt.c
@@ -95,7 +95,7 @@ static notrace void booke_load_dbcr0(void)
-static void check_return_regs_valid(struct pt_regs *regs)
+static notrace void check_return_regs_valid(struct pt_regs *regs)
 #ifdef CONFIG_PPC_BOOK3S_64
 	unsigned long trap, srr0, srr1;

More information about the Linuxppc-dev mailing list