aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2011-11-17 10:07:31 -0500
committerRalf Baechle <ralf@linux-mips.org>2011-12-07 17:01:45 -0500
commitab75dc02c151c9d2a2fd446334d740b097a3b9db (patch)
tree45270931b489a1260e2d2aa3b9ffb1ef7347cfb6 /arch
parent864c6c22e9a5742b0f43c983b6c405d52817bacd (diff)
MIPS: Fix up inconsistency in panic() string argument.
Panic() invokes printk() to add a \n internally, so panic arguments should not themselves end in \n. Panic invocations in arch/mips and elsewhere are inconsistently sometimes terminating in \n, sometimes not. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/ar7/platform.c2
-rw-r--r--arch/mips/ar7/setup.c2
-rw-r--r--arch/mips/ath79/setup.c2
-rw-r--r--arch/mips/bcm47xx/setup.c4
-rw-r--r--arch/mips/cavium-octeon/setup.c6
-rw-r--r--arch/mips/cavium-octeon/smp.c2
-rw-r--r--arch/mips/jz4740/board-qi_lb60.c2
-rw-r--r--arch/mips/kernel/smtc.c4
-rw-r--r--arch/mips/kernel/traps.c4
-rw-r--r--arch/mips/lantiq/clk.c4
-rw-r--r--arch/mips/lantiq/irq.c12
-rw-r--r--arch/mips/lantiq/xway/dma.c6
-rw-r--r--arch/mips/lantiq/xway/ebu.c6
-rw-r--r--arch/mips/lantiq/xway/pmu.c8
-rw-r--r--arch/mips/lantiq/xway/reset.c6
-rw-r--r--arch/mips/mm/c-octeon.c2
-rw-r--r--arch/mips/pci/msi-octeon.c2
-rw-r--r--arch/mips/pmc-sierra/msp71xx/msp_setup.c2
-rw-r--r--arch/mips/sgi-ip27/ip27-irq.c4
19 files changed, 40 insertions, 40 deletions
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c
index 33ffecf6a6d6..60102392af01 100644
--- a/arch/mips/ar7/platform.c
+++ b/arch/mips/ar7/platform.c
@@ -536,7 +536,7 @@ static int __init ar7_register_uarts(void)
536 536
537 bus_clk = clk_get(NULL, "bus"); 537 bus_clk = clk_get(NULL, "bus");
538 if (IS_ERR(bus_clk)) 538 if (IS_ERR(bus_clk))
539 panic("unable to get bus clk\n"); 539 panic("unable to get bus clk");
540 540
541 uart_port.type = PORT_AR7; 541 uart_port.type = PORT_AR7;
542 uart_port.uartclk = clk_get_rate(bus_clk) / 2; 542 uart_port.uartclk = clk_get_rate(bus_clk) / 2;
diff --git a/arch/mips/ar7/setup.c b/arch/mips/ar7/setup.c
index f20b53e597c4..9a357fffcfbe 100644
--- a/arch/mips/ar7/setup.c
+++ b/arch/mips/ar7/setup.c
@@ -96,7 +96,7 @@ void __init plat_mem_setup(void)
96 96
97 io_base = (unsigned long)ioremap(AR7_REGS_BASE, 0x10000); 97 io_base = (unsigned long)ioremap(AR7_REGS_BASE, 0x10000);
98 if (!io_base) 98 if (!io_base)
99 panic("Can't remap IO base!\n"); 99 panic("Can't remap IO base!");
100 set_io_port_base(io_base); 100 set_io_port_base(io_base);
101 101
102 prom_meminit(); 102 prom_meminit();
diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index 159b42f106b0..1cf60e1d9dd3 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -134,7 +134,7 @@ static void __init ath79_detect_sys_type(void)
134 break; 134 break;
135 135
136 default: 136 default:
137 panic("ath79: unknown SoC, id:0x%08x\n", id); 137 panic("ath79: unknown SoC, id:0x%08x", id);
138 } 138 }
139 139
140 sprintf(ath79_sys_type, "Atheros AR%s rev %u", chip, rev); 140 sprintf(ath79_sys_type, "Atheros AR%s rev %u", chip, rev);
diff --git a/arch/mips/bcm47xx/setup.c b/arch/mips/bcm47xx/setup.c
index 1cfdda03546a..aab6b0c40a75 100644
--- a/arch/mips/bcm47xx/setup.c
+++ b/arch/mips/bcm47xx/setup.c
@@ -289,7 +289,7 @@ static void __init bcm47xx_register_ssb(void)
289 err = ssb_bus_ssbbus_register(&(bcm47xx_bus.ssb), SSB_ENUM_BASE, 289 err = ssb_bus_ssbbus_register(&(bcm47xx_bus.ssb), SSB_ENUM_BASE,
290 bcm47xx_get_invariants); 290 bcm47xx_get_invariants);
291 if (err) 291 if (err)
292 panic("Failed to initialize SSB bus (err %d)\n", err); 292 panic("Failed to initialize SSB bus (err %d)", err);
293 293
294 mcore = &bcm47xx_bus.ssb.mipscore; 294 mcore = &bcm47xx_bus.ssb.mipscore;
295 if (nvram_getenv("kernel_args", buf, sizeof(buf)) >= 0) { 295 if (nvram_getenv("kernel_args", buf, sizeof(buf)) >= 0) {
@@ -314,7 +314,7 @@ static void __init bcm47xx_register_bcma(void)
314 314
315 err = bcma_host_soc_register(&bcm47xx_bus.bcma); 315 err = bcma_host_soc_register(&bcm47xx_bus.bcma);
316 if (err) 316 if (err)
317 panic("Failed to initialize BCMA bus (err %d)\n", err); 317 panic("Failed to initialize BCMA bus (err %d)", err);
318} 318}
319#endif 319#endif
320 320
diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c
index 2d9028f1474c..853bac4f25b2 100644
--- a/arch/mips/cavium-octeon/setup.c
+++ b/arch/mips/cavium-octeon/setup.c
@@ -767,11 +767,11 @@ void prom_free_prom_memory(void)
767 : "=r" (insn) : : "$31", "memory"); 767 : "=r" (insn) : : "$31", "memory");
768 768
769 if ((insn >> 26) != 0x33) 769 if ((insn >> 26) != 0x33)
770 panic("No PREF instruction at Core-14449 probe point.\n"); 770 panic("No PREF instruction at Core-14449 probe point.");
771 771
772 if (((insn >> 16) & 0x1f) != 28) 772 if (((insn >> 16) & 0x1f) != 28)
773 panic("Core-14449 WAR not in place (%04x).\n" 773 panic("Core-14449 WAR not in place (%04x).\n"
774 "Please build kernel with proper options (CONFIG_CAVIUM_CN63XXP1).\n", insn); 774 "Please build kernel with proper options (CONFIG_CAVIUM_CN63XXP1).", insn);
775 } 775 }
776#ifdef CONFIG_CAVIUM_DECODE_RSL 776#ifdef CONFIG_CAVIUM_DECODE_RSL
777 cvmx_interrupt_rsl_enable(); 777 cvmx_interrupt_rsl_enable();
@@ -779,7 +779,7 @@ void prom_free_prom_memory(void)
779 /* Add an interrupt handler for general failures. */ 779 /* Add an interrupt handler for general failures. */
780 if (request_irq(OCTEON_IRQ_RML, octeon_rlm_interrupt, IRQF_SHARED, 780 if (request_irq(OCTEON_IRQ_RML, octeon_rlm_interrupt, IRQF_SHARED,
781 "RML/RSL", octeon_rlm_interrupt)) { 781 "RML/RSL", octeon_rlm_interrupt)) {
782 panic("Unable to request_irq(OCTEON_IRQ_RML)\n"); 782 panic("Unable to request_irq(OCTEON_IRQ_RML)");
783 } 783 }
784#endif 784#endif
785} 785}
diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c
index efcfff4d4627..b1535fe409d4 100644
--- a/arch/mips/cavium-octeon/smp.c
+++ b/arch/mips/cavium-octeon/smp.c
@@ -210,7 +210,7 @@ void octeon_prepare_cpus(unsigned int max_cpus)
210 if (request_irq(OCTEON_IRQ_MBOX0, mailbox_interrupt, 210 if (request_irq(OCTEON_IRQ_MBOX0, mailbox_interrupt,
211 IRQF_PERCPU | IRQF_NO_THREAD, "SMP-IPI", 211 IRQF_PERCPU | IRQF_NO_THREAD, "SMP-IPI",
212 mailbox_interrupt)) { 212 mailbox_interrupt)) {
213 panic("Cannot request_irq(OCTEON_IRQ_MBOX0)\n"); 213 panic("Cannot request_irq(OCTEON_IRQ_MBOX0)");
214 } 214 }
215} 215}
216 216
diff --git a/arch/mips/jz4740/board-qi_lb60.c b/arch/mips/jz4740/board-qi_lb60.c
index c3b04be3fb2b..639e3ce6c264 100644
--- a/arch/mips/jz4740/board-qi_lb60.c
+++ b/arch/mips/jz4740/board-qi_lb60.c
@@ -488,7 +488,7 @@ static int __init qi_lb60_board_setup(void)
488 board_gpio_setup(); 488 board_gpio_setup();
489 489
490 if (qi_lb60_init_platform_devices()) 490 if (qi_lb60_init_platform_devices())
491 panic("Failed to initialize platform devices\n"); 491 panic("Failed to initialize platform devices");
492 492
493 return 0; 493 return 0;
494} 494}
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c
index f0895e70e283..b1eea63cc988 100644
--- a/arch/mips/kernel/smtc.c
+++ b/arch/mips/kernel/smtc.c
@@ -559,7 +559,7 @@ void smtc_prepare_cpus(int cpus)
559 559
560 pipi = kmalloc(nipi *sizeof(struct smtc_ipi), GFP_KERNEL); 560 pipi = kmalloc(nipi *sizeof(struct smtc_ipi), GFP_KERNEL);
561 if (pipi == NULL) 561 if (pipi == NULL)
562 panic("kmalloc of IPI message buffers failed\n"); 562 panic("kmalloc of IPI message buffers failed");
563 else 563 else
564 printk("IPI buffer pool of %d buffers\n", nipi); 564 printk("IPI buffer pool of %d buffers\n", nipi);
565 for (i = 0; i < nipi; i++) { 565 for (i = 0; i < nipi; i++) {
@@ -813,7 +813,7 @@ void smtc_send_ipi(int cpu, int type, unsigned int action)
813 if (pipi == NULL) { 813 if (pipi == NULL) {
814 bust_spinlocks(1); 814 bust_spinlocks(1);
815 mips_mt_regdump(dvpe()); 815 mips_mt_regdump(dvpe());
816 panic("IPI Msg. Buffers Depleted\n"); 816 panic("IPI Msg. Buffers Depleted");
817 } 817 }
818 pipi->type = type; 818 pipi->type = type;
819 pipi->arg = (void *)action; 819 pipi->arg = (void *)action;
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 5c8a49d55054..363c4764b818 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -400,7 +400,7 @@ void __noreturn die(const char *str, struct pt_regs *regs)
400 panic("Fatal exception in interrupt"); 400 panic("Fatal exception in interrupt");
401 401
402 if (panic_on_oops) { 402 if (panic_on_oops) {
403 printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n"); 403 printk(KERN_EMERG "Fatal exception: panic in 5 seconds");
404 ssleep(5); 404 ssleep(5);
405 panic("Fatal exception"); 405 panic("Fatal exception");
406 } 406 }
@@ -1150,7 +1150,7 @@ asmlinkage void do_mt(struct pt_regs *regs)
1150asmlinkage void do_dsp(struct pt_regs *regs) 1150asmlinkage void do_dsp(struct pt_regs *regs)
1151{ 1151{
1152 if (cpu_has_dsp) 1152 if (cpu_has_dsp)
1153 panic("Unexpected DSP exception\n"); 1153 panic("Unexpected DSP exception");
1154 1154
1155 force_sig(SIGILL, current); 1155 force_sig(SIGILL, current);
1156} 1156}
diff --git a/arch/mips/lantiq/clk.c b/arch/mips/lantiq/clk.c
index 77ed70fc2fe5..412814fdd3ee 100644
--- a/arch/mips/lantiq/clk.c
+++ b/arch/mips/lantiq/clk.c
@@ -134,11 +134,11 @@ void __init plat_time_init(void)
134 struct clk *clk; 134 struct clk *clk;
135 135
136 if (insert_resource(&iomem_resource, &ltq_cgu_resource) < 0) 136 if (insert_resource(&iomem_resource, &ltq_cgu_resource) < 0)
137 panic("Failed to insert cgu memory\n"); 137 panic("Failed to insert cgu memory");
138 138
139 if (request_mem_region(ltq_cgu_resource.start, 139 if (request_mem_region(ltq_cgu_resource.start,
140 resource_size(&ltq_cgu_resource), "cgu") < 0) 140 resource_size(&ltq_cgu_resource), "cgu") < 0)
141 panic("Failed to request cgu memory\n"); 141 panic("Failed to request cgu memory");
142 142
143 ltq_cgu_membase = ioremap_nocache(ltq_cgu_resource.start, 143 ltq_cgu_membase = ioremap_nocache(ltq_cgu_resource.start,
144 resource_size(&ltq_cgu_resource)); 144 resource_size(&ltq_cgu_resource));
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
index f9737bb3c5ab..51fa0a4ba556 100644
--- a/arch/mips/lantiq/irq.c
+++ b/arch/mips/lantiq/irq.c
@@ -249,28 +249,28 @@ void __init arch_init_irq(void)
249 int i; 249 int i;
250 250
251 if (insert_resource(&iomem_resource, &ltq_icu_resource) < 0) 251 if (insert_resource(&iomem_resource, &ltq_icu_resource) < 0)
252 panic("Failed to insert icu memory\n"); 252 panic("Failed to insert icu memory");
253 253
254 if (request_mem_region(ltq_icu_resource.start, 254 if (request_mem_region(ltq_icu_resource.start,
255 resource_size(&ltq_icu_resource), "icu") < 0) 255 resource_size(&ltq_icu_resource), "icu") < 0)
256 panic("Failed to request icu memory\n"); 256 panic("Failed to request icu memory");
257 257
258 ltq_icu_membase = ioremap_nocache(ltq_icu_resource.start, 258 ltq_icu_membase = ioremap_nocache(ltq_icu_resource.start,
259 resource_size(&ltq_icu_resource)); 259 resource_size(&ltq_icu_resource));
260 if (!ltq_icu_membase) 260 if (!ltq_icu_membase)
261 panic("Failed to remap icu memory\n"); 261 panic("Failed to remap icu memory");
262 262
263 if (insert_resource(&iomem_resource, &ltq_eiu_resource) < 0) 263 if (insert_resource(&iomem_resource, &ltq_eiu_resource) < 0)
264 panic("Failed to insert eiu memory\n"); 264 panic("Failed to insert eiu memory");
265 265
266 if (request_mem_region(ltq_eiu_resource.start, 266 if (request_mem_region(ltq_eiu_resource.start,
267 resource_size(&ltq_eiu_resource), "eiu") < 0) 267 resource_size(&ltq_eiu_resource), "eiu") < 0)
268 panic("Failed to request eiu memory\n"); 268 panic("Failed to request eiu memory");
269 269
270 ltq_eiu_membase = ioremap_nocache(ltq_eiu_resource.start, 270 ltq_eiu_membase = ioremap_nocache(ltq_eiu_resource.start,
271 resource_size(&ltq_eiu_resource)); 271 resource_size(&ltq_eiu_resource));
272 if (!ltq_eiu_membase) 272 if (!ltq_eiu_membase)
273 panic("Failed to remap eiu memory\n"); 273 panic("Failed to remap eiu memory");
274 274
275 /* make sure all irqs are turned off by default */ 275 /* make sure all irqs are turned off by default */
276 for (i = 0; i < 5; i++) 276 for (i = 0; i < 5; i++)
diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c
index cbb6ae5747b9..b210e936c7c3 100644
--- a/arch/mips/lantiq/xway/dma.c
+++ b/arch/mips/lantiq/xway/dma.c
@@ -222,17 +222,17 @@ ltq_dma_init(void)
222 222
223 /* insert and request the memory region */ 223 /* insert and request the memory region */
224 if (insert_resource(&iomem_resource, &ltq_dma_resource) < 0) 224 if (insert_resource(&iomem_resource, &ltq_dma_resource) < 0)
225 panic("Failed to insert dma memory\n"); 225 panic("Failed to insert dma memory");
226 226
227 if (request_mem_region(ltq_dma_resource.start, 227 if (request_mem_region(ltq_dma_resource.start,
228 resource_size(&ltq_dma_resource), "dma") < 0) 228 resource_size(&ltq_dma_resource), "dma") < 0)
229 panic("Failed to request dma memory\n"); 229 panic("Failed to request dma memory");
230 230
231 /* remap dma register range */ 231 /* remap dma register range */
232 ltq_dma_membase = ioremap_nocache(ltq_dma_resource.start, 232 ltq_dma_membase = ioremap_nocache(ltq_dma_resource.start,
233 resource_size(&ltq_dma_resource)); 233 resource_size(&ltq_dma_resource));
234 if (!ltq_dma_membase) 234 if (!ltq_dma_membase)
235 panic("Failed to remap dma memory\n"); 235 panic("Failed to remap dma memory");
236 236
237 /* power up and reset the dma engine */ 237 /* power up and reset the dma engine */
238 ltq_pmu_enable(PMU_DMA); 238 ltq_pmu_enable(PMU_DMA);
diff --git a/arch/mips/lantiq/xway/ebu.c b/arch/mips/lantiq/xway/ebu.c
index 033b3184c7a7..862e3e830680 100644
--- a/arch/mips/lantiq/xway/ebu.c
+++ b/arch/mips/lantiq/xway/ebu.c
@@ -32,17 +32,17 @@ static int __init lantiq_ebu_init(void)
32{ 32{
33 /* insert and request the memory region */ 33 /* insert and request the memory region */
34 if (insert_resource(&iomem_resource, &ltq_ebu_resource) < 0) 34 if (insert_resource(&iomem_resource, &ltq_ebu_resource) < 0)
35 panic("Failed to insert ebu memory\n"); 35 panic("Failed to insert ebu memory");
36 36
37 if (request_mem_region(ltq_ebu_resource.start, 37 if (request_mem_region(ltq_ebu_resource.start,
38 resource_size(&ltq_ebu_resource), "ebu") < 0) 38 resource_size(&ltq_ebu_resource), "ebu") < 0)
39 panic("Failed to request ebu memory\n"); 39 panic("Failed to request ebu memory");
40 40
41 /* remap ebu register range */ 41 /* remap ebu register range */
42 ltq_ebu_membase = ioremap_nocache(ltq_ebu_resource.start, 42 ltq_ebu_membase = ioremap_nocache(ltq_ebu_resource.start,
43 resource_size(&ltq_ebu_resource)); 43 resource_size(&ltq_ebu_resource));
44 if (!ltq_ebu_membase) 44 if (!ltq_ebu_membase)
45 panic("Failed to remap ebu memory\n"); 45 panic("Failed to remap ebu memory");
46 46
47 /* make sure to unprotect the memory region where flash is located */ 47 /* make sure to unprotect the memory region where flash is located */
48 ltq_ebu_w32(ltq_ebu_r32(LTQ_EBU_BUSCON0) & ~EBU_WRDIS, LTQ_EBU_BUSCON0); 48 ltq_ebu_w32(ltq_ebu_r32(LTQ_EBU_BUSCON0) & ~EBU_WRDIS, LTQ_EBU_BUSCON0);
diff --git a/arch/mips/lantiq/xway/pmu.c b/arch/mips/lantiq/xway/pmu.c
index 39f0d2641cbf..fe85361e032e 100644
--- a/arch/mips/lantiq/xway/pmu.c
+++ b/arch/mips/lantiq/xway/pmu.c
@@ -40,7 +40,7 @@ void ltq_pmu_enable(unsigned int module)
40 do {} while (--err && (ltq_pmu_r32(LTQ_PMU_PWDSR) & module)); 40 do {} while (--err && (ltq_pmu_r32(LTQ_PMU_PWDSR) & module));
41 41
42 if (!err) 42 if (!err)
43 panic("activating PMU module failed!\n"); 43 panic("activating PMU module failed!");
44} 44}
45EXPORT_SYMBOL(ltq_pmu_enable); 45EXPORT_SYMBOL(ltq_pmu_enable);
46 46
@@ -53,16 +53,16 @@ EXPORT_SYMBOL(ltq_pmu_disable);
53int __init ltq_pmu_init(void) 53int __init ltq_pmu_init(void)
54{ 54{
55 if (insert_resource(&iomem_resource, &ltq_pmu_resource) < 0) 55 if (insert_resource(&iomem_resource, &ltq_pmu_resource) < 0)
56 panic("Failed to insert pmu memory\n"); 56 panic("Failed to insert pmu memory");
57 57
58 if (request_mem_region(ltq_pmu_resource.start, 58 if (request_mem_region(ltq_pmu_resource.start,
59 resource_size(&ltq_pmu_resource), "pmu") < 0) 59 resource_size(&ltq_pmu_resource), "pmu") < 0)
60 panic("Failed to request pmu memory\n"); 60 panic("Failed to request pmu memory");
61 61
62 ltq_pmu_membase = ioremap_nocache(ltq_pmu_resource.start, 62 ltq_pmu_membase = ioremap_nocache(ltq_pmu_resource.start,
63 resource_size(&ltq_pmu_resource)); 63 resource_size(&ltq_pmu_resource));
64 if (!ltq_pmu_membase) 64 if (!ltq_pmu_membase)
65 panic("Failed to remap pmu memory\n"); 65 panic("Failed to remap pmu memory");
66 return 0; 66 return 0;
67} 67}
68 68
diff --git a/arch/mips/lantiq/xway/reset.c b/arch/mips/lantiq/xway/reset.c
index 3d41f0bb5bf7..8b66bd87f0c1 100644
--- a/arch/mips/lantiq/xway/reset.c
+++ b/arch/mips/lantiq/xway/reset.c
@@ -69,17 +69,17 @@ static int __init mips_reboot_setup(void)
69{ 69{
70 /* insert and request the memory region */ 70 /* insert and request the memory region */
71 if (insert_resource(&iomem_resource, &ltq_rcu_resource) < 0) 71 if (insert_resource(&iomem_resource, &ltq_rcu_resource) < 0)
72 panic("Failed to insert rcu memory\n"); 72 panic("Failed to insert rcu memory");
73 73
74 if (request_mem_region(ltq_rcu_resource.start, 74 if (request_mem_region(ltq_rcu_resource.start,
75 resource_size(&ltq_rcu_resource), "rcu") < 0) 75 resource_size(&ltq_rcu_resource), "rcu") < 0)
76 panic("Failed to request rcu memory\n"); 76 panic("Failed to request rcu memory");
77 77
78 /* remap rcu register range */ 78 /* remap rcu register range */
79 ltq_rcu_membase = ioremap_nocache(ltq_rcu_resource.start, 79 ltq_rcu_membase = ioremap_nocache(ltq_rcu_resource.start,
80 resource_size(&ltq_rcu_resource)); 80 resource_size(&ltq_rcu_resource));
81 if (!ltq_rcu_membase) 81 if (!ltq_rcu_membase)
82 panic("Failed to remap rcu memory\n"); 82 panic("Failed to remap rcu memory");
83 83
84 _machine_restart = ltq_machine_restart; 84 _machine_restart = ltq_machine_restart;
85 _machine_halt = ltq_machine_halt; 85 _machine_halt = ltq_machine_halt;
diff --git a/arch/mips/mm/c-octeon.c b/arch/mips/mm/c-octeon.c
index daa81f7284ac..cf7895db0739 100644
--- a/arch/mips/mm/c-octeon.c
+++ b/arch/mips/mm/c-octeon.c
@@ -223,7 +223,7 @@ static void __cpuinit probe_octeon(void)
223 break; 223 break;
224 224
225 default: 225 default:
226 panic("Unsupported Cavium Networks CPU type\n"); 226 panic("Unsupported Cavium Networks CPU type");
227 break; 227 break;
228 } 228 }
229 229
diff --git a/arch/mips/pci/msi-octeon.c b/arch/mips/pci/msi-octeon.c
index 5d530f89d872..d37be36dc659 100644
--- a/arch/mips/pci/msi-octeon.c
+++ b/arch/mips/pci/msi-octeon.c
@@ -162,7 +162,7 @@ msi_irq_allocated:
162 msg.address_hi = (0 + CVMX_NPEI_PCIE_MSI_RCV) >> 32; 162 msg.address_hi = (0 + CVMX_NPEI_PCIE_MSI_RCV) >> 32;
163 break; 163 break;
164 default: 164 default:
165 panic("arch_setup_msi_irq: Invalid octeon_dma_bar_type\n"); 165 panic("arch_setup_msi_irq: Invalid octeon_dma_bar_type");
166 } 166 }
167 msg.data = irq - OCTEON_IRQ_MSI_BIT0; 167 msg.data = irq - OCTEON_IRQ_MSI_BIT0;
168 168
diff --git a/arch/mips/pmc-sierra/msp71xx/msp_setup.c b/arch/mips/pmc-sierra/msp71xx/msp_setup.c
index 655308a4e1cd..7a834b2f8a5f 100644
--- a/arch/mips/pmc-sierra/msp71xx/msp_setup.c
+++ b/arch/mips/pmc-sierra/msp71xx/msp_setup.c
@@ -209,7 +209,7 @@ void __init prom_init(void)
209 default: 209 default:
210 /* we don't recognize the machine */ 210 /* we don't recognize the machine */
211 mips_machtype = MACH_UNKNOWN; 211 mips_machtype = MACH_UNKNOWN;
212 panic("***Bogosity factor five***, exiting\n"); 212 panic("***Bogosity factor five***, exiting");
213 break; 213 break;
214 } 214 }
215 215
diff --git a/arch/mips/sgi-ip27/ip27-irq.c b/arch/mips/sgi-ip27/ip27-irq.c
index f90dce315e04..ec3782d31894 100644
--- a/arch/mips/sgi-ip27/ip27-irq.c
+++ b/arch/mips/sgi-ip27/ip27-irq.c
@@ -73,7 +73,7 @@ static inline int alloc_level(int cpu, int irq)
73 73
74 level = find_first_zero_bit(hub->irq_alloc_mask, LEVELS_PER_SLICE); 74 level = find_first_zero_bit(hub->irq_alloc_mask, LEVELS_PER_SLICE);
75 if (level >= LEVELS_PER_SLICE) 75 if (level >= LEVELS_PER_SLICE)
76 panic("Cpu %d flooded with devices\n", cpu); 76 panic("Cpu %d flooded with devices", cpu);
77 77
78 __set_bit(level, hub->irq_alloc_mask); 78 __set_bit(level, hub->irq_alloc_mask);
79 si->level_to_irq[level] = irq; 79 si->level_to_irq[level] = irq;
@@ -96,7 +96,7 @@ static inline int find_level(cpuid_t *cpunum, int irq)
96 } 96 }
97 } 97 }
98 98
99 panic("Could not identify cpu/level for irq %d\n", irq); 99 panic("Could not identify cpu/level for irq %d", irq);
100} 100}
101 101
102/* 102/*