Re: [PATCH] powerpc/signal: Move and simplify get_clean_sp()

2020-08-06 Thread Michael Ellerman
Christoph Hellwig writes: > On Thu, Aug 06, 2020 at 08:50:20AM +, Christophe Leroy wrote: >> get_clean_sp() is only used in kernel/signal.c . Move it there. >> >> And GCC is smart enough to reduce the function when on PPC32, no >> need of a special PPC32 simple version. > > What about just op

Re: [PATCH] powerpc/signal: Move and simplify get_clean_sp()

2020-08-06 Thread Christoph Hellwig
On Thu, Aug 06, 2020 at 08:50:20AM +, Christophe Leroy wrote: > get_clean_sp() is only used in kernel/signal.c . Move it there. > > And GCC is smart enough to reduce the function when on PPC32, no > need of a special PPC32 simple version. What about just open coding it in the only caller, whi

[PATCH] powerpc/signal: Move and simplify get_clean_sp()

2020-08-06 Thread Christophe Leroy
get_clean_sp() is only used in kernel/signal.c . Move it there. And GCC is smart enough to reduce the function when on PPC32, no need of a special PPC32 simple version. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/processor.h | 14 -- arch/powerpc/kernel/signal.c