OSDN Git Service

powerpc/audit: Simplify syscall_get_arch()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 20 Aug 2021 09:39:14 +0000 (09:39 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Aug 2021 12:38:13 +0000 (22:38 +1000)
commit770cec16cdc9d15555e67896dd2214a4fec9a3fa
tree3908c4c360ecc593c527523fc4224fcc44cfe7c2
parent898a1ef06ad4a2a8e3c9490ce62624fcd1a7b1f8
powerpc/audit: Simplify syscall_get_arch()

Make use of is_32bit_task() and CONFIG_CPU_LITTLE_ENDIAN
to simplify syscall_get_arch().

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