aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86_64/unistd.h')
-rw-r--r--include/asm-x86_64/unistd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/asm-x86_64/unistd.h b/include/asm-x86_64/unistd.h
index feb77cb8c044..0aff22bdbb21 100644
--- a/include/asm-x86_64/unistd.h
+++ b/include/asm-x86_64/unistd.h
@@ -618,6 +618,8 @@ __SYSCALL(__NR_sync_file_range, sys_sync_file_range)
618#define __NR_vmsplice 278 618#define __NR_vmsplice 278
619__SYSCALL(__NR_vmsplice, sys_vmsplice) 619__SYSCALL(__NR_vmsplice, sys_vmsplice)
620 620
621#ifdef __KERNEL__
622
621#define __NR_syscall_max __NR_vmsplice 623#define __NR_syscall_max __NR_vmsplice
622 624
623#ifndef __NO_STUBS 625#ifndef __NO_STUBS
@@ -635,7 +637,6 @@ do { \
635 return (type) (res); \ 637 return (type) (res); \
636} while (0) 638} while (0)
637 639
638#ifdef __KERNEL__
639#define __ARCH_WANT_OLD_READDIR 640#define __ARCH_WANT_OLD_READDIR
640#define __ARCH_WANT_OLD_STAT 641#define __ARCH_WANT_OLD_STAT
641#define __ARCH_WANT_SYS_ALARM 642#define __ARCH_WANT_SYS_ALARM
@@ -657,7 +658,6 @@ do { \
657#define __ARCH_WANT_SYS_RT_SIGACTION 658#define __ARCH_WANT_SYS_RT_SIGACTION
658#define __ARCH_WANT_SYS_TIME 659#define __ARCH_WANT_SYS_TIME
659#define __ARCH_WANT_COMPAT_SYS_TIME 660#define __ARCH_WANT_COMPAT_SYS_TIME
660#endif
661 661
662#ifndef __KERNEL_SYSCALLS__ 662#ifndef __KERNEL_SYSCALLS__
663 663
@@ -821,7 +821,7 @@ asmlinkage long sys_pipe(int *fildes);
821 821
822#endif /* __KERNEL_SYSCALLS__ */ 822#endif /* __KERNEL_SYSCALLS__ */
823 823
824#if !defined(__ASSEMBLY__) && defined(__KERNEL__) 824#ifndef __ASSEMBLY__
825 825
826#include <linux/linkage.h> 826#include <linux/linkage.h>
827#include <linux/compiler.h> 827#include <linux/compiler.h>
@@ -848,4 +848,5 @@ asmlinkage long sys_rt_sigaction(int sig,
848 */ 848 */
849#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") 849#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
850 850
851#endif /* __KERNEL__ */
851#endif 852#endif