Skip to content

Commit

Permalink
Mark __die() "noreturn" for real.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
Maciej W. Rozycki authored and ralfbaechle committed Oct 29, 2005
1 parent 778220f commit 260c967
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,9 @@ void show_registers(struct pt_regs *regs)

static DEFINE_SPINLOCK(die_lock);

NORET_TYPE void __die(const char * str, struct pt_regs * regs,
const char * file, const char * func, unsigned long line)
NORET_TYPE void ATTRIB_NORET __die(const char * str, struct pt_regs * regs,
const char * file, const char * func,
unsigned long line)
{
static int die_counter;

Expand Down
2 changes: 1 addition & 1 deletion include/asm-mips/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ extern void *set_except_vector(int n, void *addr);
extern void per_cpu_trap_init(void);

extern NORET_TYPE void __die(const char *, struct pt_regs *, const char *file,
const char *func, unsigned long line);
const char *func, unsigned long line) ATTRIB_NORET;
extern void __die_if_kernel(const char *, struct pt_regs *, const char *file,
const char *func, unsigned long line);

Expand Down

0 comments on commit 260c967

Please sign in to comment.