]> git.hungrycats.org Git - linux/commitdiff
ppc64: Someone removed NR_syscalls from <linux/sys.h>
authorAndrew Morton <akpm@digeo.com>
Sat, 22 Feb 2003 01:51:06 +0000 (12:51 +1100)
committerAnton Blanchard <anton@samba.org>
Sat, 22 Feb 2003 01:51:06 +0000 (12:51 +1100)
arch/ppc64/kernel/entry.S
include/asm-ppc64/unistd.h

index 18c7c84b207a1bac105925fe164529fb77605358..afab364535eafd9b66961efee28f1b3db4e2bad0 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <linux/config.h>
 #include <linux/errno.h>
-#include <linux/sys.h>
+#include <asm/unistd.h>
 #include <asm/processor.h>
 #include <asm/page.h>
 #include <asm/mmu.h>
index 249347ee12d2cc9891d3ffc368b7d7c0e4b708d7..f4d465ae4f173c851cc450f9c5142418d1ede7ce 100644 (file)
 #define __NR_sys_epoll_wait    238
 #define __NR_remap_file_pages  239
 
+#define NR_syscalls            260
+
+#ifndef __ASSEMBLY__
 #ifdef __KERNEL_SYSCALLS__
 
 /*
@@ -284,4 +287,6 @@ extern pid_t waitpid(pid_t pid, int *wait_stat, int options);
  */
 #define cond_syscall(x) asm(".weak\t." #x "\n\t.set\t." #x ",.sys_ni_syscall");
 
+#endif         /* __ASSEMBLY__ */
+
 #endif /* _ASM_PPC_UNISTD_H_ */