]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/signal_32: Remove !FULL_REGS() special handling in PPC64 save_general_regs()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 7 Jul 2020 12:33:35 +0000 (12:33 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Jul 2020 02:04:40 +0000 (12:04 +1000)
commit784fdc1e1f4dc55ceb4f8f71b4673a5fe9df824b
treee70ce3a9e6affda12b696e706f5b19dc6f7f8241
parent019c368daa611234ece5a073b0208409438451fa
powerpc/signal_32: Remove !FULL_REGS() special handling in PPC64 save_general_regs()

Since commit ("3fd7214d2382 powerpc: Fix various
syscall/signal/swapcontext bugs"), getting save_general_regs() called
without FULL_REGS() is very unlikely and generates a warning.

The 32-bit version of save_general_regs() doesn't take care of it
at all and copies all registers anyway since that commit.

Moreover, commit a9ad660a2b92 ("powerpc/64/syscall: Remove
non-volatile GPR save optimisation") is another reason why it would
never happen.

So the same with 64-bit, don't worry about FULL_REGS() and copy
all registers all the time.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/173de3b659fa3a5f126a0eb170522cccd909950f.1594125164.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/signal_32.c