diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-10-28 07:26:42 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-11-21 10:24:50 -0500 |
commit | 4ed89f2228061422ce5f62545fd0b6f6648bd2cc (patch) | |
tree | 0f37768acf995006a4299d80122a3f924e5c5763 /arch/arm | |
parent | c2459d35f5b8de077fde859b8c96a23f309b9ab2 (diff) |
ARM: convert printk(KERN_* to pr_*
Convert many (but not all) printk(KERN_* to pr_* to simplify the code.
We take the opportunity to join some printk lines together so we don't
split the message across several lines, and we also add a few levels
to some messages which were previously missing them.
Tested-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
28 files changed, 128 insertions, 146 deletions
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index e57d7e5bf96a..7b69c5f9cd74 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
@@ -282,8 +282,8 @@ static int sa1111_retrigger_lowirq(struct irq_data *d) | |||
282 | } | 282 | } |
283 | 283 | ||
284 | if (i == 8) | 284 | if (i == 8) |
285 | printk(KERN_ERR "Danger Will Robinson: failed to " | 285 | pr_err("Danger Will Robinson: failed to re-trigger IRQ%d\n", |
286 | "re-trigger IRQ%d\n", d->irq); | 286 | d->irq); |
287 | return i == 8 ? -1 : 0; | 287 | return i == 8 ? -1 : 0; |
288 | } | 288 | } |
289 | 289 | ||
@@ -384,8 +384,8 @@ static int sa1111_retrigger_highirq(struct irq_data *d) | |||
384 | } | 384 | } |
385 | 385 | ||
386 | if (i == 8) | 386 | if (i == 8) |
387 | printk(KERN_ERR "Danger Will Robinson: failed to " | 387 | pr_err("Danger Will Robinson: failed to re-trigger IRQ%d\n", |
388 | "re-trigger IRQ%d\n", d->irq); | 388 | d->irq); |
389 | return i == 8 ? -1 : 0; | 389 | return i == 8 ? -1 : 0; |
390 | } | 390 | } |
391 | 391 | ||
@@ -740,9 +740,8 @@ static int __sa1111_probe(struct device *me, struct resource *mem, int irq) | |||
740 | goto err_unmap; | 740 | goto err_unmap; |
741 | } | 741 | } |
742 | 742 | ||
743 | printk(KERN_INFO "SA1111 Microprocessor Companion Chip: " | 743 | pr_info("SA1111 Microprocessor Companion Chip: silicon revision %lx, metal revision %lx\n", |
744 | "silicon revision %lx, metal revision %lx\n", | 744 | (id & SKID_SIREV_MASK) >> 4, id & SKID_MTREV_MASK); |
745 | (id & SKID_SIREV_MASK)>>4, (id & SKID_MTREV_MASK)); | ||
746 | 745 | ||
747 | /* | 746 | /* |
748 | * We found it. Wake the chip up, and initialise. | 747 | * We found it. Wake the chip up, and initialise. |
diff --git a/arch/arm/kernel/atags_compat.c b/arch/arm/kernel/atags_compat.c index 5236ad38f417..05c28b12353c 100644 --- a/arch/arm/kernel/atags_compat.c +++ b/arch/arm/kernel/atags_compat.c | |||
@@ -97,8 +97,7 @@ static void __init build_tag_list(struct param_struct *params, void *taglist) | |||
97 | struct tag *tag = taglist; | 97 | struct tag *tag = taglist; |
98 | 98 | ||
99 | if (params->u1.s.page_size != PAGE_SIZE) { | 99 | if (params->u1.s.page_size != PAGE_SIZE) { |
100 | printk(KERN_WARNING "Warning: bad configuration page, " | 100 | pr_warn("Warning: bad configuration page, trying to continue\n"); |
101 | "trying to continue\n"); | ||
102 | return; | 101 | return; |
103 | } | 102 | } |
104 | 103 | ||
@@ -109,8 +108,7 @@ static void __init build_tag_list(struct param_struct *params, void *taglist) | |||
109 | params->u1.s.nr_pages != 0x04000 && | 108 | params->u1.s.nr_pages != 0x04000 && |
110 | params->u1.s.nr_pages != 0x08000 && | 109 | params->u1.s.nr_pages != 0x08000 && |
111 | params->u1.s.nr_pages != 0x10000) { | 110 | params->u1.s.nr_pages != 0x10000) { |
112 | printk(KERN_WARNING "Warning: bad NeTTrom parameters " | 111 | pr_warn("Warning: bad NeTTrom parameters detected, using defaults\n"); |
113 | "detected, using defaults\n"); | ||
114 | 112 | ||
115 | params->u1.s.nr_pages = 0x1000; /* 16MB */ | 113 | params->u1.s.nr_pages = 0x1000; /* 16MB */ |
116 | params->u1.s.ramdisk_size = 0; | 114 | params->u1.s.ramdisk_size = 0; |
diff --git a/arch/arm/kernel/atags_parse.c b/arch/arm/kernel/atags_parse.c index 528f8af2addb..68c6ae0b9e4c 100644 --- a/arch/arm/kernel/atags_parse.c +++ b/arch/arm/kernel/atags_parse.c | |||
@@ -167,8 +167,7 @@ static void __init parse_tags(const struct tag *t) | |||
167 | { | 167 | { |
168 | for (; t->hdr.size; t = tag_next(t)) | 168 | for (; t->hdr.size; t = tag_next(t)) |
169 | if (!parse_tag(t)) | 169 | if (!parse_tag(t)) |
170 | printk(KERN_WARNING | 170 | pr_warn("Ignoring unrecognised tag 0x%08x\n", |
171 | "Ignoring unrecognised tag 0x%08x\n", | ||
172 | t->hdr.tag); | 171 | t->hdr.tag); |
173 | } | 172 | } |
174 | 173 | ||
@@ -193,7 +192,7 @@ setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr) | |||
193 | */ | 192 | */ |
194 | for_each_machine_desc(p) | 193 | for_each_machine_desc(p) |
195 | if (machine_nr == p->nr) { | 194 | if (machine_nr == p->nr) { |
196 | printk("Machine: %s\n", p->name); | 195 | pr_info("Machine: %s\n", p->name); |
197 | mdesc = p; | 196 | mdesc = p; |
198 | break; | 197 | break; |
199 | } | 198 | } |
diff --git a/arch/arm/kernel/atags_proc.c b/arch/arm/kernel/atags_proc.c index c7ff8073416f..5a3379055f55 100644 --- a/arch/arm/kernel/atags_proc.c +++ b/arch/arm/kernel/atags_proc.c | |||
@@ -41,7 +41,7 @@ static int __init init_atags_procfs(void) | |||
41 | size_t size; | 41 | size_t size; |
42 | 42 | ||
43 | if (tag->hdr.tag != ATAG_CORE) { | 43 | if (tag->hdr.tag != ATAG_CORE) { |
44 | printk(KERN_INFO "No ATAGs?"); | 44 | pr_info("No ATAGs?"); |
45 | return -EINVAL; | 45 | return -EINVAL; |
46 | } | 46 | } |
47 | 47 | ||
@@ -68,7 +68,7 @@ static int __init init_atags_procfs(void) | |||
68 | 68 | ||
69 | nomem: | 69 | nomem: |
70 | kfree(b); | 70 | kfree(b); |
71 | printk(KERN_ERR "Exporting ATAGs: not enough memory\n"); | 71 | pr_err("Exporting ATAGs: not enough memory\n"); |
72 | 72 | ||
73 | return -ENOMEM; | 73 | return -ENOMEM; |
74 | } | 74 | } |
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 17a26c17f7f5..391ffdfce571 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c | |||
@@ -355,7 +355,7 @@ void pcibios_fixup_bus(struct pci_bus *bus) | |||
355 | /* | 355 | /* |
356 | * Report what we did for this bus | 356 | * Report what we did for this bus |
357 | */ | 357 | */ |
358 | printk(KERN_INFO "PCI: bus%d: Fast back to back transfers %sabled\n", | 358 | pr_info("PCI: bus%d: Fast back to back transfers %sabled\n", |
359 | bus->number, (features & PCI_COMMAND_FAST_BACK) ? "en" : "dis"); | 359 | bus->number, (features & PCI_COMMAND_FAST_BACK) ? "en" : "dis"); |
360 | } | 360 | } |
361 | EXPORT_SYMBOL(pcibios_fixup_bus); | 361 | EXPORT_SYMBOL(pcibios_fixup_bus); |
diff --git a/arch/arm/kernel/dma-isa.c b/arch/arm/kernel/dma-isa.c index 360bb6d701f5..84363fe7bad2 100644 --- a/arch/arm/kernel/dma-isa.c +++ b/arch/arm/kernel/dma-isa.c | |||
@@ -213,8 +213,8 @@ void __init isa_init_dma(void) | |||
213 | for (chan = 0; chan < 8; chan++) { | 213 | for (chan = 0; chan < 8; chan++) { |
214 | int ret = isa_dma_add(chan, &isa_dma[chan]); | 214 | int ret = isa_dma_add(chan, &isa_dma[chan]); |
215 | if (ret) | 215 | if (ret) |
216 | printk(KERN_ERR "ISADMA%u: unable to register: %d\n", | 216 | pr_err("ISADMA%u: unable to register: %d\n", |
217 | chan, ret); | 217 | chan, ret); |
218 | } | 218 | } |
219 | 219 | ||
220 | request_dma(DMA_ISA_CASCADE, "cascade"); | 220 | request_dma(DMA_ISA_CASCADE, "cascade"); |
diff --git a/arch/arm/kernel/dma.c b/arch/arm/kernel/dma.c index 7b829d9663b1..e651c4d0a0d9 100644 --- a/arch/arm/kernel/dma.c +++ b/arch/arm/kernel/dma.c | |||
@@ -79,7 +79,7 @@ int request_dma(unsigned int chan, const char *device_id) | |||
79 | return ret; | 79 | return ret; |
80 | 80 | ||
81 | bad_dma: | 81 | bad_dma: |
82 | printk(KERN_ERR "dma: trying to allocate DMA%d\n", chan); | 82 | pr_err("dma: trying to allocate DMA%d\n", chan); |
83 | return -EINVAL; | 83 | return -EINVAL; |
84 | 84 | ||
85 | busy: | 85 | busy: |
@@ -100,7 +100,7 @@ void free_dma(unsigned int chan) | |||
100 | goto bad_dma; | 100 | goto bad_dma; |
101 | 101 | ||
102 | if (dma->active) { | 102 | if (dma->active) { |
103 | printk(KERN_ERR "dma%d: freeing active DMA\n", chan); | 103 | pr_err("dma%d: freeing active DMA\n", chan); |
104 | dma->d_ops->disable(chan, dma); | 104 | dma->d_ops->disable(chan, dma); |
105 | dma->active = 0; | 105 | dma->active = 0; |
106 | } | 106 | } |
@@ -111,11 +111,11 @@ void free_dma(unsigned int chan) | |||
111 | return; | 111 | return; |
112 | } | 112 | } |
113 | 113 | ||
114 | printk(KERN_ERR "dma%d: trying to free free DMA\n", chan); | 114 | pr_err("dma%d: trying to free free DMA\n", chan); |
115 | return; | 115 | return; |
116 | 116 | ||
117 | bad_dma: | 117 | bad_dma: |
118 | printk(KERN_ERR "dma: trying to free DMA%d\n", chan); | 118 | pr_err("dma: trying to free DMA%d\n", chan); |
119 | } | 119 | } |
120 | EXPORT_SYMBOL(free_dma); | 120 | EXPORT_SYMBOL(free_dma); |
121 | 121 | ||
@@ -126,8 +126,7 @@ void set_dma_sg (unsigned int chan, struct scatterlist *sg, int nr_sg) | |||
126 | dma_t *dma = dma_channel(chan); | 126 | dma_t *dma = dma_channel(chan); |
127 | 127 | ||
128 | if (dma->active) | 128 | if (dma->active) |
129 | printk(KERN_ERR "dma%d: altering DMA SG while " | 129 | pr_err("dma%d: altering DMA SG while DMA active\n", chan); |
130 | "DMA active\n", chan); | ||
131 | 130 | ||
132 | dma->sg = sg; | 131 | dma->sg = sg; |
133 | dma->sgcount = nr_sg; | 132 | dma->sgcount = nr_sg; |
@@ -144,8 +143,7 @@ void __set_dma_addr (unsigned int chan, void *addr) | |||
144 | dma_t *dma = dma_channel(chan); | 143 | dma_t *dma = dma_channel(chan); |
145 | 144 | ||
146 | if (dma->active) | 145 | if (dma->active) |
147 | printk(KERN_ERR "dma%d: altering DMA address while " | 146 | pr_err("dma%d: altering DMA address while DMA active\n", chan); |
148 | "DMA active\n", chan); | ||
149 | 147 | ||
150 | dma->sg = NULL; | 148 | dma->sg = NULL; |
151 | dma->addr = addr; | 149 | dma->addr = addr; |
@@ -162,8 +160,7 @@ void set_dma_count (unsigned int chan, unsigned long count) | |||
162 | dma_t *dma = dma_channel(chan); | 160 | dma_t *dma = dma_channel(chan); |
163 | 161 | ||
164 | if (dma->active) | 162 | if (dma->active) |
165 | printk(KERN_ERR "dma%d: altering DMA count while " | 163 | pr_err("dma%d: altering DMA count while DMA active\n", chan); |
166 | "DMA active\n", chan); | ||
167 | 164 | ||
168 | dma->sg = NULL; | 165 | dma->sg = NULL; |
169 | dma->count = count; | 166 | dma->count = count; |
@@ -178,8 +175,7 @@ void set_dma_mode (unsigned int chan, unsigned int mode) | |||
178 | dma_t *dma = dma_channel(chan); | 175 | dma_t *dma = dma_channel(chan); |
179 | 176 | ||
180 | if (dma->active) | 177 | if (dma->active) |
181 | printk(KERN_ERR "dma%d: altering DMA mode while " | 178 | pr_err("dma%d: altering DMA mode while DMA active\n", chan); |
182 | "DMA active\n", chan); | ||
183 | 179 | ||
184 | dma->dma_mode = mode; | 180 | dma->dma_mode = mode; |
185 | dma->invalid = 1; | 181 | dma->invalid = 1; |
@@ -202,7 +198,7 @@ void enable_dma (unsigned int chan) | |||
202 | return; | 198 | return; |
203 | 199 | ||
204 | free_dma: | 200 | free_dma: |
205 | printk(KERN_ERR "dma%d: trying to enable free DMA\n", chan); | 201 | pr_err("dma%d: trying to enable free DMA\n", chan); |
206 | BUG(); | 202 | BUG(); |
207 | } | 203 | } |
208 | EXPORT_SYMBOL(enable_dma); | 204 | EXPORT_SYMBOL(enable_dma); |
@@ -223,7 +219,7 @@ void disable_dma (unsigned int chan) | |||
223 | return; | 219 | return; |
224 | 220 | ||
225 | free_dma: | 221 | free_dma: |
226 | printk(KERN_ERR "dma%d: trying to disable free DMA\n", chan); | 222 | pr_err("dma%d: trying to disable free DMA\n", chan); |
227 | BUG(); | 223 | BUG(); |
228 | } | 224 | } |
229 | EXPORT_SYMBOL(disable_dma); | 225 | EXPORT_SYMBOL(disable_dma); |
@@ -240,7 +236,7 @@ EXPORT_SYMBOL(dma_channel_active); | |||
240 | 236 | ||
241 | void set_dma_page(unsigned int chan, char pagenr) | 237 | void set_dma_page(unsigned int chan, char pagenr) |
242 | { | 238 | { |
243 | printk(KERN_ERR "dma%d: trying to set_dma_page\n", chan); | 239 | pr_err("dma%d: trying to set_dma_page\n", chan); |
244 | } | 240 | } |
245 | EXPORT_SYMBOL(set_dma_page); | 241 | EXPORT_SYMBOL(set_dma_page); |
246 | 242 | ||
diff --git a/arch/arm/kernel/etm.c b/arch/arm/kernel/etm.c index 131a6ab5f355..8b96972dcb1d 100644 --- a/arch/arm/kernel/etm.c +++ b/arch/arm/kernel/etm.c | |||
@@ -213,7 +213,7 @@ static void etm_dump(void) | |||
213 | int length; | 213 | int length; |
214 | 214 | ||
215 | if (!t->etb_regs) { | 215 | if (!t->etb_regs) { |
216 | printk(KERN_INFO "No tracing hardware found\n"); | 216 | pr_info("No tracing hardware found\n"); |
217 | return; | 217 | return; |
218 | } | 218 | } |
219 | 219 | ||
@@ -229,11 +229,11 @@ static void etm_dump(void) | |||
229 | 229 | ||
230 | etb_writel(t, first, ETBR_READADDR); | 230 | etb_writel(t, first, ETBR_READADDR); |
231 | 231 | ||
232 | printk(KERN_INFO "Trace buffer contents length: %d\n", length); | 232 | pr_info("Trace buffer contents length: %d\n", length); |
233 | printk(KERN_INFO "--- ETB buffer begin ---\n"); | 233 | pr_info("--- ETB buffer begin ---\n"); |
234 | for (; length; length--) | 234 | for (; length; length--) |
235 | printk("%08x", cpu_to_be32(etb_readl(t, ETBR_READMEM))); | 235 | printk("%08x", cpu_to_be32(etb_readl(t, ETBR_READMEM))); |
236 | printk(KERN_INFO "\n--- ETB buffer end ---\n"); | 236 | pr_info("\n--- ETB buffer end ---\n"); |
237 | 237 | ||
238 | /* deassert the overflow bit */ | 238 | /* deassert the overflow bit */ |
239 | etb_writel(t, 1, ETBR_CTRL); | 239 | etb_writel(t, 1, ETBR_CTRL); |
@@ -633,14 +633,14 @@ static int __init etm_init(void) | |||
633 | 633 | ||
634 | retval = amba_driver_register(&etb_driver); | 634 | retval = amba_driver_register(&etb_driver); |
635 | if (retval) { | 635 | if (retval) { |
636 | printk(KERN_ERR "Failed to register etb\n"); | 636 | pr_err("Failed to register etb\n"); |
637 | return retval; | 637 | return retval; |
638 | } | 638 | } |
639 | 639 | ||
640 | retval = amba_driver_register(&etm_driver); | 640 | retval = amba_driver_register(&etm_driver); |
641 | if (retval) { | 641 | if (retval) { |
642 | amba_driver_unregister(&etb_driver); | 642 | amba_driver_unregister(&etb_driver); |
643 | printk(KERN_ERR "Failed to probe etm\n"); | 643 | pr_err("Failed to probe etm\n"); |
644 | return retval; | 644 | return retval; |
645 | } | 645 | } |
646 | 646 | ||
diff --git a/arch/arm/kernel/fiq.c b/arch/arm/kernel/fiq.c index b37752a96652..059c3da0fee3 100644 --- a/arch/arm/kernel/fiq.c +++ b/arch/arm/kernel/fiq.c | |||
@@ -124,7 +124,7 @@ int claim_fiq(struct fiq_handler *f) | |||
124 | void release_fiq(struct fiq_handler *f) | 124 | void release_fiq(struct fiq_handler *f) |
125 | { | 125 | { |
126 | if (current_fiq != f) { | 126 | if (current_fiq != f) { |
127 | printk(KERN_ERR "%s FIQ trying to release %s FIQ\n", | 127 | pr_err("%s FIQ trying to release %s FIQ\n", |
128 | f->name, current_fiq->name); | 128 | f->name, current_fiq->name); |
129 | dump_stack(); | 129 | dump_stack(); |
130 | return; | 130 | return; |
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 7c81ec428b9b..f2fea6831cd5 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c | |||
@@ -82,7 +82,7 @@ void set_irq_flags(unsigned int irq, unsigned int iflags) | |||
82 | unsigned long clr = 0, set = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN; | 82 | unsigned long clr = 0, set = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN; |
83 | 83 | ||
84 | if (irq >= nr_irqs) { | 84 | if (irq >= nr_irqs) { |
85 | printk(KERN_ERR "Trying to set irq flags for IRQ%d\n", irq); | 85 | pr_err("Trying to set irq flags for IRQ%d\n", irq); |
86 | return; | 86 | return; |
87 | } | 87 | } |
88 | 88 | ||
diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c index 8cf0996aa1a8..4f75192f2ef9 100644 --- a/arch/arm/kernel/machine_kexec.c +++ b/arch/arm/kernel/machine_kexec.c | |||
@@ -126,12 +126,12 @@ void machine_crash_shutdown(struct pt_regs *regs) | |||
126 | msecs--; | 126 | msecs--; |
127 | } | 127 | } |
128 | if (atomic_read(&waiting_for_crash_ipi) > 0) | 128 | if (atomic_read(&waiting_for_crash_ipi) > 0) |
129 | printk(KERN_WARNING "Non-crashing CPUs did not react to IPI\n"); | 129 | pr_warn("Non-crashing CPUs did not react to IPI\n"); |
130 | 130 | ||
131 | crash_save_cpu(regs, smp_processor_id()); | 131 | crash_save_cpu(regs, smp_processor_id()); |
132 | machine_kexec_mask_interrupts(); | 132 | machine_kexec_mask_interrupts(); |
133 | 133 | ||
134 | printk(KERN_INFO "Loading crashdump kernel...\n"); | 134 | pr_info("Loading crashdump kernel...\n"); |
135 | } | 135 | } |
136 | 136 | ||
137 | /* | 137 | /* |
@@ -177,7 +177,7 @@ void machine_kexec(struct kimage *image) | |||
177 | reboot_entry_phys = (unsigned long)reboot_entry + | 177 | reboot_entry_phys = (unsigned long)reboot_entry + |
178 | (reboot_code_buffer_phys - (unsigned long)reboot_code_buffer); | 178 | (reboot_code_buffer_phys - (unsigned long)reboot_code_buffer); |
179 | 179 | ||
180 | printk(KERN_INFO "Bye!\n"); | 180 | pr_info("Bye!\n"); |
181 | 181 | ||
182 | if (kexec_reinit) | 182 | if (kexec_reinit) |
183 | kexec_reinit(); | 183 | kexec_reinit(); |
diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c index 6a4dffefd357..bea7db9e5b80 100644 --- a/arch/arm/kernel/module.c +++ b/arch/arm/kernel/module.c | |||
@@ -251,7 +251,7 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex, | |||
251 | #endif | 251 | #endif |
252 | 252 | ||
253 | default: | 253 | default: |
254 | printk(KERN_ERR "%s: unknown relocation: %u\n", | 254 | pr_err("%s: unknown relocation: %u\n", |
255 | module->name, ELF32_R_TYPE(rel->r_info)); | 255 | module->name, ELF32_R_TYPE(rel->r_info)); |
256 | return -ENOEXEC; | 256 | return -ENOEXEC; |
257 | } | 257 | } |
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 13396d3d600e..3138d8ea9e55 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
@@ -225,7 +225,7 @@ void __cpu_die(unsigned int cpu) | |||
225 | pr_err("CPU%u: cpu didn't die\n", cpu); | 225 | pr_err("CPU%u: cpu didn't die\n", cpu); |
226 | return; | 226 | return; |
227 | } | 227 | } |
228 | printk(KERN_NOTICE "CPU%u: shutdown\n", cpu); | 228 | pr_notice("CPU%u: shutdown\n", cpu); |
229 | 229 | ||
230 | /* | 230 | /* |
231 | * platform_cpu_kill() is generally expected to do the powering off | 231 | * platform_cpu_kill() is generally expected to do the powering off |
@@ -235,7 +235,7 @@ void __cpu_die(unsigned int cpu) | |||
235 | * the requesting CPU and the dying CPU actually losing power. | 235 | * the requesting CPU and the dying CPU actually losing power. |
236 | */ | 236 | */ |
237 | if (!platform_cpu_kill(cpu)) | 237 | if (!platform_cpu_kill(cpu)) |
238 | printk("CPU%u: unable to kill\n", cpu); | 238 | pr_err("CPU%u: unable to kill\n", cpu); |
239 | } | 239 | } |
240 | 240 | ||
241 | /* | 241 | /* |
@@ -351,7 +351,7 @@ asmlinkage void secondary_start_kernel(void) | |||
351 | 351 | ||
352 | cpu_init(); | 352 | cpu_init(); |
353 | 353 | ||
354 | printk("CPU%u: Booted secondary processor\n", cpu); | 354 | pr_info("CPU%u: Booted secondary processor\n", cpu); |
355 | 355 | ||
356 | preempt_disable(); | 356 | preempt_disable(); |
357 | trace_hardirqs_off(); | 357 | trace_hardirqs_off(); |
@@ -387,8 +387,8 @@ asmlinkage void secondary_start_kernel(void) | |||
387 | 387 | ||
388 | void __init smp_cpus_done(unsigned int max_cpus) | 388 | void __init smp_cpus_done(unsigned int max_cpus) |
389 | { | 389 | { |
390 | printk(KERN_INFO "SMP: Total of %d processors activated.\n", | 390 | pr_info("SMP: Total of %d processors activated.\n", |
391 | num_online_cpus()); | 391 | num_online_cpus()); |
392 | 392 | ||
393 | hyp_mode_check(); | 393 | hyp_mode_check(); |
394 | } | 394 | } |
@@ -521,7 +521,7 @@ static void ipi_cpu_stop(unsigned int cpu) | |||
521 | if (system_state == SYSTEM_BOOTING || | 521 | if (system_state == SYSTEM_BOOTING || |
522 | system_state == SYSTEM_RUNNING) { | 522 | system_state == SYSTEM_RUNNING) { |
523 | raw_spin_lock(&stop_lock); | 523 | raw_spin_lock(&stop_lock); |
524 | printk(KERN_CRIT "CPU%u: stopping\n", cpu); | 524 | pr_crit("CPU%u: stopping\n", cpu); |
525 | dump_stack(); | 525 | dump_stack(); |
526 | raw_spin_unlock(&stop_lock); | 526 | raw_spin_unlock(&stop_lock); |
527 | } | 527 | } |
@@ -615,8 +615,8 @@ void handle_IPI(int ipinr, struct pt_regs *regs) | |||
615 | break; | 615 | break; |
616 | 616 | ||
617 | default: | 617 | default: |
618 | printk(KERN_CRIT "CPU%u: Unknown IPI message 0x%x\n", | 618 | pr_crit("CPU%u: Unknown IPI message 0x%x\n", |
619 | cpu, ipinr); | 619 | cpu, ipinr); |
620 | break; | 620 | break; |
621 | } | 621 | } |
622 | 622 | ||
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index 93090213c71c..172c6a05d27f 100644 --- a/arch/arm/kernel/smp_twd.c +++ b/arch/arm/kernel/smp_twd.c | |||
@@ -199,7 +199,7 @@ static void twd_calibrate_rate(void) | |||
199 | * the timer ticks | 199 | * the timer ticks |
200 | */ | 200 | */ |
201 | if (twd_timer_rate == 0) { | 201 | if (twd_timer_rate == 0) { |
202 | printk(KERN_INFO "Calibrating local timer... "); | 202 | pr_info("Calibrating local timer... "); |
203 | 203 | ||
204 | /* Wait for a tick to start */ | 204 | /* Wait for a tick to start */ |
205 | waitjiffies = get_jiffies_64() + 1; | 205 | waitjiffies = get_jiffies_64() + 1; |
@@ -223,7 +223,7 @@ static void twd_calibrate_rate(void) | |||
223 | 223 | ||
224 | twd_timer_rate = (0xFFFFFFFFU - count) * (HZ / 5); | 224 | twd_timer_rate = (0xFFFFFFFFU - count) * (HZ / 5); |
225 | 225 | ||
226 | printk("%lu.%02luMHz.\n", twd_timer_rate / 1000000, | 226 | pr_cont("%lu.%02luMHz.\n", twd_timer_rate / 1000000, |
227 | (twd_timer_rate / 10000) % 100); | 227 | (twd_timer_rate / 10000) % 100); |
228 | } | 228 | } |
229 | } | 229 | } |
diff --git a/arch/arm/kernel/swp_emulate.c b/arch/arm/kernel/swp_emulate.c index 587fdfe1a72c..afdd51e30bec 100644 --- a/arch/arm/kernel/swp_emulate.c +++ b/arch/arm/kernel/swp_emulate.c | |||
@@ -260,7 +260,7 @@ static int __init swp_emulation_init(void) | |||
260 | return -ENOMEM; | 260 | return -ENOMEM; |
261 | #endif /* CONFIG_PROC_FS */ | 261 | #endif /* CONFIG_PROC_FS */ |
262 | 262 | ||
263 | printk(KERN_NOTICE "Registering SWP/SWPB emulation handler\n"); | 263 | pr_notice("Registering SWP/SWPB emulation handler\n"); |
264 | register_undef_hook(&swp_hook); | 264 | register_undef_hook(&swp_hook); |
265 | 265 | ||
266 | return 0; | 266 | return 0; |
diff --git a/arch/arm/kernel/thumbee.c b/arch/arm/kernel/thumbee.c index 80f0d69205e7..8ff8dbfbe9fb 100644 --- a/arch/arm/kernel/thumbee.c +++ b/arch/arm/kernel/thumbee.c | |||
@@ -72,7 +72,7 @@ static int __init thumbee_init(void) | |||
72 | if ((pfr0 & 0x0000f000) != 0x00001000) | 72 | if ((pfr0 & 0x0000f000) != 0x00001000) |
73 | return 0; | 73 | return 0; |
74 | 74 | ||
75 | printk(KERN_INFO "ThumbEE CPU extension supported.\n"); | 75 | pr_info("ThumbEE CPU extension supported.\n"); |
76 | elf_hwcap |= HWCAP_THUMBEE; | 76 | elf_hwcap |= HWCAP_THUMBEE; |
77 | thread_register_notifier(&thumbee_notifier_block); | 77 | thread_register_notifier(&thumbee_notifier_block); |
78 | 78 | ||
diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 89cfdd6e50cb..08b7847bf912 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c | |||
@@ -165,7 +165,7 @@ static void update_cpu_capacity(unsigned int cpu) | |||
165 | 165 | ||
166 | set_capacity_scale(cpu, cpu_capacity(cpu) / middle_capacity); | 166 | set_capacity_scale(cpu, cpu_capacity(cpu) / middle_capacity); |
167 | 167 | ||
168 | printk(KERN_INFO "CPU%u: update cpu_capacity %lu\n", | 168 | pr_info("CPU%u: update cpu_capacity %lu\n", |
169 | cpu, arch_scale_cpu_capacity(NULL, cpu)); | 169 | cpu, arch_scale_cpu_capacity(NULL, cpu)); |
170 | } | 170 | } |
171 | 171 | ||
@@ -269,7 +269,7 @@ void store_cpu_topology(unsigned int cpuid) | |||
269 | 269 | ||
270 | update_cpu_capacity(cpuid); | 270 | update_cpu_capacity(cpuid); |
271 | 271 | ||
272 | printk(KERN_INFO "CPU%u: thread %d, cpu %d, socket %d, mpidr %x\n", | 272 | pr_info("CPU%u: thread %d, cpu %d, socket %d, mpidr %x\n", |
273 | cpuid, cpu_topology[cpuid].thread_id, | 273 | cpuid, cpu_topology[cpuid].thread_id, |
274 | cpu_topology[cpuid].core_id, | 274 | cpu_topology[cpuid].core_id, |
275 | cpu_topology[cpuid].socket_id, mpidr); | 275 | cpu_topology[cpuid].socket_id, mpidr); |
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 0c8b10801d36..bb121b52ef36 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c | |||
@@ -198,14 +198,14 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk) | |||
198 | } | 198 | } |
199 | 199 | ||
200 | if (!fp) { | 200 | if (!fp) { |
201 | printk("no frame pointer"); | 201 | pr_cont("no frame pointer"); |
202 | ok = 0; | 202 | ok = 0; |
203 | } else if (verify_stack(fp)) { | 203 | } else if (verify_stack(fp)) { |
204 | printk("invalid frame pointer 0x%08x", fp); | 204 | pr_cont("invalid frame pointer 0x%08x", fp); |
205 | ok = 0; | 205 | ok = 0; |
206 | } else if (fp < (unsigned long)end_of_stack(tsk)) | 206 | } else if (fp < (unsigned long)end_of_stack(tsk)) |
207 | printk("frame pointer underflow"); | 207 | pr_cont("frame pointer underflow"); |
208 | printk("\n"); | 208 | pr_cont("\n"); |
209 | 209 | ||
210 | if (ok) | 210 | if (ok) |
211 | c_backtrace(fp, mode); | 211 | c_backtrace(fp, mode); |
@@ -240,8 +240,8 @@ static int __die(const char *str, int err, struct pt_regs *regs) | |||
240 | static int die_counter; | 240 | static int die_counter; |
241 | int ret; | 241 | int ret; |
242 | 242 | ||
243 | printk(KERN_EMERG "Internal error: %s: %x [#%d]" S_PREEMPT S_SMP | 243 | pr_emerg("Internal error: %s: %x [#%d]" S_PREEMPT S_SMP S_ISA "\n", |
244 | S_ISA "\n", str, err, ++die_counter); | 244 | str, err, ++die_counter); |
245 | 245 | ||
246 | /* trap and error numbers are mostly meaningless on ARM */ | 246 | /* trap and error numbers are mostly meaningless on ARM */ |
247 | ret = notify_die(DIE_OOPS, str, regs, err, tsk->thread.trap_no, SIGSEGV); | 247 | ret = notify_die(DIE_OOPS, str, regs, err, tsk->thread.trap_no, SIGSEGV); |
@@ -250,8 +250,8 @@ static int __die(const char *str, int err, struct pt_regs *regs) | |||
250 | 250 | ||
251 | print_modules(); | 251 | print_modules(); |
252 | __show_regs(regs); | 252 | __show_regs(regs); |
253 | printk(KERN_EMERG "Process %.*s (pid: %d, stack limit = 0x%p)\n", | 253 | pr_emerg("Process %.*s (pid: %d, stack limit = 0x%p)\n", |
254 | TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk), end_of_stack(tsk)); | 254 | TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk), end_of_stack(tsk)); |
255 | 255 | ||
256 | if (!user_mode(regs) || in_interrupt()) { | 256 | if (!user_mode(regs) || in_interrupt()) { |
257 | dump_mem(KERN_EMERG, "Stack: ", regs->ARM_sp, | 257 | dump_mem(KERN_EMERG, "Stack: ", regs->ARM_sp, |
@@ -446,7 +446,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs) | |||
446 | die_sig: | 446 | die_sig: |
447 | #ifdef CONFIG_DEBUG_USER | 447 | #ifdef CONFIG_DEBUG_USER |
448 | if (user_debug & UDBG_UNDEFINED) { | 448 | if (user_debug & UDBG_UNDEFINED) { |
449 | printk(KERN_INFO "%s (%d): undefined instruction: pc=%p\n", | 449 | pr_info("%s (%d): undefined instruction: pc=%p\n", |
450 | current->comm, task_pid_nr(current), pc); | 450 | current->comm, task_pid_nr(current), pc); |
451 | __show_regs(regs); | 451 | __show_regs(regs); |
452 | dump_instr(KERN_INFO, regs); | 452 | dump_instr(KERN_INFO, regs); |
@@ -496,7 +496,7 @@ asmlinkage void bad_mode(struct pt_regs *regs, int reason) | |||
496 | { | 496 | { |
497 | console_verbose(); | 497 | console_verbose(); |
498 | 498 | ||
499 | printk(KERN_CRIT "Bad mode in %s handler detected\n", handler[reason]); | 499 | pr_crit("Bad mode in %s handler detected\n", handler[reason]); |
500 | 500 | ||
501 | die("Oops - bad mode", regs, 0); | 501 | die("Oops - bad mode", regs, 0); |
502 | local_irq_disable(); | 502 | local_irq_disable(); |
@@ -516,7 +516,7 @@ static int bad_syscall(int n, struct pt_regs *regs) | |||
516 | 516 | ||
517 | #ifdef CONFIG_DEBUG_USER | 517 | #ifdef CONFIG_DEBUG_USER |
518 | if (user_debug & UDBG_SYSCALL) { | 518 | if (user_debug & UDBG_SYSCALL) { |
519 | printk(KERN_ERR "[%d] %s: obsolete system call %08x.\n", | 519 | pr_err("[%d] %s: obsolete system call %08x.\n", |
520 | task_pid_nr(current), current->comm, n); | 520 | task_pid_nr(current), current->comm, n); |
521 | dump_instr(KERN_ERR, regs); | 521 | dump_instr(KERN_ERR, regs); |
522 | } | 522 | } |
@@ -721,7 +721,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs) | |||
721 | * something catastrophic has happened | 721 | * something catastrophic has happened |
722 | */ | 722 | */ |
723 | if (user_debug & UDBG_SYSCALL) { | 723 | if (user_debug & UDBG_SYSCALL) { |
724 | printk("[%d] %s: arm syscall %d\n", | 724 | pr_err("[%d] %s: arm syscall %d\n", |
725 | task_pid_nr(current), current->comm, no); | 725 | task_pid_nr(current), current->comm, no); |
726 | dump_instr("", regs); | 726 | dump_instr("", regs); |
727 | if (user_mode(regs)) { | 727 | if (user_mode(regs)) { |
@@ -780,8 +780,8 @@ late_initcall(arm_mrc_hook_init); | |||
780 | 780 | ||
781 | void __bad_xchg(volatile void *ptr, int size) | 781 | void __bad_xchg(volatile void *ptr, int size) |
782 | { | 782 | { |
783 | printk("xchg: bad data size: pc 0x%p, ptr 0x%p, size %d\n", | 783 | pr_err("xchg: bad data size: pc 0x%p, ptr 0x%p, size %d\n", |
784 | __builtin_return_address(0), ptr, size); | 784 | __builtin_return_address(0), ptr, size); |
785 | BUG(); | 785 | BUG(); |
786 | } | 786 | } |
787 | EXPORT_SYMBOL(__bad_xchg); | 787 | EXPORT_SYMBOL(__bad_xchg); |
@@ -798,8 +798,8 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs) | |||
798 | 798 | ||
799 | #ifdef CONFIG_DEBUG_USER | 799 | #ifdef CONFIG_DEBUG_USER |
800 | if (user_debug & UDBG_BADABORT) { | 800 | if (user_debug & UDBG_BADABORT) { |
801 | printk(KERN_ERR "[%d] %s: bad data abort: code %d instr 0x%08lx\n", | 801 | pr_err("[%d] %s: bad data abort: code %d instr 0x%08lx\n", |
802 | task_pid_nr(current), current->comm, code, instr); | 802 | task_pid_nr(current), current->comm, code, instr); |
803 | dump_instr(KERN_ERR, regs); | 803 | dump_instr(KERN_ERR, regs); |
804 | show_pte(current->mm, addr); | 804 | show_pte(current->mm, addr); |
805 | } | 805 | } |
@@ -815,29 +815,29 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs) | |||
815 | 815 | ||
816 | void __readwrite_bug(const char *fn) | 816 | void __readwrite_bug(const char *fn) |
817 | { | 817 | { |
818 | printk("%s called, but not implemented\n", fn); | 818 | pr_err("%s called, but not implemented\n", fn); |
819 | BUG(); | 819 | BUG(); |
820 | } | 820 | } |
821 | EXPORT_SYMBOL(__readwrite_bug); | 821 | EXPORT_SYMBOL(__readwrite_bug); |
822 | 822 | ||
823 | void __pte_error(const char *file, int line, pte_t pte) | 823 | void __pte_error(const char *file, int line, pte_t pte) |
824 | { | 824 | { |
825 | printk("%s:%d: bad pte %08llx.\n", file, line, (long long)pte_val(pte)); | 825 | pr_err("%s:%d: bad pte %08llx.\n", file, line, (long long)pte_val(pte)); |
826 | } | 826 | } |
827 | 827 | ||
828 | void __pmd_error(const char *file, int line, pmd_t pmd) | 828 | void __pmd_error(const char *file, int line, pmd_t pmd) |
829 | { | 829 | { |
830 | printk("%s:%d: bad pmd %08llx.\n", file, line, (long long)pmd_val(pmd)); | 830 | pr_err("%s:%d: bad pmd %08llx.\n", file, line, (long long)pmd_val(pmd)); |
831 | } | 831 | } |
832 | 832 | ||
833 | void __pgd_error(const char *file, int line, pgd_t pgd) | 833 | void __pgd_error(const char *file, int line, pgd_t pgd) |
834 | { | 834 | { |
835 | printk("%s:%d: bad pgd %08llx.\n", file, line, (long long)pgd_val(pgd)); | 835 | pr_err("%s:%d: bad pgd %08llx.\n", file, line, (long long)pgd_val(pgd)); |
836 | } | 836 | } |
837 | 837 | ||
838 | asmlinkage void __div0(void) | 838 | asmlinkage void __div0(void) |
839 | { | 839 | { |
840 | printk("Division by zero in kernel.\n"); | 840 | pr_err("Division by zero in kernel.\n"); |
841 | dump_stack(); | 841 | dump_stack(); |
842 | } | 842 | } |
843 | EXPORT_SYMBOL(__div0); | 843 | EXPORT_SYMBOL(__div0); |
diff --git a/arch/arm/kernel/xscale-cp0.c b/arch/arm/kernel/xscale-cp0.c index e42adc6bcdb1..bdbb8853a19b 100644 --- a/arch/arm/kernel/xscale-cp0.c +++ b/arch/arm/kernel/xscale-cp0.c | |||
@@ -157,15 +157,14 @@ static int __init xscale_cp0_init(void) | |||
157 | 157 | ||
158 | if (cpu_has_iwmmxt()) { | 158 | if (cpu_has_iwmmxt()) { |
159 | #ifndef CONFIG_IWMMXT | 159 | #ifndef CONFIG_IWMMXT |
160 | printk(KERN_WARNING "CAUTION: XScale iWMMXt coprocessor " | 160 | pr_warn("CAUTION: XScale iWMMXt coprocessor detected, but kernel support is missing.\n"); |
161 | "detected, but kernel support is missing.\n"); | ||
162 | #else | 161 | #else |
163 | printk(KERN_INFO "XScale iWMMXt coprocessor detected.\n"); | 162 | pr_info("XScale iWMMXt coprocessor detected.\n"); |
164 | elf_hwcap |= HWCAP_IWMMXT; | 163 | elf_hwcap |= HWCAP_IWMMXT; |
165 | thread_register_notifier(&iwmmxt_notifier_block); | 164 | thread_register_notifier(&iwmmxt_notifier_block); |
166 | #endif | 165 | #endif |
167 | } else { | 166 | } else { |
168 | printk(KERN_INFO "XScale DSP coprocessor detected.\n"); | 167 | pr_info("XScale DSP coprocessor detected.\n"); |
169 | thread_register_notifier(&dsp_notifier_block); | 168 | thread_register_notifier(&dsp_notifier_block); |
170 | cp_access |= 1; | 169 | cp_access |= 1; |
171 | } | 170 | } |
diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index 83792f4324ea..2c0c541c60ca 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c | |||
@@ -113,7 +113,7 @@ static int safe_usermode(int new_usermode, bool warn) | |||
113 | new_usermode |= UM_FIXUP; | 113 | new_usermode |= UM_FIXUP; |
114 | 114 | ||
115 | if (warn) | 115 | if (warn) |
116 | printk(KERN_WARNING "alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.\n"); | 116 | pr_warn("alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.\n"); |
117 | } | 117 | } |
118 | 118 | ||
119 | return new_usermode; | 119 | return new_usermode; |
@@ -523,7 +523,7 @@ do_alignment_ldmstm(unsigned long addr, unsigned long instr, struct pt_regs *reg | |||
523 | * processor for us. | 523 | * processor for us. |
524 | */ | 524 | */ |
525 | if (addr != eaddr) { | 525 | if (addr != eaddr) { |
526 | printk(KERN_ERR "LDMSTM: PC = %08lx, instr = %08lx, " | 526 | pr_err("LDMSTM: PC = %08lx, instr = %08lx, " |
527 | "addr = %08lx, eaddr = %08lx\n", | 527 | "addr = %08lx, eaddr = %08lx\n", |
528 | instruction_pointer(regs), instr, addr, eaddr); | 528 | instruction_pointer(regs), instr, addr, eaddr); |
529 | show_regs(regs); | 529 | show_regs(regs); |
@@ -567,7 +567,7 @@ fault: | |||
567 | return TYPE_FAULT; | 567 | return TYPE_FAULT; |
568 | 568 | ||
569 | bad: | 569 | bad: |
570 | printk(KERN_ERR "Alignment trap: not handling ldm with s-bit set\n"); | 570 | pr_err("Alignment trap: not handling ldm with s-bit set\n"); |
571 | return TYPE_ERROR; | 571 | return TYPE_ERROR; |
572 | } | 572 | } |
573 | 573 | ||
@@ -899,13 +899,13 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
899 | return 0; | 899 | return 0; |
900 | 900 | ||
901 | swp: | 901 | swp: |
902 | printk(KERN_ERR "Alignment trap: not handling swp instruction\n"); | 902 | pr_err("Alignment trap: not handling swp instruction\n"); |
903 | 903 | ||
904 | bad: | 904 | bad: |
905 | /* | 905 | /* |
906 | * Oops, we didn't handle the instruction. | 906 | * Oops, we didn't handle the instruction. |
907 | */ | 907 | */ |
908 | printk(KERN_ERR "Alignment trap: not handling instruction " | 908 | pr_err("Alignment trap: not handling instruction " |
909 | "%0*lx at [<%08lx>]\n", | 909 | "%0*lx at [<%08lx>]\n", |
910 | isize << 1, | 910 | isize << 1, |
911 | isize == 2 ? tinstr : instr, instrptr); | 911 | isize == 2 ? tinstr : instr, instrptr); |
diff --git a/arch/arm/mm/cache-feroceon-l2.c b/arch/arm/mm/cache-feroceon-l2.c index e028a7f2ebcc..097181e08c25 100644 --- a/arch/arm/mm/cache-feroceon-l2.c +++ b/arch/arm/mm/cache-feroceon-l2.c | |||
@@ -313,7 +313,7 @@ static void __init disable_l2_prefetch(void) | |||
313 | */ | 313 | */ |
314 | u = read_extra_features(); | 314 | u = read_extra_features(); |
315 | if (!(u & 0x01000000)) { | 315 | if (!(u & 0x01000000)) { |
316 | printk(KERN_INFO "Feroceon L2: Disabling L2 prefetch.\n"); | 316 | pr_info("Feroceon L2: Disabling L2 prefetch.\n"); |
317 | write_extra_features(u | 0x01000000); | 317 | write_extra_features(u | 0x01000000); |
318 | } | 318 | } |
319 | } | 319 | } |
@@ -326,7 +326,7 @@ static void __init enable_l2(void) | |||
326 | if (!(u & 0x00400000)) { | 326 | if (!(u & 0x00400000)) { |
327 | int i, d; | 327 | int i, d; |
328 | 328 | ||
329 | printk(KERN_INFO "Feroceon L2: Enabling L2\n"); | 329 | pr_info("Feroceon L2: Enabling L2\n"); |
330 | 330 | ||
331 | d = flush_and_disable_dcache(); | 331 | d = flush_and_disable_dcache(); |
332 | i = invalidate_and_disable_icache(); | 332 | i = invalidate_and_disable_icache(); |
@@ -353,7 +353,7 @@ void __init feroceon_l2_init(int __l2_wt_override) | |||
353 | 353 | ||
354 | enable_l2(); | 354 | enable_l2(); |
355 | 355 | ||
356 | printk(KERN_INFO "Feroceon L2: Cache support initialised%s.\n", | 356 | pr_info("Feroceon L2: Cache support initialised%s.\n", |
357 | l2_wt_override ? ", in WT override mode" : ""); | 357 | l2_wt_override ? ", in WT override mode" : ""); |
358 | } | 358 | } |
359 | #ifdef CONFIG_OF | 359 | #ifdef CONFIG_OF |
diff --git a/arch/arm/mm/cache-tauros2.c b/arch/arm/mm/cache-tauros2.c index b273739e6359..1e373d268c04 100644 --- a/arch/arm/mm/cache-tauros2.c +++ b/arch/arm/mm/cache-tauros2.c | |||
@@ -185,7 +185,7 @@ static void enable_extra_feature(unsigned int features) | |||
185 | u &= ~0x01000000; | 185 | u &= ~0x01000000; |
186 | else | 186 | else |
187 | u |= 0x01000000; | 187 | u |= 0x01000000; |
188 | printk(KERN_INFO "Tauros2: %s L2 prefetch.\n", | 188 | pr_info("Tauros2: %s L2 prefetch.\n", |
189 | (features & CACHE_TAUROS2_PREFETCH_ON) | 189 | (features & CACHE_TAUROS2_PREFETCH_ON) |
190 | ? "Enabling" : "Disabling"); | 190 | ? "Enabling" : "Disabling"); |
191 | 191 | ||
@@ -193,7 +193,7 @@ static void enable_extra_feature(unsigned int features) | |||
193 | u |= 0x00100000; | 193 | u |= 0x00100000; |
194 | else | 194 | else |
195 | u &= ~0x00100000; | 195 | u &= ~0x00100000; |
196 | printk(KERN_INFO "Tauros2: %s line fill burt8.\n", | 196 | pr_info("Tauros2: %s line fill burt8.\n", |
197 | (features & CACHE_TAUROS2_LINEFILL_BURST8) | 197 | (features & CACHE_TAUROS2_LINEFILL_BURST8) |
198 | ? "Enabling" : "Disabling"); | 198 | ? "Enabling" : "Disabling"); |
199 | 199 | ||
@@ -216,7 +216,7 @@ static void __init tauros2_internal_init(unsigned int features) | |||
216 | */ | 216 | */ |
217 | feat = read_extra_features(); | 217 | feat = read_extra_features(); |
218 | if (!(feat & 0x00400000)) { | 218 | if (!(feat & 0x00400000)) { |
219 | printk(KERN_INFO "Tauros2: Enabling L2 cache.\n"); | 219 | pr_info("Tauros2: Enabling L2 cache.\n"); |
220 | write_extra_features(feat | 0x00400000); | 220 | write_extra_features(feat | 0x00400000); |
221 | } | 221 | } |
222 | 222 | ||
@@ -253,7 +253,7 @@ static void __init tauros2_internal_init(unsigned int features) | |||
253 | */ | 253 | */ |
254 | actlr = read_actlr(); | 254 | actlr = read_actlr(); |
255 | if (!(actlr & 0x00000002)) { | 255 | if (!(actlr & 0x00000002)) { |
256 | printk(KERN_INFO "Tauros2: Enabling L2 cache.\n"); | 256 | pr_info("Tauros2: Enabling L2 cache.\n"); |
257 | write_actlr(actlr | 0x00000002); | 257 | write_actlr(actlr | 0x00000002); |
258 | } | 258 | } |
259 | 259 | ||
@@ -262,11 +262,11 @@ static void __init tauros2_internal_init(unsigned int features) | |||
262 | #endif | 262 | #endif |
263 | 263 | ||
264 | if (mode == NULL) { | 264 | if (mode == NULL) { |
265 | printk(KERN_CRIT "Tauros2: Unable to detect CPU mode.\n"); | 265 | pr_crit("Tauros2: Unable to detect CPU mode.\n"); |
266 | return; | 266 | return; |
267 | } | 267 | } |
268 | 268 | ||
269 | printk(KERN_INFO "Tauros2: L2 cache support initialised " | 269 | pr_info("Tauros2: L2 cache support initialised " |
270 | "in %s mode.\n", mode); | 270 | "in %s mode.\n", mode); |
271 | } | 271 | } |
272 | 272 | ||
diff --git a/arch/arm/mm/fault-armv.c b/arch/arm/mm/fault-armv.c index ff379ac115df..d9e0d00a6699 100644 --- a/arch/arm/mm/fault-armv.c +++ b/arch/arm/mm/fault-armv.c | |||
@@ -235,7 +235,7 @@ void __init check_writebuffer_bugs(void) | |||
235 | const char *reason; | 235 | const char *reason; |
236 | unsigned long v = 1; | 236 | unsigned long v = 1; |
237 | 237 | ||
238 | printk(KERN_INFO "CPU: Testing write buffer coherency: "); | 238 | pr_info("CPU: Testing write buffer coherency: "); |
239 | 239 | ||
240 | page = alloc_page(GFP_KERNEL); | 240 | page = alloc_page(GFP_KERNEL); |
241 | if (page) { | 241 | if (page) { |
@@ -261,9 +261,9 @@ void __init check_writebuffer_bugs(void) | |||
261 | } | 261 | } |
262 | 262 | ||
263 | if (v) { | 263 | if (v) { |
264 | printk("failed, %s\n", reason); | 264 | pr_cont("failed, %s\n", reason); |
265 | shared_pte_mask = L_PTE_MT_UNCACHED; | 265 | shared_pte_mask = L_PTE_MT_UNCACHED; |
266 | } else { | 266 | } else { |
267 | printk("ok\n"); | 267 | pr_cont("ok\n"); |
268 | } | 268 | } |
269 | } | 269 | } |
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index eb8830a4c5ed..a982dc3190df 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c | |||
@@ -63,9 +63,9 @@ void show_pte(struct mm_struct *mm, unsigned long addr) | |||
63 | if (!mm) | 63 | if (!mm) |
64 | mm = &init_mm; | 64 | mm = &init_mm; |
65 | 65 | ||
66 | printk(KERN_ALERT "pgd = %p\n", mm->pgd); | 66 | pr_alert("pgd = %p\n", mm->pgd); |
67 | pgd = pgd_offset(mm, addr); | 67 | pgd = pgd_offset(mm, addr); |
68 | printk(KERN_ALERT "[%08lx] *pgd=%08llx", | 68 | pr_alert("[%08lx] *pgd=%08llx", |
69 | addr, (long long)pgd_val(*pgd)); | 69 | addr, (long long)pgd_val(*pgd)); |
70 | 70 | ||
71 | do { | 71 | do { |
@@ -77,31 +77,31 @@ void show_pte(struct mm_struct *mm, unsigned long addr) | |||
77 | break; | 77 | break; |
78 | 78 | ||
79 | if (pgd_bad(*pgd)) { | 79 | if (pgd_bad(*pgd)) { |
80 | printk("(bad)"); | 80 | pr_cont("(bad)"); |
81 | break; | 81 | break; |
82 | } | 82 | } |
83 | 83 | ||
84 | pud = pud_offset(pgd, addr); | 84 | pud = pud_offset(pgd, addr); |
85 | if (PTRS_PER_PUD != 1) | 85 | if (PTRS_PER_PUD != 1) |
86 | printk(", *pud=%08llx", (long long)pud_val(*pud)); | 86 | pr_cont(", *pud=%08llx", (long long)pud_val(*pud)); |
87 | 87 | ||
88 | if (pud_none(*pud)) | 88 | if (pud_none(*pud)) |
89 | break; | 89 | break; |
90 | 90 | ||
91 | if (pud_bad(*pud)) { | 91 | if (pud_bad(*pud)) { |
92 | printk("(bad)"); | 92 | pr_cont("(bad)"); |
93 | break; | 93 | break; |
94 | } | 94 | } |
95 | 95 | ||
96 | pmd = pmd_offset(pud, addr); | 96 | pmd = pmd_offset(pud, addr); |
97 | if (PTRS_PER_PMD != 1) | 97 | if (PTRS_PER_PMD != 1) |
98 | printk(", *pmd=%08llx", (long long)pmd_val(*pmd)); | 98 | pr_cont(", *pmd=%08llx", (long long)pmd_val(*pmd)); |
99 | 99 | ||
100 | if (pmd_none(*pmd)) | 100 | if (pmd_none(*pmd)) |
101 | break; | 101 | break; |
102 | 102 | ||
103 | if (pmd_bad(*pmd)) { | 103 | if (pmd_bad(*pmd)) { |
104 | printk("(bad)"); | 104 | pr_cont("(bad)"); |
105 | break; | 105 | break; |
106 | } | 106 | } |
107 | 107 | ||
@@ -110,15 +110,15 @@ void show_pte(struct mm_struct *mm, unsigned long addr) | |||
110 | break; | 110 | break; |
111 | 111 | ||
112 | pte = pte_offset_map(pmd, addr); | 112 | pte = pte_offset_map(pmd, addr); |
113 | printk(", *pte=%08llx", (long long)pte_val(*pte)); | 113 | pr_cont(", *pte=%08llx", (long long)pte_val(*pte)); |
114 | #ifndef CONFIG_ARM_LPAE | 114 | #ifndef CONFIG_ARM_LPAE |
115 | printk(", *ppte=%08llx", | 115 | pr_cont(", *ppte=%08llx", |
116 | (long long)pte_val(pte[PTE_HWTABLE_PTRS])); | 116 | (long long)pte_val(pte[PTE_HWTABLE_PTRS])); |
117 | #endif | 117 | #endif |
118 | pte_unmap(pte); | 118 | pte_unmap(pte); |
119 | } while(0); | 119 | } while(0); |
120 | 120 | ||
121 | printk("\n"); | 121 | pr_cont("\n"); |
122 | } | 122 | } |
123 | #else /* CONFIG_MMU */ | 123 | #else /* CONFIG_MMU */ |
124 | void show_pte(struct mm_struct *mm, unsigned long addr) | 124 | void show_pte(struct mm_struct *mm, unsigned long addr) |
@@ -142,10 +142,9 @@ __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, | |||
142 | * No handler, we'll have to terminate things with extreme prejudice. | 142 | * No handler, we'll have to terminate things with extreme prejudice. |
143 | */ | 143 | */ |
144 | bust_spinlocks(1); | 144 | bust_spinlocks(1); |
145 | printk(KERN_ALERT | 145 | pr_alert("Unable to handle kernel %s at virtual address %08lx\n", |
146 | "Unable to handle kernel %s at virtual address %08lx\n", | 146 | (addr < PAGE_SIZE) ? "NULL pointer dereference" : |
147 | (addr < PAGE_SIZE) ? "NULL pointer dereference" : | 147 | "paging request", addr); |
148 | "paging request", addr); | ||
149 | 148 | ||
150 | show_pte(mm, addr); | 149 | show_pte(mm, addr); |
151 | die("Oops", regs, fsr); | 150 | die("Oops", regs, fsr); |
@@ -551,7 +550,7 @@ do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
551 | if (!inf->fn(addr, fsr & ~FSR_LNX_PF, regs)) | 550 | if (!inf->fn(addr, fsr & ~FSR_LNX_PF, regs)) |
552 | return; | 551 | return; |
553 | 552 | ||
554 | printk(KERN_ALERT "Unhandled fault: %s (0x%03x) at 0x%08lx\n", | 553 | pr_alert("Unhandled fault: %s (0x%03x) at 0x%08lx\n", |
555 | inf->name, fsr, addr); | 554 | inf->name, fsr, addr); |
556 | 555 | ||
557 | info.si_signo = inf->sig; | 556 | info.si_signo = inf->sig; |
@@ -583,7 +582,7 @@ do_PrefetchAbort(unsigned long addr, unsigned int ifsr, struct pt_regs *regs) | |||
583 | if (!inf->fn(addr, ifsr | FSR_LNX_PF, regs)) | 582 | if (!inf->fn(addr, ifsr | FSR_LNX_PF, regs)) |
584 | return; | 583 | return; |
585 | 584 | ||
586 | printk(KERN_ALERT "Unhandled prefetch abort: %s (0x%03x) at 0x%08lx\n", | 585 | pr_alert("Unhandled prefetch abort: %s (0x%03x) at 0x%08lx\n", |
587 | inf->name, ifsr, addr); | 586 | inf->name, ifsr, addr); |
588 | 587 | ||
589 | info.si_signo = inf->sig; | 588 | info.si_signo = inf->sig; |
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 92bba32d9230..6ca53c338519 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -67,7 +67,7 @@ early_param("initrd", early_initrd); | |||
67 | 67 | ||
68 | static int __init parse_tag_initrd(const struct tag *tag) | 68 | static int __init parse_tag_initrd(const struct tag *tag) |
69 | { | 69 | { |
70 | printk(KERN_WARNING "ATAG_INITRD is deprecated; " | 70 | pr_warn("ATAG_INITRD is deprecated; " |
71 | "please update your bootloader.\n"); | 71 | "please update your bootloader.\n"); |
72 | phys_initrd_start = __virt_to_phys(tag->u.initrd.start); | 72 | phys_initrd_start = __virt_to_phys(tag->u.initrd.start); |
73 | phys_initrd_size = tag->u.initrd.size; | 73 | phys_initrd_size = tag->u.initrd.size; |
@@ -544,7 +544,7 @@ void __init mem_init(void) | |||
544 | #define MLM(b, t) b, t, ((t) - (b)) >> 20 | 544 | #define MLM(b, t) b, t, ((t) - (b)) >> 20 |
545 | #define MLK_ROUNDUP(b, t) b, t, DIV_ROUND_UP(((t) - (b)), SZ_1K) | 545 | #define MLK_ROUNDUP(b, t) b, t, DIV_ROUND_UP(((t) - (b)), SZ_1K) |
546 | 546 | ||
547 | printk(KERN_NOTICE "Virtual kernel memory layout:\n" | 547 | pr_notice("Virtual kernel memory layout:\n" |
548 | " vector : 0x%08lx - 0x%08lx (%4ld kB)\n" | 548 | " vector : 0x%08lx - 0x%08lx (%4ld kB)\n" |
549 | #ifdef CONFIG_HAVE_TCM | 549 | #ifdef CONFIG_HAVE_TCM |
550 | " DTCM : 0x%08lx - 0x%08lx (%4ld kB)\n" | 550 | " DTCM : 0x%08lx - 0x%08lx (%4ld kB)\n" |
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 9f98cec7fe1e..d028dc74a9d5 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -192,7 +192,7 @@ early_param("cachepolicy", early_cachepolicy); | |||
192 | static int __init early_nocache(char *__unused) | 192 | static int __init early_nocache(char *__unused) |
193 | { | 193 | { |
194 | char *p = "buffered"; | 194 | char *p = "buffered"; |
195 | printk(KERN_WARNING "nocache is deprecated; use cachepolicy=%s\n", p); | 195 | pr_warn("nocache is deprecated; use cachepolicy=%s\n", p); |
196 | early_cachepolicy(p); | 196 | early_cachepolicy(p); |
197 | return 0; | 197 | return 0; |
198 | } | 198 | } |
@@ -201,7 +201,7 @@ early_param("nocache", early_nocache); | |||
201 | static int __init early_nowrite(char *__unused) | 201 | static int __init early_nowrite(char *__unused) |
202 | { | 202 | { |
203 | char *p = "uncached"; | 203 | char *p = "uncached"; |
204 | printk(KERN_WARNING "nowb is deprecated; use cachepolicy=%s\n", p); | 204 | pr_warn("nowb is deprecated; use cachepolicy=%s\n", p); |
205 | early_cachepolicy(p); | 205 | early_cachepolicy(p); |
206 | return 0; | 206 | return 0; |
207 | } | 207 | } |
@@ -786,8 +786,7 @@ static void __init create_36bit_mapping(struct map_desc *md, | |||
786 | length = PAGE_ALIGN(md->length); | 786 | length = PAGE_ALIGN(md->length); |
787 | 787 | ||
788 | if (!(cpu_architecture() >= CPU_ARCH_ARMv6 || cpu_is_xsc3())) { | 788 | if (!(cpu_architecture() >= CPU_ARCH_ARMv6 || cpu_is_xsc3())) { |
789 | printk(KERN_ERR "MM: CPU does not support supersection " | 789 | pr_err("MM: CPU does not support supersection mapping for 0x%08llx at 0x%08lx\n", |
790 | "mapping for 0x%08llx at 0x%08lx\n", | ||
791 | (long long)__pfn_to_phys((u64)md->pfn), addr); | 790 | (long long)__pfn_to_phys((u64)md->pfn), addr); |
792 | return; | 791 | return; |
793 | } | 792 | } |
@@ -799,15 +798,13 @@ static void __init create_36bit_mapping(struct map_desc *md, | |||
799 | * of the actual domain assignments in use. | 798 | * of the actual domain assignments in use. |
800 | */ | 799 | */ |
801 | if (type->domain) { | 800 | if (type->domain) { |
802 | printk(KERN_ERR "MM: invalid domain in supersection " | 801 | pr_err("MM: invalid domain in supersection mapping for 0x%08llx at 0x%08lx\n", |
803 | "mapping for 0x%08llx at 0x%08lx\n", | ||
804 | (long long)__pfn_to_phys((u64)md->pfn), addr); | 802 | (long long)__pfn_to_phys((u64)md->pfn), addr); |
805 | return; | 803 | return; |
806 | } | 804 | } |
807 | 805 | ||
808 | if ((addr | length | __pfn_to_phys(md->pfn)) & ~SUPERSECTION_MASK) { | 806 | if ((addr | length | __pfn_to_phys(md->pfn)) & ~SUPERSECTION_MASK) { |
809 | printk(KERN_ERR "MM: cannot create mapping for 0x%08llx" | 807 | pr_err("MM: cannot create mapping for 0x%08llx at 0x%08lx invalid alignment\n", |
810 | " at 0x%08lx invalid alignment\n", | ||
811 | (long long)__pfn_to_phys((u64)md->pfn), addr); | 808 | (long long)__pfn_to_phys((u64)md->pfn), addr); |
812 | return; | 809 | return; |
813 | } | 810 | } |
@@ -850,18 +847,16 @@ static void __init create_mapping(struct map_desc *md) | |||
850 | pgd_t *pgd; | 847 | pgd_t *pgd; |
851 | 848 | ||
852 | if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) { | 849 | if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) { |
853 | printk(KERN_WARNING "BUG: not creating mapping for 0x%08llx" | 850 | pr_warn("BUG: not creating mapping for 0x%08llx at 0x%08lx in user region\n", |
854 | " at 0x%08lx in user region\n", | 851 | (long long)__pfn_to_phys((u64)md->pfn), md->virtual); |
855 | (long long)__pfn_to_phys((u64)md->pfn), md->virtual); | ||
856 | return; | 852 | return; |
857 | } | 853 | } |
858 | 854 | ||
859 | if ((md->type == MT_DEVICE || md->type == MT_ROM) && | 855 | if ((md->type == MT_DEVICE || md->type == MT_ROM) && |
860 | md->virtual >= PAGE_OFFSET && | 856 | md->virtual >= PAGE_OFFSET && |
861 | (md->virtual < VMALLOC_START || md->virtual >= VMALLOC_END)) { | 857 | (md->virtual < VMALLOC_START || md->virtual >= VMALLOC_END)) { |
862 | printk(KERN_WARNING "BUG: mapping for 0x%08llx" | 858 | pr_warn("BUG: mapping for 0x%08llx at 0x%08lx out of vmalloc space\n", |
863 | " at 0x%08lx out of vmalloc space\n", | 859 | (long long)__pfn_to_phys((u64)md->pfn), md->virtual); |
864 | (long long)__pfn_to_phys((u64)md->pfn), md->virtual); | ||
865 | } | 860 | } |
866 | 861 | ||
867 | type = &mem_types[md->type]; | 862 | type = &mem_types[md->type]; |
@@ -881,9 +876,8 @@ static void __init create_mapping(struct map_desc *md) | |||
881 | length = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK)); | 876 | length = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK)); |
882 | 877 | ||
883 | if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) { | 878 | if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) { |
884 | printk(KERN_WARNING "BUG: map for 0x%08llx at 0x%08lx can not " | 879 | pr_warn("BUG: map for 0x%08llx at 0x%08lx can not be mapped using pages, ignoring.\n", |
885 | "be mapped using pages, ignoring.\n", | 880 | (long long)__pfn_to_phys(md->pfn), addr); |
886 | (long long)__pfn_to_phys(md->pfn), addr); | ||
887 | return; | 881 | return; |
888 | } | 882 | } |
889 | 883 | ||
@@ -1053,15 +1047,13 @@ static int __init early_vmalloc(char *arg) | |||
1053 | 1047 | ||
1054 | if (vmalloc_reserve < SZ_16M) { | 1048 | if (vmalloc_reserve < SZ_16M) { |
1055 | vmalloc_reserve = SZ_16M; | 1049 | vmalloc_reserve = SZ_16M; |
1056 | printk(KERN_WARNING | 1050 | pr_warn("vmalloc area too small, limiting to %luMB\n", |
1057 | "vmalloc area too small, limiting to %luMB\n", | ||
1058 | vmalloc_reserve >> 20); | 1051 | vmalloc_reserve >> 20); |
1059 | } | 1052 | } |
1060 | 1053 | ||
1061 | if (vmalloc_reserve > VMALLOC_END - (PAGE_OFFSET + SZ_32M)) { | 1054 | if (vmalloc_reserve > VMALLOC_END - (PAGE_OFFSET + SZ_32M)) { |
1062 | vmalloc_reserve = VMALLOC_END - (PAGE_OFFSET + SZ_32M); | 1055 | vmalloc_reserve = VMALLOC_END - (PAGE_OFFSET + SZ_32M); |
1063 | printk(KERN_WARNING | 1056 | pr_warn("vmalloc area is too big, limiting to %luMB\n", |
1064 | "vmalloc area is too big, limiting to %luMB\n", | ||
1065 | vmalloc_reserve >> 20); | 1057 | vmalloc_reserve >> 20); |
1066 | } | 1058 | } |
1067 | 1059 | ||
@@ -1094,7 +1086,7 @@ void __init sanity_check_meminfo(void) | |||
1094 | 1086 | ||
1095 | if (highmem) { | 1087 | if (highmem) { |
1096 | pr_notice("Ignoring RAM at %pa-%pa (!CONFIG_HIGHMEM)\n", | 1088 | pr_notice("Ignoring RAM at %pa-%pa (!CONFIG_HIGHMEM)\n", |
1097 | &block_start, &block_end); | 1089 | &block_start, &block_end); |
1098 | memblock_remove(reg->base, reg->size); | 1090 | memblock_remove(reg->base, reg->size); |
1099 | continue; | 1091 | continue; |
1100 | } | 1092 | } |
@@ -1103,7 +1095,7 @@ void __init sanity_check_meminfo(void) | |||
1103 | phys_addr_t overlap_size = reg->size - size_limit; | 1095 | phys_addr_t overlap_size = reg->size - size_limit; |
1104 | 1096 | ||
1105 | pr_notice("Truncating RAM at %pa-%pa to -%pa", | 1097 | pr_notice("Truncating RAM at %pa-%pa to -%pa", |
1106 | &block_start, &block_end, &vmalloc_limit); | 1098 | &block_start, &block_end, &vmalloc_limit); |
1107 | memblock_remove(vmalloc_limit, overlap_size); | 1099 | memblock_remove(vmalloc_limit, overlap_size); |
1108 | block_end = vmalloc_limit; | 1100 | block_end = vmalloc_limit; |
1109 | } | 1101 | } |
diff --git a/arch/arm/nwfpe/fpmodule.c b/arch/arm/nwfpe/fpmodule.c index 4e729f055a81..b2a9182acf14 100644 --- a/arch/arm/nwfpe/fpmodule.c +++ b/arch/arm/nwfpe/fpmodule.c | |||
@@ -86,12 +86,12 @@ extern void nwfpe_enter(void); | |||
86 | static int __init fpe_init(void) | 86 | static int __init fpe_init(void) |
87 | { | 87 | { |
88 | if (sizeof(FPA11) > sizeof(union fp_state)) { | 88 | if (sizeof(FPA11) > sizeof(union fp_state)) { |
89 | printk(KERN_ERR "nwfpe: bad structure size\n"); | 89 | pr_err("nwfpe: bad structure size\n"); |
90 | return -EINVAL; | 90 | return -EINVAL; |
91 | } | 91 | } |
92 | 92 | ||
93 | if (sizeof(FPREG) != 12) { | 93 | if (sizeof(FPREG) != 12) { |
94 | printk(KERN_ERR "nwfpe: bad register size\n"); | 94 | pr_err("nwfpe: bad register size\n"); |
95 | return -EINVAL; | 95 | return -EINVAL; |
96 | } | 96 | } |
97 | if (fpe_type[0] && strcmp(fpe_type, "nwfpe")) | 97 | if (fpe_type[0] && strcmp(fpe_type, "nwfpe")) |
diff --git a/arch/arm/vfp/vfpsingle.c b/arch/arm/vfp/vfpsingle.c index 4f96c1617aae..f0465ba0f221 100644 --- a/arch/arm/vfp/vfpsingle.c +++ b/arch/arm/vfp/vfpsingle.c | |||
@@ -290,7 +290,7 @@ u32 vfp_estimate_sqrt_significand(u32 exponent, u32 significand) | |||
290 | u32 z, a; | 290 | u32 z, a; |
291 | 291 | ||
292 | if ((significand & 0xc0000000) != 0x40000000) { | 292 | if ((significand & 0xc0000000) != 0x40000000) { |
293 | printk(KERN_WARNING "VFP: estimate_sqrt: invalid significand\n"); | 293 | pr_warn("VFP: estimate_sqrt: invalid significand\n"); |
294 | } | 294 | } |
295 | 295 | ||
296 | a = significand << 1; | 296 | a = significand << 1; |