From: Mike Frysinger This brings x86_64 into line with all other architectures by only defining cond_syscall() when __KERNEL__ is defined. Signed-off-by: Mike Frysinger Signed-off-by: Andrew Morton --- include/asm-x86_64/unistd.h | 2 ++ 1 file changed, 2 insertions(+) diff -puN include/asm-x86_64/unistd.h~x86_64-hide-cond_syscall-behind-__kernel__ include/asm-x86_64/unistd.h --- a/include/asm-x86_64/unistd.h~x86_64-hide-cond_syscall-behind-__kernel__ +++ a/include/asm-x86_64/unistd.h @@ -676,6 +676,7 @@ asmlinkage long sys_rt_sigaction(int sig #endif /* __KERNEL__ */ #endif /* __NO_STUBS */ +#ifdef __KERNEL__ /* * "Conditional" syscalls * @@ -683,5 +684,6 @@ asmlinkage long sys_rt_sigaction(int sig * but it doesn't work on all toolchains, so we just do it by hand */ #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") +#endif /* __KERNEL__ */ #endif /* _ASM_X86_64_UNISTD_H_ */ _