Skip to content

Commit 17440f1

Browse files
author
Al Viro
committed
powerpc: get rid of restore_sigmask()
... it's just a call of set_current_blocked() now Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 77097ae commit 17440f1

4 files changed

Lines changed: 4 additions & 14 deletions

File tree

‎arch/powerpc/kernel/signal.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ void __user * get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
5151
return (void __user *)newsp;
5252
}
5353

54-
55-
/*
56-
* Restore the user process's signal mask
57-
*/
58-
void restore_sigmask(sigset_t *set)
59-
{
60-
set_current_blocked(set);
61-
}
62-
6354
static void check_syscall_restart(struct pt_regs *regs, struct k_sigaction *ka,
6455
int has_handler)
6556
{

‎arch/powerpc/kernel/signal.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ extern void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_fla
1414

1515
extern void __user * get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
1616
size_t frame_size, int is_32);
17-
extern void restore_sigmask(sigset_t *set);
1817

1918
extern int handle_signal32(unsigned long sig, struct k_sigaction *ka,
2019
siginfo_t *info, sigset_t *oldset,

‎arch/powerpc/kernel/signal_32.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int
919919
if (!access_ok(VERIFY_READ, mcp, sizeof(*mcp)))
920920
return -EFAULT;
921921
#endif
922-
restore_sigmask(&set);
922+
set_current_blocked(&set);
923923
if (restore_user_regs(regs, mcp, sig))
924924
return -EFAULT;
925925

@@ -1273,7 +1273,7 @@ long sys_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
12731273
set.sig[0] = sigctx.oldmask;
12741274
set.sig[1] = sigctx._unused[3];
12751275
#endif
1276-
restore_sigmask(&set);
1276+
set_current_blocked(&set);
12771277

12781278
sr = (struct mcontext __user *)from_user_ptr(sigctx.regs);
12791279
addr = sr;

‎arch/powerpc/kernel/signal_64.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ int sys_swapcontext(struct ucontext __user *old_ctx,
335335

336336
if (__copy_from_user(&set, &new_ctx->uc_sigmask, sizeof(set)))
337337
do_exit(SIGSEGV);
338-
restore_sigmask(&set);
338+
set_current_blocked(&set);
339339
if (restore_sigcontext(regs, NULL, 0, &new_ctx->uc_mcontext))
340340
do_exit(SIGSEGV);
341341

@@ -364,7 +364,7 @@ int sys_rt_sigreturn(unsigned long r3, unsigned long r4, unsigned long r5,
364364

365365
if (__copy_from_user(&set, &uc->uc_sigmask, sizeof(set)))
366366
goto badframe;
367-
restore_sigmask(&set);
367+
set_current_blocked(&set);
368368
if (restore_sigcontext(regs, NULL, 1, &uc->uc_mcontext))
369369
goto badframe;
370370

0 commit comments

Comments
 (0)