aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/scall64-o32.S2
-rw-r--r--arch/mips/kernel/signal32.c26
2 files changed, 1 insertions, 27 deletions
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
index 07fcd818ad3a..058a6c1e00a1 100644
--- a/arch/mips/kernel/scall64-o32.S
+++ b/arch/mips/kernel/scall64-o32.S
@@ -470,7 +470,7 @@ sys_call_table:
470 PTR compat_sys_mq_notify /* 4275 */ 470 PTR compat_sys_mq_notify /* 4275 */
471 PTR compat_sys_mq_getsetattr 471 PTR compat_sys_mq_getsetattr
472 PTR sys_ni_syscall /* sys_vserver */ 472 PTR sys_ni_syscall /* sys_vserver */
473 PTR sys_32_waitid 473 PTR compat_sys_waitid
474 PTR sys_ni_syscall /* available, was setaltroot */ 474 PTR sys_ni_syscall /* available, was setaltroot */
475 PTR sys_add_key /* 4280 */ 475 PTR sys_add_key /* 4280 */
476 PTR sys_request_key 476 PTR sys_request_key
diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c
index c51e5df4297b..bb3ec6f0863e 100644
--- a/arch/mips/kernel/signal32.c
+++ b/arch/mips/kernel/signal32.c
@@ -686,32 +686,6 @@ SYSCALL_DEFINE3(32_rt_sigqueueinfo, int, pid, int, sig,
686 return ret; 686 return ret;
687} 687}
688 688
689SYSCALL_DEFINE5(32_waitid, int, which, compat_pid_t, pid,
690 compat_siginfo_t __user *, uinfo, int, options,
691 struct compat_rusage __user *, uru)
692{
693 siginfo_t info;
694 struct rusage ru;
695 long ret;
696 mm_segment_t old_fs = get_fs();
697
698 info.si_signo = 0;
699 set_fs(KERNEL_DS);
700 ret = sys_waitid(which, pid, (siginfo_t __user *) &info, options,
701 uru ? (struct rusage __user *) &ru : NULL);
702 set_fs(old_fs);
703
704 if (ret < 0 || info.si_signo == 0)
705 return ret;
706
707 if (uru && (ret = put_compat_rusage(&ru, uru)))
708 return ret;
709
710 BUG_ON(info.si_code & __SI_MASK);
711 info.si_code |= __SI_CHLD;
712 return copy_siginfo_to_user32(uinfo, &info);
713}
714
715static int signal32_init(void) 689static int signal32_init(void)
716{ 690{
717 if (cpu_has_fpu) { 691 if (cpu_has_fpu) {