aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc/unistd.h')
-rw-r--r--include/asm-sparc/unistd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sparc/unistd.h b/include/asm-sparc/unistd.h
index 32a48f623e2b..7bd5a7dd6781 100644
--- a/include/asm-sparc/unistd.h
+++ b/include/asm-sparc/unistd.h
@@ -317,6 +317,7 @@
317#define __NR_ppoll 298 317#define __NR_ppoll 298
318#define __NR_unshare 299 318#define __NR_unshare 299
319 319
320#ifdef __KERNEL__
320/* WARNING: You MAY NOT add syscall numbers larger than 299, since 321/* WARNING: You MAY NOT add syscall numbers larger than 299, since
321 * all of the syscall tables in the Sparc kernel are 322 * all of the syscall tables in the Sparc kernel are
322 * sized to have 299 entries (starting at zero). Therefore 323 * sized to have 299 entries (starting at zero). Therefore
@@ -453,7 +454,6 @@ errno = -__res; \
453return -1; \ 454return -1; \
454} 455}
455 456
456#ifdef __KERNEL__
457#define __ARCH_WANT_IPC_PARSE_VERSION 457#define __ARCH_WANT_IPC_PARSE_VERSION
458#define __ARCH_WANT_OLD_READDIR 458#define __ARCH_WANT_OLD_READDIR
459#define __ARCH_WANT_STAT64 459#define __ARCH_WANT_STAT64
@@ -475,7 +475,6 @@ return -1; \
475#define __ARCH_WANT_SYS_SIGPENDING 475#define __ARCH_WANT_SYS_SIGPENDING
476#define __ARCH_WANT_SYS_SIGPROCMASK 476#define __ARCH_WANT_SYS_SIGPROCMASK
477#define __ARCH_WANT_SYS_RT_SIGSUSPEND 477#define __ARCH_WANT_SYS_RT_SIGSUSPEND
478#endif
479 478
480#ifdef __KERNEL_SYSCALLS__ 479#ifdef __KERNEL_SYSCALLS__
481 480
@@ -532,4 +531,5 @@ asmlinkage long sys_rt_sigaction(int sig,
532 */ 531 */
533#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") 532#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
534 533
534#endif /* __KERNEL__ */
535#endif /* _SPARC_UNISTD_H */ 535#endif /* _SPARC_UNISTD_H */