aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/signal32.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/signal32.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/signal32.c')
-rw-r--r--arch/mips/kernel/signal32.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c
index da1b56a39ac7..cae0b0e42a53 100644
--- a/arch/mips/kernel/signal32.c
+++ b/arch/mips/kernel/signal32.c
@@ -48,7 +48,7 @@ extern asmlinkage int fpu_emulator_restore_context32(struct sigcontext32 __user
48/* 48/*
49 * Including <asm/unistd.h> would give use the 64-bit syscall numbers ... 49 * Including <asm/unistd.h> would give use the 64-bit syscall numbers ...
50 */ 50 */
51#define __NR_O32_restart_syscall 4253 51#define __NR_O32_restart_syscall 4253
52 52
53/* 32-bit compatibility types */ 53/* 32-bit compatibility types */
54 54
@@ -69,11 +69,11 @@ typedef struct sigaltstack32 {
69} stack32_t; 69} stack32_t;
70 70
71struct ucontext32 { 71struct ucontext32 {
72 u32 uc_flags; 72 u32 uc_flags;
73 s32 uc_link; 73 s32 uc_link;
74 stack32_t uc_stack; 74 stack32_t uc_stack;
75 struct sigcontext32 uc_mcontext; 75 struct sigcontext32 uc_mcontext;
76 compat_sigset_t uc_sigmask; /* mask last for extensibility */ 76 compat_sigset_t uc_sigmask; /* mask last for extensibility */
77}; 77};
78 78
79struct sigframe32 { 79struct sigframe32 {
@@ -338,7 +338,7 @@ SYSCALL_DEFINE3(32_sigaction, long, sig, const struct sigaction32 __user *, act,
338 return -EFAULT; 338 return -EFAULT;
339 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags); 339 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags);
340 err |= __put_user((u32)(u64)old_ka.sa.sa_handler, 340 err |= __put_user((u32)(u64)old_ka.sa.sa_handler,
341 &oact->sa_handler); 341 &oact->sa_handler);
342 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); 342 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig);
343 err |= __put_user(0, &oact->sa_mask.sig[1]); 343 err |= __put_user(0, &oact->sa_mask.sig[1]);
344 err |= __put_user(0, &oact->sa_mask.sig[2]); 344 err |= __put_user(0, &oact->sa_mask.sig[2]);
@@ -599,16 +599,16 @@ static int setup_rt_frame_32(void *sig_return, struct k_sigaction *ka,
599 /* Convert (siginfo_t -> compat_siginfo_t) and copy to user. */ 599 /* Convert (siginfo_t -> compat_siginfo_t) and copy to user. */
600 err |= copy_siginfo_to_user32(&frame->rs_info, info); 600 err |= copy_siginfo_to_user32(&frame->rs_info, info);
601 601
602 /* Create the ucontext. */ 602 /* Create the ucontext. */
603 err |= __put_user(0, &frame->rs_uc.uc_flags); 603 err |= __put_user(0, &frame->rs_uc.uc_flags);
604 err |= __put_user(0, &frame->rs_uc.uc_link); 604 err |= __put_user(0, &frame->rs_uc.uc_link);
605 sp = (int) (long) current->sas_ss_sp; 605 sp = (int) (long) current->sas_ss_sp;
606 err |= __put_user(sp, 606 err |= __put_user(sp,
607 &frame->rs_uc.uc_stack.ss_sp); 607 &frame->rs_uc.uc_stack.ss_sp);
608 err |= __put_user(sas_ss_flags(regs->regs[29]), 608 err |= __put_user(sas_ss_flags(regs->regs[29]),
609 &frame->rs_uc.uc_stack.ss_flags); 609 &frame->rs_uc.uc_stack.ss_flags);
610 err |= __put_user(current->sas_ss_size, 610 err |= __put_user(current->sas_ss_size,
611 &frame->rs_uc.uc_stack.ss_size); 611 &frame->rs_uc.uc_stack.ss_size);
612 err |= setup_sigcontext32(regs, &frame->rs_uc.uc_mcontext); 612 err |= setup_sigcontext32(regs, &frame->rs_uc.uc_mcontext);
613 err |= __copy_conv_sigset_to_user(&frame->rs_uc.uc_sigmask, set); 613 err |= __copy_conv_sigset_to_user(&frame->rs_uc.uc_sigmask, set);
614 614
@@ -650,7 +650,7 @@ struct mips_abi mips_abi_32 = {
650 .setup_frame = setup_frame_32, 650 .setup_frame = setup_frame_32,
651 .signal_return_offset = 651 .signal_return_offset =
652 offsetof(struct mips_vdso, o32_signal_trampoline), 652 offsetof(struct mips_vdso, o32_signal_trampoline),
653 .setup_rt_frame = setup_rt_frame_32, 653 .setup_rt_frame = setup_rt_frame_32,
654 .rt_signal_return_offset = 654 .rt_signal_return_offset =
655 offsetof(struct mips_vdso, o32_rt_signal_trampoline), 655 offsetof(struct mips_vdso, o32_rt_signal_trampoline),
656 .restart = __NR_O32_restart_syscall 656 .restart = __NR_O32_restart_syscall
@@ -690,7 +690,7 @@ SYSCALL_DEFINE4(32_rt_sigaction, int, sig,
690 return -EFAULT; 690 return -EFAULT;
691 691
692 err |= __put_user((u32)(u64)old_sa.sa.sa_handler, 692 err |= __put_user((u32)(u64)old_sa.sa.sa_handler,
693 &oact->sa_handler); 693 &oact->sa_handler);
694 err |= __put_user(old_sa.sa.sa_flags, &oact->sa_flags); 694 err |= __put_user(old_sa.sa.sa_flags, &oact->sa_flags);
695 err |= put_sigset(&old_sa.sa.sa_mask, &oact->sa_mask); 695 err |= put_sigset(&old_sa.sa.sa_mask, &oact->sa_mask);
696 if (err) 696 if (err)