diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2007-05-29 10:03:56 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-07-04 10:53:15 -0400 |
commit | eaf2b8dca47cc1d4ca7fd83f37604e0f5478b33a (patch) | |
tree | 868b6f82d74630e468bd076151279924f583536c | |
parent | ab012ebf9ebb5f3392e74c1666e7473b8567aeb0 (diff) |
[MIPS] die(): Properly declare as non-returning
This marks the declaration of die() correctly, removing "control reaches
end of non-void function" warnings from non-void functions that die() at
the end.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | include/asm-mips/ptrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-mips/ptrace.h b/include/asm-mips/ptrace.h index 1906938285c0..85b44366343a 100644 --- a/include/asm-mips/ptrace.h +++ b/include/asm-mips/ptrace.h | |||
@@ -86,7 +86,7 @@ struct pt_regs { | |||
86 | 86 | ||
87 | extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit); | 87 | extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit); |
88 | 88 | ||
89 | extern NORET_TYPE void die(const char *, struct pt_regs *); | 89 | extern NORET_TYPE void die(const char *, struct pt_regs *) ATTRIB_NORET; |
90 | 90 | ||
91 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) | 91 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) |
92 | { | 92 | { |