diff options
Diffstat (limited to 'include/asm-powerpc/unistd.h')
-rw-r--r-- | include/asm-powerpc/unistd.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/asm-powerpc/unistd.h b/include/asm-powerpc/unistd.h index 908acb44cb8a..9e2c9e1c1239 100644 --- a/include/asm-powerpc/unistd.h +++ b/include/asm-powerpc/unistd.h | |||
@@ -322,12 +322,12 @@ | |||
322 | #define __NR_fchmodat 297 | 322 | #define __NR_fchmodat 297 |
323 | #define __NR_faccessat 298 | 323 | #define __NR_faccessat 298 |
324 | 324 | ||
325 | #ifdef __KERNEL__ | ||
326 | |||
325 | #define __NR_syscalls 299 | 327 | #define __NR_syscalls 299 |
326 | 328 | ||
327 | #ifdef __KERNEL__ | ||
328 | #define __NR__exit __NR_exit | 329 | #define __NR__exit __NR_exit |
329 | #define NR_syscalls __NR_syscalls | 330 | #define NR_syscalls __NR_syscalls |
330 | #endif | ||
331 | 331 | ||
332 | #ifndef __ASSEMBLY__ | 332 | #ifndef __ASSEMBLY__ |
333 | 333 | ||
@@ -439,9 +439,7 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6 | |||
439 | __syscall_nr(6, type, name, arg1, arg2, arg3, arg4, arg5, arg6); \ | 439 | __syscall_nr(6, type, name, arg1, arg2, arg3, arg4, arg5, arg6); \ |
440 | } | 440 | } |
441 | 441 | ||
442 | #ifdef __KERNEL__ | ||
443 | 442 | ||
444 | #include <linux/config.h> | ||
445 | #include <linux/types.h> | 443 | #include <linux/types.h> |
446 | #include <linux/compiler.h> | 444 | #include <linux/compiler.h> |
447 | #include <linux/linkage.h> | 445 | #include <linux/linkage.h> |
@@ -497,8 +495,8 @@ extern int execve(const char *file, char **argv, char **envp); | |||
497 | #define cond_syscall(x) asm(".weak\t." #x "\n\t.set\t." #x ",.sys_ni_syscall") | 495 | #define cond_syscall(x) asm(".weak\t." #x "\n\t.set\t." #x ",.sys_ni_syscall") |
498 | #endif | 496 | #endif |
499 | 497 | ||
500 | #endif /* __KERNEL__ */ | ||
501 | 498 | ||
502 | #endif /* __ASSEMBLY__ */ | 499 | #endif /* __ASSEMBLY__ */ |
500 | #endif /* __KERNEL__ */ | ||
503 | 501 | ||
504 | #endif /* _ASM_PPC_UNISTD_H_ */ | 502 | #endif /* _ASM_PPC_UNISTD_H_ */ |