Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6704ab1c authored by Mike Frysinger's avatar Mike Frysinger Committed by Thomas Gleixner
Browse files

x86: hide cond_syscall behind __KERNEL__



This brings x86_64 into line with all other architectures by only defining
cond_syscall() when __KERNEL__ is defined.

[ tglx: arch/x86 adaptation ]

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 96d55358
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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_ */