summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/bug.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2014-04-21 23:39:21 +0400
committerDavid S. Miller <davem@davemloft.net>2014-04-29 09:12:25 +0400
commitfcd0196b7eb17a8b696a1263281bcdb9eedcfbc0 (patch)
treec7ced586863ad801cc44fe8b151bc95908577725 /arch/sparc/include/asm/bug.h
parenta2b0aa9463143051b0832f6355cdc81168876b32 (diff)
downloadlinux-fcd0196b7eb17a8b696a1263281bcdb9eedcfbc0.tar.xz
sparc32: fix sparse warning in traps_32.c
Fix following warning: traps_32.c:47:6: error: symbol 'die_if_kernel' redeclared with different type - different modifiers Add __noreturn to both definition and declaration Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/bug.h')
-rw-r--r--arch/sparc/include/asm/bug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/bug.h b/arch/sparc/include/asm/bug.h
index 6bd9f43cb5a5..a24cbb16d0eb 100644
--- a/arch/sparc/include/asm/bug.h
+++ b/arch/sparc/include/asm/bug.h
@@ -20,6 +20,6 @@ extern void do_BUG(const char *file, int line);
#include <asm-generic/bug.h>
struct pt_regs;
-extern void die_if_kernel(char *str, struct pt_regs *regs) __attribute__ ((noreturn));
+void __noreturn die_if_kernel(char *str, struct pt_regs *regs);
#endif