]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/audit: Avoid unneccessary #ifdef in syscall_get_arguments()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 20 Aug 2021 09:28:19 +0000 (09:28 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Aug 2021 12:38:08 +0000 (22:38 +1000)
Use is_32bit_task() which already handles CONFIG_COMPAT.

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

index ba0f88f3a30daea20e9c5e9efb322a627678a00c..7ea3c40441861c93f83db4ef811a4b890109ab51 100644 (file)
@@ -90,10 +90,9 @@ static inline void syscall_get_arguments(struct task_struct *task,
        unsigned long val, mask = -1UL;
        unsigned int n = 6;
 
-#ifdef CONFIG_COMPAT
-       if (test_tsk_thread_flag(task, TIF_32BIT))
+       if (is_32bit_task())
                mask = 0xffffffff;
-#endif
+
        while (n--) {
                if (n == 0)
                        val = regs->orig_gpr3;