diff options
Diffstat (limited to 'arch/arm/include/asm/syscall.h')
-rw-r--r-- | arch/arm/include/asm/syscall.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/include/asm/syscall.h b/arch/arm/include/asm/syscall.h index 9fdded6b1089..f1d96d4e8092 100644 --- a/arch/arm/include/asm/syscall.h +++ b/arch/arm/include/asm/syscall.h | |||
@@ -7,6 +7,8 @@ | |||
7 | #ifndef _ASM_ARM_SYSCALL_H | 7 | #ifndef _ASM_ARM_SYSCALL_H |
8 | #define _ASM_ARM_SYSCALL_H | 8 | #define _ASM_ARM_SYSCALL_H |
9 | 9 | ||
10 | #include <linux/audit.h> /* for AUDIT_ARCH_* */ | ||
11 | #include <linux/elf.h> /* for ELF_EM */ | ||
10 | #include <linux/err.h> | 12 | #include <linux/err.h> |
11 | #include <linux/sched.h> | 13 | #include <linux/sched.h> |
12 | 14 | ||
@@ -95,4 +97,11 @@ static inline void syscall_set_arguments(struct task_struct *task, | |||
95 | memcpy(®s->ARM_r0 + i, args, n * sizeof(args[0])); | 97 | memcpy(®s->ARM_r0 + i, args, n * sizeof(args[0])); |
96 | } | 98 | } |
97 | 99 | ||
100 | static inline int syscall_get_arch(struct task_struct *task, | ||
101 | struct pt_regs *regs) | ||
102 | { | ||
103 | /* ARM tasks don't change audit architectures on the fly. */ | ||
104 | return AUDIT_ARCH_ARM; | ||
105 | } | ||
106 | |||
98 | #endif /* _ASM_ARM_SYSCALL_H */ | 107 | #endif /* _ASM_ARM_SYSCALL_H */ |