Skip to content

Commit

Permalink
[MIPS] die(): Properly declare as non-returning
Browse files Browse the repository at this point in the history
 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>
  • Loading branch information
Maciej W. Rozycki authored and Ralf Baechle committed Jul 4, 2007
1 parent ab012eb commit eaf2b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-mips/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit eaf2b8d

Please sign in to comment.