From: Maciej W. Rozycki Date: Tue, 29 May 2007 14:03:56 +0000 (+0100) Subject: [MIPS] die(): Properly declare as non-returning X-Git-Tag: v2.6.22~27^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaf2b8dca47cc1d4ca7fd83f37604e0f5478b33a;p=linux-2.6 [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 Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/ptrace.h b/include/asm-mips/ptrace.h index 1906938285..85b4436634 100644 --- a/include/asm-mips/ptrace.h +++ b/include/asm-mips/ptrace.h @@ -86,7 +86,7 @@ struct pt_regs { extern asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit); -extern NORET_TYPE void die(const char *, struct pt_regs *); +extern NORET_TYPE void die(const char *, struct pt_regs *) ATTRIB_NORET; static inline void die_if_kernel(const char *str, struct pt_regs *regs) {