mirror of https://gitee.com/openkylin/linux.git
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;
|
||||
|
||||
extern const char *trap_name(int trapno);
|
||||
extern void die(const char *str, struct pt_regs *regs, long err,
|
||||
unsigned long addr) __attribute__ ((noreturn));
|
||||
extern void __noreturn die(const char *str, struct pt_regs *regs, long err,
|
||||
unsigned long addr);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -87,8 +87,8 @@ const char *trap_name(int trapno)
|
|||
|
||||
static DEFINE_SPINLOCK(die_lock);
|
||||
|
||||
void die(const char *str, struct pt_regs *regs, long err,
|
||||
unsigned long addr)
|
||||
void __noreturn die(const char *str, struct pt_regs *regs,
|
||||
long err, unsigned long addr)
|
||||
{
|
||||
static int die_counter;
|
||||
|
||||
|
|
Loading…
Reference in New Issue