metag/traps: Mark die() as __noreturn to match the declaration.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
This commit is contained in:
Markos Chandras 2013-05-09 09:42:46 +01:00 committed by James Hogan
parent dca66a61cb
commit b79e88e55d
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@
struct pt_regs; struct pt_regs;
extern const char *trap_name(int trapno); extern const char *trap_name(int trapno);
extern void die(const char *str, struct pt_regs *regs, long err, extern void __noreturn die(const char *str, struct pt_regs *regs, long err,
unsigned long addr) __attribute__ ((noreturn)); unsigned long addr);
#endif #endif

View file

@ -87,8 +87,8 @@ const char *trap_name(int trapno)
static DEFINE_SPINLOCK(die_lock); static DEFINE_SPINLOCK(die_lock);
void die(const char *str, struct pt_regs *regs, long err, void __noreturn die(const char *str, struct pt_regs *regs,
unsigned long addr) long err, unsigned long addr)
{ {
static int die_counter; static int die_counter;