summaryrefslogtreecommitdiff
path: root/arch/x86/um/asm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/um/asm/syscall.h')
-rw-r--r--arch/x86/um/asm/syscall.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/um/asm/syscall.h b/arch/x86/um/asm/syscall.h
index 11ab90dc5f14..d6208d0fad51 100644
--- a/arch/x86/um/asm/syscall.h
+++ b/arch/x86/um/asm/syscall.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __UM_ASM_SYSCALL_H
#define __UM_ASM_SYSCALL_H
@@ -8,7 +9,9 @@ typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long,
unsigned long, unsigned long,
unsigned long, unsigned long);
-static inline int syscall_get_arch(void)
+extern const sys_call_ptr_t sys_call_table[];
+
+static inline int syscall_get_arch(struct task_struct *task)
{
#ifdef CONFIG_X86_32
return AUDIT_ARCH_I386;