From: Christophe Leroy Date: Mon, 20 Dec 2021 16:38:16 +0000 (+0000) Subject: powerpc/ftrace: Don't save again LR in ftrace_regs_caller() on PPC32 X-Git-Tag: baikal/aarch64/sdk6.1~4394^2~123 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=d0ffedb11942624faa61dba99068004203b2fcd5;p=kernel.git powerpc/ftrace: Don't save again LR in ftrace_regs_caller() on PPC32 PPC32 mcount() caller already saves LR on stack, no need to save it again. Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/eadcfc770b4f1e35535ffb85e28e858a2c31dec4.1640017960.git.christophe.leroy@csgroup.eu --- diff --git a/arch/powerpc/kernel/trace/ftrace_32.S b/arch/powerpc/kernel/trace/ftrace_32.S index 0a02c0cb12d99..7e2fd729116b8 100644 --- a/arch/powerpc/kernel/trace/ftrace_32.S +++ b/arch/powerpc/kernel/trace/ftrace_32.S @@ -53,9 +53,6 @@ _GLOBAL(ftrace_stub) blr _GLOBAL(ftrace_regs_caller) - /* Save the original return address in A's stack frame */ - stw r0,LRSAVE(r1) - /* Create our stack frame + pt_regs */ stwu r1,-INT_FRAME_SIZE(r1)