diff options
Diffstat (limited to 'kernel/sys_ni.c')
-rw-r--r-- | kernel/sys_ni.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c index 6cafc008f6db..9791364925dc 100644 --- a/kernel/sys_ni.c +++ b/kernel/sys_ni.c | |||
@@ -5,6 +5,11 @@ | |||
5 | 5 | ||
6 | #include <asm/unistd.h> | 6 | #include <asm/unistd.h> |
7 | 7 | ||
8 | #ifdef CONFIG_ARCH_HAS_SYSCALL_WRAPPER | ||
9 | /* Architectures may override COND_SYSCALL and COND_SYSCALL_COMPAT */ | ||
10 | #include <asm/syscall_wrapper.h> | ||
11 | #endif /* CONFIG_ARCH_HAS_SYSCALL_WRAPPER */ | ||
12 | |||
8 | /* we can't #include <linux/syscalls.h> here, | 13 | /* we can't #include <linux/syscalls.h> here, |
9 | but tell gcc to not warn with -Wmissing-prototypes */ | 14 | but tell gcc to not warn with -Wmissing-prototypes */ |
10 | asmlinkage long sys_ni_syscall(void); | 15 | asmlinkage long sys_ni_syscall(void); |
@@ -17,8 +22,13 @@ asmlinkage long sys_ni_syscall(void) | |||
17 | return -ENOSYS; | 22 | return -ENOSYS; |
18 | } | 23 | } |
19 | 24 | ||
25 | #ifndef COND_SYSCALL | ||
20 | #define COND_SYSCALL(name) cond_syscall(sys_##name) | 26 | #define COND_SYSCALL(name) cond_syscall(sys_##name) |
27 | #endif /* COND_SYSCALL */ | ||
28 | |||
29 | #ifndef COND_SYSCALL_COMPAT | ||
21 | #define COND_SYSCALL_COMPAT(name) cond_syscall(compat_sys_##name) | 30 | #define COND_SYSCALL_COMPAT(name) cond_syscall(compat_sys_##name) |
31 | #endif /* COND_SYSCALL_COMPAT */ | ||
22 | 32 | ||
23 | /* | 33 | /* |
24 | * This list is kept in the same order as include/uapi/asm-generic/unistd.h. | 34 | * This list is kept in the same order as include/uapi/asm-generic/unistd.h. |