diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2005-06-16 16:50:55 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:31:27 -0400 |
commit | 8a185d14b665d454bde84c6ae067beade452e7f8 (patch) | |
tree | 0c132df58f3197f1a80d381f183281f297f28a2f | |
parent | 2e2849670a740128307a770dd8b5213c31081cf2 (diff) |
Fix types for firmware arguments. Don't define unneeded messages.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/dec/prom/init.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/mips/dec/prom/init.c b/arch/mips/dec/prom/init.c index 60f74256e689..32a7cc7e4c65 100644 --- a/arch/mips/dec/prom/init.c +++ b/arch/mips/dec/prom/init.c | |||
@@ -6,6 +6,8 @@ | |||
6 | */ | 6 | */ |
7 | #include <linux/config.h> | 7 | #include <linux/config.h> |
8 | #include <linux/init.h> | 8 | #include <linux/init.h> |
9 | #include <linux/kernel.h> | ||
10 | #include <linux/linkage.h> | ||
9 | #include <linux/smp.h> | 11 | #include <linux/smp.h> |
10 | #include <linux/string.h> | 12 | #include <linux/string.h> |
11 | #include <linux/types.h> | 13 | #include <linux/types.h> |
@@ -85,17 +87,13 @@ void __init which_prom(s32 magic, s32 *prom_vec) | |||
85 | 87 | ||
86 | void __init prom_init(void) | 88 | void __init prom_init(void) |
87 | { | 89 | { |
88 | extern void dec_machine_halt(void); | 90 | extern void ATTRIB_NORET dec_machine_halt(void); |
89 | static char cpu_msg[] __initdata = | 91 | static char cpu_msg[] __initdata = |
90 | "Sorry, this kernel is compiled for a wrong CPU type!\n"; | 92 | "Sorry, this kernel is compiled for a wrong CPU type!\n"; |
91 | static char r3k_msg[] __initdata = | ||
92 | "Please recompile with \"CONFIG_CPU_R3000 = y\".\n"; | ||
93 | static char r4k_msg[] __initdata = | ||
94 | "Please recompile with \"CONFIG_CPU_R4x00 = y\".\n"; | ||
95 | s32 argc = fw_arg0; | 93 | s32 argc = fw_arg0; |
96 | s32 argv = fw_arg1; | 94 | s32 *argv = (void *)fw_arg1; |
97 | u32 magic = fw_arg2; | 95 | u32 magic = fw_arg2; |
98 | s32 prom_vec = fw_arg3; | 96 | s32 *prom_vec = (void *)fw_arg3; |
99 | 97 | ||
100 | /* | 98 | /* |
101 | * Determine which PROM we have | 99 | * Determine which PROM we have |
@@ -113,6 +111,8 @@ void __init prom_init(void) | |||
113 | #if defined(CONFIG_CPU_R3000) | 111 | #if defined(CONFIG_CPU_R3000) |
114 | if ((current_cpu_data.cputype == CPU_R4000SC) || | 112 | if ((current_cpu_data.cputype == CPU_R4000SC) || |
115 | (current_cpu_data.cputype == CPU_R4400SC)) { | 113 | (current_cpu_data.cputype == CPU_R4400SC)) { |
114 | static char r4k_msg[] __initdata = | ||
115 | "Please recompile with \"CONFIG_CPU_R4x00 = y\".\n"; | ||
116 | printk(cpu_msg); | 116 | printk(cpu_msg); |
117 | printk(r4k_msg); | 117 | printk(r4k_msg); |
118 | dec_machine_halt(); | 118 | dec_machine_halt(); |
@@ -122,6 +122,8 @@ void __init prom_init(void) | |||
122 | #if defined(CONFIG_CPU_R4X00) | 122 | #if defined(CONFIG_CPU_R4X00) |
123 | if ((current_cpu_data.cputype == CPU_R3000) || | 123 | if ((current_cpu_data.cputype == CPU_R3000) || |
124 | (current_cpu_data.cputype == CPU_R3000A)) { | 124 | (current_cpu_data.cputype == CPU_R3000A)) { |
125 | static char r3k_msg[] __initdata = | ||
126 | "Please recompile with \"CONFIG_CPU_R3000 = y\".\n"; | ||
125 | printk(cpu_msg); | 127 | printk(cpu_msg); |
126 | printk(r3k_msg); | 128 | printk(r3k_msg); |
127 | dec_machine_halt(); | 129 | dec_machine_halt(); |