aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/sys-x86_64/syscall_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/sys-x86_64/syscall_table.c')
-rw-r--r--arch/um/sys-x86_64/syscall_table.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/um/sys-x86_64/syscall_table.c b/arch/um/sys-x86_64/syscall_table.c
index 9e9ad72c2ba4..5133988d3610 100644
--- a/arch/um/sys-x86_64/syscall_table.c
+++ b/arch/um/sys-x86_64/syscall_table.c
@@ -4,6 +4,7 @@
4#include <linux/linkage.h> 4#include <linux/linkage.h>
5#include <linux/sys.h> 5#include <linux/sys.h>
6#include <linux/cache.h> 6#include <linux/cache.h>
7#include <kern_constants.h>
7 8
8#define __NO_STUBS 9#define __NO_STUBS
9 10
@@ -45,8 +46,8 @@ typedef void (*sys_call_ptr_t)(void);
45 46
46extern void sys_ni_syscall(void); 47extern void sys_ni_syscall(void);
47 48
48sys_call_ptr_t sys_call_table[__NR_syscall_max+1] __cacheline_aligned = { 49sys_call_ptr_t sys_call_table[UM_NR_syscall_max+1] __cacheline_aligned = {
49 /* Smells like a like a compiler bug -- it doesn't work when the & below is removed. */ 50 /* Smells like a like a compiler bug -- it doesn't work when the & below is removed. */
50 [0 ... __NR_syscall_max] = &sys_ni_syscall, 51 [0 ... UM_NR_syscall_max] = &sys_ni_syscall,
51#include <asm-x86_64/unistd.h> 52#include <asm-x86_64/unistd.h>
52}; 53};