Commit 40ac5d479b7deb98f6ccc4a7a29ee62dba7a798f

Authored by Ralf Baechle
1 parent 7b3e2fc847

[MIPS] Make do_signal return void.

It's return value is ignored everywhere.

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

---

Showing 3 changed files with 6 additions and 7 deletions Side-by-side Diff

arch/mips/kernel/process.c
... ... @@ -4,6 +4,7 @@
4 4 * for more details.
5 5 *
6 6 * Copyright (C) 1994 - 1999, 2000 by Ralf Baechle and others.
  7 + * Copyright (C) 2005, 2006 by Ralf Baechle (ralf@linux-mips.org)
7 8 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
8 9 * Copyright (C) 2004 Thiemo Seufer
9 10 */
... ... @@ -58,8 +59,8 @@
58 59 }
59 60 }
60 61  
61   -extern int do_signal(struct pt_regs *regs);
62   -extern int do_signal32(struct pt_regs *regs);
  62 +extern void do_signal(struct pt_regs *regs);
  63 +extern void do_signal32(struct pt_regs *regs);
63 64  
64 65 /*
65 66 * Native o32 and N64 ABI without DSP ASE
arch/mips/kernel/signal.c
... ... @@ -410,7 +410,7 @@
410 410 return ret;
411 411 }
412 412  
413   -int do_signal(struct pt_regs *regs)
  413 +void do_signal(struct pt_regs *regs)
414 414 {
415 415 struct k_sigaction ka;
416 416 sigset_t *oldset;
... ... @@ -423,7 +423,7 @@
423 423 * if so.
424 424 */
425 425 if (!user_mode(regs))
426   - return 1;
  426 + return;
427 427  
428 428 if (try_to_freeze())
429 429 goto no_signal;
... ... @@ -477,8 +477,6 @@
477 477 clear_thread_flag(TIF_RESTORE_SIGMASK);
478 478 sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
479 479 }
480   -
481   - return 0;
482 480 }
483 481  
484 482 /*
include/asm-mips/abi.h
... ... @@ -13,7 +13,7 @@
13 13 #include <asm/siginfo.h>
14 14  
15 15 struct mips_abi {
16   - int (* const do_signal)(struct pt_regs *regs);
  16 + void (* const do_signal)(struct pt_regs *regs);
17 17 int (* const setup_frame)(struct k_sigaction * ka,
18 18 struct pt_regs *regs, int signr,
19 19 sigset_t *set);