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:
parent
dca66a61cb
commit
b79e88e55d
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue