diff options
-rw-r--r-- | arch/mips/kernel/linux32.c | 31 | ||||
-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, 33 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index b701ecb47cbd..30d433f14f93 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c | |||
@@ -544,37 +544,6 @@ asmlinkage long sys32_sync_file_range(int fd, int __pad, | |||
544 | flags); | 544 | flags); |
545 | } | 545 | } |
546 | 546 | ||
547 | struct sigevent32 { | ||
548 | u32 sigev_value; | ||
549 | u32 sigev_signo; | ||
550 | u32 sigev_notify; | ||
551 | u32 payload[(64 / 4) - 3]; | ||
552 | }; | ||
553 | |||
554 | extern asmlinkage long | ||
555 | sys_timer_create(clockid_t which_clock, | ||
556 | struct sigevent __user *timer_event_spec, | ||
557 | timer_t __user * created_timer_id); | ||
558 | |||
559 | long | ||
560 | sys32_timer_create(u32 clock, struct sigevent32 __user *se32, timer_t __user *timer_id) | ||
561 | { | ||
562 | struct sigevent __user *p = NULL; | ||
563 | if (se32) { | ||
564 | struct sigevent se; | ||
565 | p = compat_alloc_user_space(sizeof(struct sigevent)); | ||
566 | memset(&se, 0, sizeof(struct sigevent)); | ||
567 | if (get_user(se.sigev_value.sival_int, &se32->sigev_value) || | ||
568 | __get_user(se.sigev_signo, &se32->sigev_signo) || | ||
569 | __get_user(se.sigev_notify, &se32->sigev_notify) || | ||
570 | __copy_from_user(&se._sigev_un._pad, &se32->payload, | ||
571 | sizeof(se32->payload)) || | ||
572 | copy_to_user(p, &se, sizeof(se))) | ||
573 | return -EFAULT; | ||
574 | } | ||
575 | return sys_timer_create(clock, p, timer_id); | ||
576 | } | ||
577 | |||
578 | save_static_function(sys32_clone); | 547 | save_static_function(sys32_clone); |
579 | __attribute_used__ noinline static int | 548 | __attribute_used__ noinline static int |
580 | _sys32_clone(nabi_no_regargs struct pt_regs regs) | 549 | _sys32_clone(nabi_no_regargs struct pt_regs regs) |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index dedc9070bc62..f17e31e3bff2 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -340,7 +340,7 @@ EXPORT(sysn32_call_table) | |||
340 | PTR compat_sys_statfs64 | 340 | PTR compat_sys_statfs64 |
341 | PTR compat_sys_fstatfs64 | 341 | PTR compat_sys_fstatfs64 |
342 | PTR sys_sendfile64 | 342 | PTR sys_sendfile64 |
343 | PTR sys32_timer_create /* 6220 */ | 343 | PTR compat_sys_timer_create /* 6220 */ |
344 | PTR compat_sys_timer_settime | 344 | PTR compat_sys_timer_settime |
345 | PTR compat_sys_timer_gettime | 345 | PTR compat_sys_timer_gettime |
346 | PTR sys_timer_getoverrun | 346 | PTR sys_timer_getoverrun |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 70e223352fe2..142c9b70c026 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -462,7 +462,7 @@ sys_call_table: | |||
462 | PTR sys_fadvise64_64 | 462 | PTR sys_fadvise64_64 |
463 | PTR compat_sys_statfs64 /* 4255 */ | 463 | PTR compat_sys_statfs64 /* 4255 */ |
464 | PTR compat_sys_fstatfs64 | 464 | PTR compat_sys_fstatfs64 |
465 | PTR sys32_timer_create | 465 | PTR compat_sys_timer_create |
466 | PTR compat_sys_timer_settime | 466 | PTR compat_sys_timer_settime |
467 | PTR compat_sys_timer_gettime | 467 | PTR compat_sys_timer_gettime |
468 | PTR sys_timer_getoverrun /* 4260 */ | 468 | PTR sys_timer_getoverrun /* 4260 */ |