]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit420a8262a5b432c0e9831d350b0fad8790b72651
tree3908c4c360ecc593c527523fc4224fcc44cfe7c2
parent804c12bdbc26f538585818e5e271763fc3019e4d
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