]> 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)
commit2e819024f8c51ba813d226ba4eaa4e0d68a40824
tree3908c4c360ecc593c527523fc4224fcc44cfe7c2
parent1fc272322080940c971cd3c03fb0b9a69aa761ea
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