mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
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
Block a user