Merge tag 'upstream-3.8-rc1' of git://git.infradead.org/linux-ubi
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / include / asm / syscall.h
index 9fdded6b108971412c3f92a13be48724313b3512..f1d96d4e8092a652aeb84f5825082a8f9064cd20 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef _ASM_ARM_SYSCALL_H
 #define _ASM_ARM_SYSCALL_H
 
+#include <linux/audit.h> /* for AUDIT_ARCH_* */
+#include <linux/elf.h> /* for ELF_EM */
 #include <linux/err.h>
 #include <linux/sched.h>
 
@@ -95,4 +97,11 @@ static inline void syscall_set_arguments(struct task_struct *task,
        memcpy(&regs->ARM_r0 + i, args, n * sizeof(args[0]));
 }
 
+static inline int syscall_get_arch(struct task_struct *task,
+                                  struct pt_regs *regs)
+{
+       /* ARM tasks don't change audit architectures on the fly. */
+       return AUDIT_ARCH_ARM;
+}
+
 #endif /* _ASM_ARM_SYSCALL_H */