Merge tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoor...
[sfrench/cifs-2.6.git] / arch / arm64 / include / asm / syscall.h
index a179df3674a1aa207dfdead37e47219353b67b91..a65167f5cded8f142cb2333eb79367135c072fc1 100644 (file)
@@ -87,9 +87,9 @@ static inline void syscall_set_arguments(struct task_struct *task,
  * We don't care about endianness (__AUDIT_ARCH_LE bit) here because
  * AArch64 has the same system calls both on little- and big- endian.
  */
-static inline int syscall_get_arch(void)
+static inline int syscall_get_arch(struct task_struct *task)
 {
-       if (is_compat_task())
+       if (is_compat_thread(task_thread_info(task)))
                return AUDIT_ARCH_ARM;
 
        return AUDIT_ARCH_AARCH64;