diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-05-09 04:42:46 -0400 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-06-13 07:55:29 -0400 |
commit | b79e88e55d5f8d141f205173ce30b4ef05e458c3 (patch) | |
tree | 2255d15e4d078a7c9c14b0b9614c637b4a5cea30 /arch/metag | |
parent | dca66a61cb3c82ebc86f1f99c22550b0ed7b3fbe (diff) |
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>
Diffstat (limited to 'arch/metag')
-rw-r--r-- | arch/metag/include/asm/bug.h | 4 | ||||
-rw-r--r-- | arch/metag/kernel/traps.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/metag/include/asm/bug.h b/arch/metag/include/asm/bug.h index d04b48cefecc..9f8967f10f8c 100644 --- a/arch/metag/include/asm/bug.h +++ b/arch/metag/include/asm/bug.h | |||
@@ -6,7 +6,7 @@ | |||
6 | struct pt_regs; | 6 | struct pt_regs; |
7 | 7 | ||
8 | extern const char *trap_name(int trapno); | 8 | extern const char *trap_name(int trapno); |
9 | extern void die(const char *str, struct pt_regs *regs, long err, | 9 | extern void __noreturn die(const char *str, struct pt_regs *regs, long err, |
10 | unsigned long addr) __attribute__ ((noreturn)); | 10 | unsigned long addr); |
11 | 11 | ||
12 | #endif | 12 | #endif |
diff --git a/arch/metag/kernel/traps.c b/arch/metag/kernel/traps.c index 2ceeaae5b199..a7051de20075 100644 --- a/arch/metag/kernel/traps.c +++ b/arch/metag/kernel/traps.c | |||
@@ -87,8 +87,8 @@ const char *trap_name(int trapno) | |||
87 | 87 | ||
88 | static DEFINE_SPINLOCK(die_lock); | 88 | static DEFINE_SPINLOCK(die_lock); |
89 | 89 | ||
90 | void die(const char *str, struct pt_regs *regs, long err, | 90 | void __noreturn die(const char *str, struct pt_regs *regs, |
91 | unsigned long addr) | 91 | long err, unsigned long addr) |
92 | { | 92 | { |
93 | static int die_counter; | 93 | static int die_counter; |
94 | 94 | ||