[MIPS] Replace sys32_timer_create with the generic compat_sys_timer_create.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+2 -33
-31
arch/mips/kernel/linux32.c
··· 544 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 547 save_static_function(sys32_clone); 579 548 __attribute_used__ noinline static int 580 549 _sys32_clone(nabi_no_regargs struct pt_regs regs)
+1 -1
arch/mips/kernel/scall64-n32.S
··· 340 340 PTR compat_sys_statfs64 341 341 PTR compat_sys_fstatfs64 342 342 PTR sys_sendfile64 343 - PTR sys32_timer_create /* 6220 */ 343 + PTR compat_sys_timer_create /* 6220 */ 344 344 PTR compat_sys_timer_settime 345 345 PTR compat_sys_timer_gettime 346 346 PTR sys_timer_getoverrun
+1 -1
arch/mips/kernel/scall64-o32.S
··· 462 462 PTR sys_fadvise64_64 463 463 PTR compat_sys_statfs64 /* 4255 */ 464 464 PTR compat_sys_fstatfs64 465 - PTR sys32_timer_create 465 + PTR compat_sys_timer_create 466 466 PTR compat_sys_timer_settime 467 467 PTR compat_sys_timer_gettime 468 468 PTR sys_timer_getoverrun /* 4260 */