powerpc: Only pad struct pt_regs when needed
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 6 May 2021 13:30:51 +0000 (13:30 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 May 2021 05:27:16 +0000 (15:27 +1000)
commitcef43c3d1e6e44571c96c9f5a70c4680c8d8055d
tree1cc1b07a0f51c1fca6fdf9fea5c3704736eaffc7
parent5039f465f8bcbc8a587ceda196466e2fecd2c0af
powerpc: Only pad struct pt_regs when needed

If neither KUAP nor PPC64 is selected, there is nothing in the second
union of struct pt_regs, so the alignment padding is waste of memory.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/d536bbc46094f66b24d3017343be25164f232933.1620307840.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/ptrace.h