summaryrefslogtreecommitdiffstats
path: root/arch/h8300/kernel
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-08-31 16:52:16 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-09-07 13:52:28 -0700
commitb857189d94e0d8a05943349618c4f84dbc57144c (patch)
treec5e1792b550c6628aa978cf4ad048a3851c7b963 /arch/h8300/kernel
parent3ab61eb9fd751336d1b3ad50ec7704bd3b62213f (diff)
downloadop-kernel-dev-b857189d94e0d8a05943349618c4f84dbc57144c.zip
op-kernel-dev-b857189d94e0d8a05943349618c4f84dbc57144c.tar.gz
h8300: Fix die()
Fix h8300's die() to take care of a number of problems: CC arch/h8300/kernel/traps.o In file included from arch/h8300/include/asm/bitops.h:10, from include/linux/bitops.h:22, from include/linux/kernel.h:17, from include/linux/sched.h:54, from arch/h8300/kernel/traps.c:18: arch/h8300/include/asm/system.h:136: warning: 'struct pt_regs' declared inside parameter list arch/h8300/include/asm/system.h:136: warning: its scope is only this definition or declaration, which is probably not what you want arch/h8300/kernel/traps.c:100: error: conflicting types for 'die' arch/h8300/include/asm/system.h:136: error: previous declaration of 'die' was here make[2]: *** [arch/h8300/kernel/traps.o] Error 1 Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/h8300/kernel')
-rw-r--r--arch/h8300/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/h8300/kernel/traps.c b/arch/h8300/kernel/traps.c
index 3c0b66b..dfa05bd 100644
--- a/arch/h8300/kernel/traps.c
+++ b/arch/h8300/kernel/traps.c
@@ -96,7 +96,7 @@ static void dump(struct pt_regs *fp)
printk("\n\n");
}
-void die(char *str, struct pt_regs *fp, unsigned long err)
+void die(const char *str, struct pt_regs *fp, unsigned long err)
{
static int diecount;
OpenPOWER on IntegriCloud