diff options
| -rw-r--r-- | arch/x86/include/asm/syscall.h | 3 | ||||
| -rw-r--r-- | arch/x86/kernel/syscall_64.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h index 2e188d68397c..aea284b41312 100644 --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h | |||
| @@ -20,7 +20,8 @@ | |||
| 20 | #include <asm/thread_info.h> /* for TS_COMPAT */ | 20 | #include <asm/thread_info.h> /* for TS_COMPAT */ |
| 21 | #include <asm/unistd.h> | 21 | #include <asm/unistd.h> |
| 22 | 22 | ||
| 23 | extern const unsigned long sys_call_table[]; | 23 | typedef void (*sys_call_ptr_t)(void); |
| 24 | extern const sys_call_ptr_t sys_call_table[]; | ||
| 24 | 25 | ||
| 25 | /* | 26 | /* |
| 26 | * Only the low 32 bits of orig_ax are meaningful, so we return int. | 27 | * Only the low 32 bits of orig_ax are meaningful, so we return int. |
diff --git a/arch/x86/kernel/syscall_64.c b/arch/x86/kernel/syscall_64.c index 5c7f8c20da74..ec008f5943ac 100644 --- a/arch/x86/kernel/syscall_64.c +++ b/arch/x86/kernel/syscall_64.c | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | #include <linux/sys.h> | 4 | #include <linux/sys.h> |
| 5 | #include <linux/cache.h> | 5 | #include <linux/cache.h> |
| 6 | #include <asm/asm-offsets.h> | 6 | #include <asm/asm-offsets.h> |
| 7 | #include <asm/syscall.h> | ||
| 7 | 8 | ||
| 8 | #define __SYSCALL_COMMON(nr, sym, compat) __SYSCALL_64(nr, sym, compat) | 9 | #define __SYSCALL_COMMON(nr, sym, compat) __SYSCALL_64(nr, sym, compat) |
| 9 | 10 | ||
| @@ -19,8 +20,6 @@ | |||
| 19 | 20 | ||
| 20 | #define __SYSCALL_64(nr, sym, compat) [nr] = sym, | 21 | #define __SYSCALL_64(nr, sym, compat) [nr] = sym, |
| 21 | 22 | ||
| 22 | typedef void (*sys_call_ptr_t)(void); | ||
| 23 | |||
| 24 | extern void sys_ni_syscall(void); | 23 | extern void sys_ni_syscall(void); |
| 25 | 24 | ||
| 26 | const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = { | 25 | const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = { |
