]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54e1110fa1915eda13d62f061f07c16d3678f46b
tree1cc1b07a0f51c1fca6fdf9fea5c3704736eaffc7
parent3b90a9becf661457c501c415606f23a60a285064
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