diff options
-rw-r--r-- | arch/x86/entry/syscall_32.c | 6 | ||||
-rw-r--r-- | arch/x86/kernel/asm-offsets_64.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/entry/syscall_32.c b/arch/x86/entry/syscall_32.c index e398d033673f..8ea34f94e973 100644 --- a/arch/x86/entry/syscall_32.c +++ b/arch/x86/entry/syscall_32.c | |||
@@ -10,7 +10,7 @@ | |||
10 | #else | 10 | #else |
11 | #define SYM(sym, compat) sym | 11 | #define SYM(sym, compat) sym |
12 | #define ia32_sys_call_table sys_call_table | 12 | #define ia32_sys_call_table sys_call_table |
13 | #define __NR_entry_INT80_compat_max __NR_syscall_max | 13 | #define __NR_syscall_compat_max __NR_syscall_max |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | #define __SYSCALL_I386(nr, sym, compat) extern asmlinkage void SYM(sym, compat)(void) ; | 16 | #define __SYSCALL_I386(nr, sym, compat) extern asmlinkage void SYM(sym, compat)(void) ; |
@@ -23,11 +23,11 @@ typedef asmlinkage void (*sys_call_ptr_t)(void); | |||
23 | 23 | ||
24 | extern asmlinkage void sys_ni_syscall(void); | 24 | extern asmlinkage void sys_ni_syscall(void); |
25 | 25 | ||
26 | __visible const sys_call_ptr_t ia32_sys_call_table[__NR_entry_INT80_compat_max+1] = { | 26 | __visible const sys_call_ptr_t ia32_sys_call_table[__NR_syscall_compat_max+1] = { |
27 | /* | 27 | /* |
28 | * Smells like a compiler bug -- it doesn't work | 28 | * Smells like a compiler bug -- it doesn't work |
29 | * when the & below is removed. | 29 | * when the & below is removed. |
30 | */ | 30 | */ |
31 | [0 ... __NR_entry_INT80_compat_max] = &sys_ni_syscall, | 31 | [0 ... __NR_syscall_compat_max] = &sys_ni_syscall, |
32 | #include <asm/syscalls_32.h> | 32 | #include <asm/syscalls_32.h> |
33 | }; | 33 | }; |
diff --git a/arch/x86/kernel/asm-offsets_64.c b/arch/x86/kernel/asm-offsets_64.c index 599afcf0005f..d8f42f902a0f 100644 --- a/arch/x86/kernel/asm-offsets_64.c +++ b/arch/x86/kernel/asm-offsets_64.c | |||
@@ -66,7 +66,7 @@ int main(void) | |||
66 | DEFINE(__NR_syscall_max, sizeof(syscalls_64) - 1); | 66 | DEFINE(__NR_syscall_max, sizeof(syscalls_64) - 1); |
67 | DEFINE(NR_syscalls, sizeof(syscalls_64)); | 67 | DEFINE(NR_syscalls, sizeof(syscalls_64)); |
68 | 68 | ||
69 | DEFINE(__NR_entry_INT80_compat_max, sizeof(syscalls_ia32) - 1); | 69 | DEFINE(__NR_syscall_compat_max, sizeof(syscalls_ia32) - 1); |
70 | DEFINE(IA32_NR_syscalls, sizeof(syscalls_ia32)); | 70 | DEFINE(IA32_NR_syscalls, sizeof(syscalls_ia32)); |
71 | 71 | ||
72 | return 0; | 72 | return 0; |