aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/signal.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-01-22 06:59:30 -0500
committerRalf Baechle <ralf@linux-mips.org>2013-02-01 04:00:22 -0500
commit7034228792cc561e79ff8600f02884bd4c80e287 (patch)
tree89b77af37d087d9de236fc5d21f60bf552d0a2c6 /arch/mips/kernel/signal.c
parent405ab01c70e18058d9c01a1256769a61fc65413e (diff)
MIPS: Whitespace cleanup.
Having received another series of whitespace patches I decided to do this once and for all rather than dealing with this kind of patches trickling in forever. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/signal.c')
-rw-r--r--arch/mips/kernel/signal.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c
index b6aa77035019..0f57e06b7fdd 100644
--- a/arch/mips/kernel/signal.c
+++ b/arch/mips/kernel/signal.c
@@ -445,7 +445,7 @@ give_sigsegv:
445#endif 445#endif
446 446
447static int setup_rt_frame(void *sig_return, struct k_sigaction *ka, 447static int setup_rt_frame(void *sig_return, struct k_sigaction *ka,
448 struct pt_regs *regs, int signr, sigset_t *set, 448 struct pt_regs *regs, int signr, sigset_t *set,
449 siginfo_t *info) 449 siginfo_t *info)
450{ 450{
451 struct rt_sigframe __user *frame; 451 struct rt_sigframe __user *frame;
@@ -458,15 +458,15 @@ static int setup_rt_frame(void *sig_return, struct k_sigaction *ka,
458 /* Create siginfo. */ 458 /* Create siginfo. */
459 err |= copy_siginfo_to_user(&frame->rs_info, info); 459 err |= copy_siginfo_to_user(&frame->rs_info, info);
460 460
461 /* Create the ucontext. */ 461 /* Create the ucontext. */
462 err |= __put_user(0, &frame->rs_uc.uc_flags); 462 err |= __put_user(0, &frame->rs_uc.uc_flags);
463 err |= __put_user(NULL, &frame->rs_uc.uc_link); 463 err |= __put_user(NULL, &frame->rs_uc.uc_link);
464 err |= __put_user((void __user *)current->sas_ss_sp, 464 err |= __put_user((void __user *)current->sas_ss_sp,
465 &frame->rs_uc.uc_stack.ss_sp); 465 &frame->rs_uc.uc_stack.ss_sp);
466 err |= __put_user(sas_ss_flags(regs->regs[29]), 466 err |= __put_user(sas_ss_flags(regs->regs[29]),
467 &frame->rs_uc.uc_stack.ss_flags); 467 &frame->rs_uc.uc_stack.ss_flags);
468 err |= __put_user(current->sas_ss_size, 468 err |= __put_user(current->sas_ss_size,
469 &frame->rs_uc.uc_stack.ss_size); 469 &frame->rs_uc.uc_stack.ss_size);
470 err |= setup_sigcontext(regs, &frame->rs_uc.uc_mcontext); 470 err |= setup_sigcontext(regs, &frame->rs_uc.uc_mcontext);
471 err |= __copy_to_user(&frame->rs_uc.uc_sigmask, set, sizeof(*set)); 471 err |= __copy_to_user(&frame->rs_uc.uc_sigmask, set, sizeof(*set));
472 472
@@ -506,7 +506,7 @@ struct mips_abi mips_abi = {
506 .setup_frame = setup_frame, 506 .setup_frame = setup_frame,
507 .signal_return_offset = offsetof(struct mips_vdso, signal_trampoline), 507 .signal_return_offset = offsetof(struct mips_vdso, signal_trampoline),
508#endif 508#endif
509 .setup_rt_frame = setup_rt_frame, 509 .setup_rt_frame = setup_rt_frame,
510 .rt_signal_return_offset = 510 .rt_signal_return_offset =
511 offsetof(struct mips_vdso, rt_signal_trampoline), 511 offsetof(struct mips_vdso, rt_signal_trampoline),
512 .restart = __NR_restart_syscall 512 .restart = __NR_restart_syscall
@@ -538,7 +538,7 @@ static void handle_signal(unsigned long sig, siginfo_t *info,
538 regs->cp0_epc -= 4; 538 regs->cp0_epc -= 4;
539 } 539 }
540 540
541 regs->regs[0] = 0; /* Don't deal with this again. */ 541 regs->regs[0] = 0; /* Don't deal with this again. */
542 } 542 }
543 543
544 if (sig_uses_siginfo(ka)) 544 if (sig_uses_siginfo(ka))
@@ -562,7 +562,7 @@ static void do_signal(struct pt_regs *regs)
562 562
563 signr = get_signal_to_deliver(&info, &ka, regs, NULL); 563 signr = get_signal_to_deliver(&info, &ka, regs, NULL);
564 if (signr > 0) { 564 if (signr > 0) {
565 /* Whee! Actually deliver the signal. */ 565 /* Whee! Actually deliver the signal. */
566 handle_signal(signr, &info, &ka, regs); 566 handle_signal(signr, &info, &ka, regs);
567 return; 567 return;
568 } 568 }
@@ -583,7 +583,7 @@ static void do_signal(struct pt_regs *regs)
583 regs->cp0_epc -= 4; 583 regs->cp0_epc -= 4;
584 break; 584 break;
585 } 585 }
586 regs->regs[0] = 0; /* Don't deal with this again. */ 586 regs->regs[0] = 0; /* Don't deal with this again. */
587 } 587 }
588 588
589 /* 589 /*