diff options
Diffstat (limited to 'arch/s390/include/asm/syscall.h')
-rw-r--r-- | arch/s390/include/asm/syscall.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/s390/include/asm/syscall.h b/arch/s390/include/asm/syscall.h index cd29d2f4e4f3..777687055e7b 100644 --- a/arch/s390/include/asm/syscall.h +++ b/arch/s390/include/asm/syscall.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #ifndef _ASM_SYSCALL_H | 12 | #ifndef _ASM_SYSCALL_H |
13 | #define _ASM_SYSCALL_H 1 | 13 | #define _ASM_SYSCALL_H 1 |
14 | 14 | ||
15 | #include <linux/audit.h> | 15 | #include <uapi/linux/audit.h> |
16 | #include <linux/sched.h> | 16 | #include <linux/sched.h> |
17 | #include <linux/err.h> | 17 | #include <linux/err.h> |
18 | #include <asm/ptrace.h> | 18 | #include <asm/ptrace.h> |
@@ -89,11 +89,10 @@ static inline void syscall_set_arguments(struct task_struct *task, | |||
89 | regs->orig_gpr2 = args[0]; | 89 | regs->orig_gpr2 = args[0]; |
90 | } | 90 | } |
91 | 91 | ||
92 | static inline int syscall_get_arch(struct task_struct *task, | 92 | static inline int syscall_get_arch(void) |
93 | struct pt_regs *regs) | ||
94 | { | 93 | { |
95 | #ifdef CONFIG_COMPAT | 94 | #ifdef CONFIG_COMPAT |
96 | if (test_tsk_thread_flag(task, TIF_31BIT)) | 95 | if (test_tsk_thread_flag(current, TIF_31BIT)) |
97 | return AUDIT_ARCH_S390; | 96 | return AUDIT_ARCH_S390; |
98 | #endif | 97 | #endif |
99 | return sizeof(long) == 8 ? AUDIT_ARCH_S390X : AUDIT_ARCH_S390; | 98 | return sizeof(long) == 8 ? AUDIT_ARCH_S390X : AUDIT_ARCH_S390; |