diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/linux32.c | 20 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-n32.S | 2 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-o32.S | 2 |
3 files changed, 2 insertions, 22 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index 8eeee1c860c0..b0cc2a7df59f 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c | |||
@@ -226,26 +226,6 @@ SYSCALL_DEFINE1(32_personality, unsigned long, personality) | |||
226 | return ret; | 226 | return ret; |
227 | } | 227 | } |
228 | 228 | ||
229 | SYSCALL_DEFINE4(32_sendfile, long, out_fd, long, in_fd, | ||
230 | compat_off_t __user *, offset, s32, count) | ||
231 | { | ||
232 | mm_segment_t old_fs = get_fs(); | ||
233 | int ret; | ||
234 | off_t of; | ||
235 | |||
236 | if (offset && get_user(of, offset)) | ||
237 | return -EFAULT; | ||
238 | |||
239 | set_fs(KERNEL_DS); | ||
240 | ret = sys_sendfile(out_fd, in_fd, offset ? (off_t __user *)&of : NULL, count); | ||
241 | set_fs(old_fs); | ||
242 | |||
243 | if (offset && put_user(of, offset)) | ||
244 | return -EFAULT; | ||
245 | |||
246 | return ret; | ||
247 | } | ||
248 | |||
249 | asmlinkage ssize_t sys32_readahead(int fd, u32 pad0, u64 a2, u64 a3, | 229 | asmlinkage ssize_t sys32_readahead(int fd, u32 pad0, u64 a2, u64 a3, |
250 | size_t count) | 230 | size_t count) |
251 | { | 231 | { |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 693d60b0855f..9b4df498fc5b 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -143,7 +143,7 @@ EXPORT(sysn32_call_table) | |||
143 | PTR compat_sys_setitimer | 143 | PTR compat_sys_setitimer |
144 | PTR sys_alarm | 144 | PTR sys_alarm |
145 | PTR sys_getpid | 145 | PTR sys_getpid |
146 | PTR sys_32_sendfile | 146 | PTR compat_sys_sendfile |
147 | PTR sys_socket /* 6040 */ | 147 | PTR sys_socket /* 6040 */ |
148 | PTR sys_connect | 148 | PTR sys_connect |
149 | PTR sys_accept | 149 | PTR sys_accept |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index af8887f779f1..c1a70e805751 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -399,7 +399,7 @@ sys_call_table: | |||
399 | PTR sys_capget | 399 | PTR sys_capget |
400 | PTR sys_capset /* 4205 */ | 400 | PTR sys_capset /* 4205 */ |
401 | PTR compat_sys_sigaltstack | 401 | PTR compat_sys_sigaltstack |
402 | PTR sys_32_sendfile | 402 | PTR compat_sys_sendfile |
403 | PTR sys_ni_syscall | 403 | PTR sys_ni_syscall |
404 | PTR sys_ni_syscall | 404 | PTR sys_ni_syscall |
405 | PTR sys_mips_mmap2 /* 4210 */ | 405 | PTR sys_mips_mmap2 /* 4210 */ |