diff options
Diffstat (limited to 'include/asm-mips/unistd.h')
-rw-r--r-- | include/asm-mips/unistd.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index 1068fe9a0a58..8bb0bb9b2e68 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h | |||
@@ -905,6 +905,8 @@ | |||
905 | #define __NR_N32_Linux 6000 | 905 | #define __NR_N32_Linux 6000 |
906 | #define __NR_N32_Linux_syscalls 268 | 906 | #define __NR_N32_Linux_syscalls 268 |
907 | 907 | ||
908 | #ifdef __KERNEL__ | ||
909 | |||
908 | #ifndef __ASSEMBLY__ | 910 | #ifndef __ASSEMBLY__ |
909 | 911 | ||
910 | /* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */ | 912 | /* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */ |
@@ -1168,9 +1170,6 @@ type name (atype a,btype b,ctype c,dtype d,etype e,ftype f) \ | |||
1168 | 1170 | ||
1169 | #endif /* (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64) */ | 1171 | #endif /* (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64) */ |
1170 | 1172 | ||
1171 | #ifdef __KERNEL__ | ||
1172 | |||
1173 | #include <linux/config.h> | ||
1174 | 1173 | ||
1175 | #define __ARCH_WANT_IPC_PARSE_VERSION | 1174 | #define __ARCH_WANT_IPC_PARSE_VERSION |
1176 | #define __ARCH_WANT_OLD_READDIR | 1175 | #define __ARCH_WANT_OLD_READDIR |
@@ -1197,7 +1196,6 @@ type name (atype a,btype b,ctype c,dtype d,etype e,ftype f) \ | |||
1197 | # ifdef CONFIG_MIPS32_O32 | 1196 | # ifdef CONFIG_MIPS32_O32 |
1198 | # define __ARCH_WANT_COMPAT_SYS_TIME | 1197 | # define __ARCH_WANT_COMPAT_SYS_TIME |
1199 | # endif | 1198 | # endif |
1200 | #endif | ||
1201 | 1199 | ||
1202 | #ifdef __KERNEL_SYSCALLS__ | 1200 | #ifdef __KERNEL_SYSCALLS__ |
1203 | 1201 | ||
@@ -1248,4 +1246,5 @@ asmlinkage long sys_rt_sigaction(int sig, | |||
1248 | */ | 1246 | */ |
1249 | #define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall") | 1247 | #define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall") |
1250 | 1248 | ||
1249 | #endif /* __KERNEL__ */ | ||
1251 | #endif /* _ASM_UNISTD_H */ | 1250 | #endif /* _ASM_UNISTD_H */ |