aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2018-05-10 11:45:30 -0400
committerThomas Gleixner <tglx@linutronix.de>2018-05-13 15:25:18 -0400
commit1de392f5d5e803663abbd8ed084233f154152bcd (patch)
treec9394c47594e15be32a52243ef4347f64826c74a
parenta7a3153a98d581196ce092e0b83cac2c4ee1fd1f (diff)
x86: Remove pr_fmt duplicate logging prefixes
Converting pr_fmt from a default simple #define to use KBUILD_MODNAME added some duplicate prefixes. Remove the duplicate prefixes. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Link: https://lkml.kernel.org/r/e7b709a2b040af7faa81b0aa2c3a125aed628a82.1525964383.git.joe@perches.com
-rw-r--r--arch/x86/events/amd/ibs.c2
-rw-r--r--arch/x86/kernel/e820.c32
-rw-r--r--arch/x86/kernel/hpet.c5
-rw-r--r--arch/x86/kernel/uprobes.c4
-rw-r--r--arch/x86/mm/numa.c22
5 files changed, 33 insertions, 32 deletions
diff --git a/arch/x86/events/amd/ibs.c b/arch/x86/events/amd/ibs.c
index 786fd875de92..4b98101209a1 100644
--- a/arch/x86/events/amd/ibs.c
+++ b/arch/x86/events/amd/ibs.c
@@ -889,7 +889,7 @@ static void force_ibs_eilvt_setup(void)
889 if (!ibs_eilvt_valid()) 889 if (!ibs_eilvt_valid())
890 goto out; 890 goto out;
891 891
892 pr_info("IBS: LVT offset %d assigned\n", offset); 892 pr_info("LVT offset %d assigned\n", offset);
893 893
894 return; 894 return;
895out: 895out:
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c
index 6a2cb1442e05..d1f25c831447 100644
--- a/arch/x86/kernel/e820.c
+++ b/arch/x86/kernel/e820.c
@@ -155,7 +155,8 @@ static void __init __e820__range_add(struct e820_table *table, u64 start, u64 si
155 int x = table->nr_entries; 155 int x = table->nr_entries;
156 156
157 if (x >= ARRAY_SIZE(table->entries)) { 157 if (x >= ARRAY_SIZE(table->entries)) {
158 pr_err("e820: too many entries; ignoring [mem %#010llx-%#010llx]\n", start, start + size - 1); 158 pr_err("too many entries; ignoring [mem %#010llx-%#010llx]\n",
159 start, start + size - 1);
159 return; 160 return;
160 } 161 }
161 162
@@ -190,9 +191,10 @@ void __init e820__print_table(char *who)
190 int i; 191 int i;
191 192
192 for (i = 0; i < e820_table->nr_entries; i++) { 193 for (i = 0; i < e820_table->nr_entries; i++) {
193 pr_info("%s: [mem %#018Lx-%#018Lx] ", who, 194 pr_info("%s: [mem %#018Lx-%#018Lx] ",
194 e820_table->entries[i].addr, 195 who,
195 e820_table->entries[i].addr + e820_table->entries[i].size - 1); 196 e820_table->entries[i].addr,
197 e820_table->entries[i].addr + e820_table->entries[i].size - 1);
196 198
197 e820_print_type(e820_table->entries[i].type); 199 e820_print_type(e820_table->entries[i].type);
198 pr_cont("\n"); 200 pr_cont("\n");
@@ -574,7 +576,7 @@ void __init e820__update_table_print(void)
574 if (e820__update_table(e820_table)) 576 if (e820__update_table(e820_table))
575 return; 577 return;
576 578
577 pr_info("e820: modified physical RAM map:\n"); 579 pr_info("modified physical RAM map:\n");
578 e820__print_table("modified"); 580 e820__print_table("modified");
579} 581}
580 582
@@ -636,9 +638,8 @@ __init void e820__setup_pci_gap(void)
636 if (!found) { 638 if (!found) {
637#ifdef CONFIG_X86_64 639#ifdef CONFIG_X86_64
638 gapstart = (max_pfn << PAGE_SHIFT) + 1024*1024; 640 gapstart = (max_pfn << PAGE_SHIFT) + 1024*1024;
639 pr_err( 641 pr_err("Cannot find an available gap in the 32-bit address range\n");
640 "e820: Cannot find an available gap in the 32-bit address range\n" 642 pr_err("PCI devices with unassigned 32-bit BARs may not work!\n");
641 "e820: PCI devices with unassigned 32-bit BARs may not work!\n");
642#else 643#else
643 gapstart = 0x10000000; 644 gapstart = 0x10000000;
644#endif 645#endif
@@ -649,7 +650,8 @@ __init void e820__setup_pci_gap(void)
649 */ 650 */
650 pci_mem_start = gapstart; 651 pci_mem_start = gapstart;
651 652
652 pr_info("e820: [mem %#010lx-%#010lx] available for PCI devices\n", gapstart, gapstart + gapsize - 1); 653 pr_info("[mem %#010lx-%#010lx] available for PCI devices\n",
654 gapstart, gapstart + gapsize - 1);
653} 655}
654 656
655/* 657/*
@@ -711,7 +713,7 @@ void __init e820__memory_setup_extended(u64 phys_addr, u32 data_len)
711 memcpy(e820_table_firmware, e820_table, sizeof(*e820_table_firmware)); 713 memcpy(e820_table_firmware, e820_table, sizeof(*e820_table_firmware));
712 714
713 early_memunmap(sdata, data_len); 715 early_memunmap(sdata, data_len);
714 pr_info("e820: extended physical RAM map:\n"); 716 pr_info("extended physical RAM map:\n");
715 e820__print_table("extended"); 717 e820__print_table("extended");
716} 718}
717 719
@@ -780,7 +782,7 @@ u64 __init e820__memblock_alloc_reserved(u64 size, u64 align)
780 addr = __memblock_alloc_base(size, align, MEMBLOCK_ALLOC_ACCESSIBLE); 782 addr = __memblock_alloc_base(size, align, MEMBLOCK_ALLOC_ACCESSIBLE);
781 if (addr) { 783 if (addr) {
782 e820__range_update_kexec(addr, size, E820_TYPE_RAM, E820_TYPE_RESERVED); 784 e820__range_update_kexec(addr, size, E820_TYPE_RAM, E820_TYPE_RESERVED);
783 pr_info("e820: update e820_table_kexec for e820__memblock_alloc_reserved()\n"); 785 pr_info("update e820_table_kexec for e820__memblock_alloc_reserved()\n");
784 e820__update_table_kexec(); 786 e820__update_table_kexec();
785 } 787 }
786 788
@@ -830,8 +832,8 @@ static unsigned long __init e820_end_pfn(unsigned long limit_pfn, enum e820_type
830 if (last_pfn > max_arch_pfn) 832 if (last_pfn > max_arch_pfn)
831 last_pfn = max_arch_pfn; 833 last_pfn = max_arch_pfn;
832 834
833 pr_info("e820: last_pfn = %#lx max_arch_pfn = %#lx\n", 835 pr_info("last_pfn = %#lx max_arch_pfn = %#lx\n",
834 last_pfn, max_arch_pfn); 836 last_pfn, max_arch_pfn);
835 return last_pfn; 837 return last_pfn;
836} 838}
837 839
@@ -1005,7 +1007,7 @@ void __init e820__finish_early_params(void)
1005 if (e820__update_table(e820_table) < 0) 1007 if (e820__update_table(e820_table) < 0)
1006 early_panic("Invalid user supplied memory map"); 1008 early_panic("Invalid user supplied memory map");
1007 1009
1008 pr_info("e820: user-defined physical RAM map:\n"); 1010 pr_info("user-defined physical RAM map:\n");
1009 e820__print_table("user"); 1011 e820__print_table("user");
1010 } 1012 }
1011} 1013}
@@ -1238,7 +1240,7 @@ void __init e820__memory_setup(void)
1238 memcpy(e820_table_kexec, e820_table, sizeof(*e820_table_kexec)); 1240 memcpy(e820_table_kexec, e820_table, sizeof(*e820_table_kexec));
1239 memcpy(e820_table_firmware, e820_table, sizeof(*e820_table_firmware)); 1241 memcpy(e820_table_firmware, e820_table, sizeof(*e820_table_firmware));
1240 1242
1241 pr_info("e820: BIOS-provided physical RAM map:\n"); 1243 pr_info("BIOS-provided physical RAM map:\n");
1242 e820__print_table(who); 1244 e820__print_table(who);
1243} 1245}
1244 1246
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 8ce4212e2b8d..b6be34ee88e9 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -975,8 +975,7 @@ int __init hpet_enable(void)
975 cfg &= ~(HPET_CFG_ENABLE | HPET_CFG_LEGACY); 975 cfg &= ~(HPET_CFG_ENABLE | HPET_CFG_LEGACY);
976 hpet_writel(cfg, HPET_CFG); 976 hpet_writel(cfg, HPET_CFG);
977 if (cfg) 977 if (cfg)
978 pr_warn("HPET: Unrecognized bits %#x set in global cfg\n", 978 pr_warn("Unrecognized bits %#x set in global cfg\n", cfg);
979 cfg);
980 979
981 for (i = 0; i <= last; ++i) { 980 for (i = 0; i <= last; ++i) {
982 cfg = hpet_readl(HPET_Tn_CFG(i)); 981 cfg = hpet_readl(HPET_Tn_CFG(i));
@@ -988,7 +987,7 @@ int __init hpet_enable(void)
988 | HPET_TN_64BIT_CAP | HPET_TN_32BIT | HPET_TN_ROUTE 987 | HPET_TN_64BIT_CAP | HPET_TN_32BIT | HPET_TN_ROUTE
989 | HPET_TN_FSB | HPET_TN_FSB_CAP); 988 | HPET_TN_FSB | HPET_TN_FSB_CAP);
990 if (cfg) 989 if (cfg)
991 pr_warn("HPET: Unrecognized bits %#x set in cfg#%u\n", 990 pr_warn("Unrecognized bits %#x set in cfg#%u\n",
992 cfg, i); 991 cfg, i);
993 } 992 }
994 hpet_print_config(); 993 hpet_print_config();
diff --git a/arch/x86/kernel/uprobes.c b/arch/x86/kernel/uprobes.c
index 85c7ef23d99f..d1c468741915 100644
--- a/arch/x86/kernel/uprobes.c
+++ b/arch/x86/kernel/uprobes.c
@@ -1079,8 +1079,8 @@ arch_uretprobe_hijack_return_addr(unsigned long trampoline_vaddr, struct pt_regs
1079 return orig_ret_vaddr; 1079 return orig_ret_vaddr;
1080 1080
1081 if (nleft != rasize) { 1081 if (nleft != rasize) {
1082 pr_err("uprobe: return address clobbered: pid=%d, %%sp=%#lx, " 1082 pr_err("return address clobbered: pid=%d, %%sp=%#lx, %%ip=%#lx\n",
1083 "%%ip=%#lx\n", current->pid, regs->sp, regs->ip); 1083 current->pid, regs->sp, regs->ip);
1084 1084
1085 force_sig_info(SIGSEGV, SEND_SIG_FORCED, current); 1085 force_sig_info(SIGSEGV, SEND_SIG_FORCED, current);
1086 } 1086 }
diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c
index 25504d5aa816..fa150855647c 100644
--- a/arch/x86/mm/numa.c
+++ b/arch/x86/mm/numa.c
@@ -136,13 +136,13 @@ static int __init numa_add_memblk_to(int nid, u64 start, u64 end,
136 136
137 /* whine about and ignore invalid blks */ 137 /* whine about and ignore invalid blks */
138 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { 138 if (start > end || nid < 0 || nid >= MAX_NUMNODES) {
139 pr_warning("NUMA: Warning: invalid memblk node %d [mem %#010Lx-%#010Lx]\n", 139 pr_warn("Warning: invalid memblk node %d [mem %#010Lx-%#010Lx]\n",
140 nid, start, end - 1); 140 nid, start, end - 1);
141 return 0; 141 return 0;
142 } 142 }
143 143
144 if (mi->nr_blks >= NR_NODE_MEMBLKS) { 144 if (mi->nr_blks >= NR_NODE_MEMBLKS) {
145 pr_err("NUMA: too many memblk ranges\n"); 145 pr_err("too many memblk ranges\n");
146 return -EINVAL; 146 return -EINVAL;
147 } 147 }
148 148
@@ -267,14 +267,14 @@ int __init numa_cleanup_meminfo(struct numa_meminfo *mi)
267 */ 267 */
268 if (bi->end > bj->start && bi->start < bj->end) { 268 if (bi->end > bj->start && bi->start < bj->end) {
269 if (bi->nid != bj->nid) { 269 if (bi->nid != bj->nid) {
270 pr_err("NUMA: node %d [mem %#010Lx-%#010Lx] overlaps with node %d [mem %#010Lx-%#010Lx]\n", 270 pr_err("node %d [mem %#010Lx-%#010Lx] overlaps with node %d [mem %#010Lx-%#010Lx]\n",
271 bi->nid, bi->start, bi->end - 1, 271 bi->nid, bi->start, bi->end - 1,
272 bj->nid, bj->start, bj->end - 1); 272 bj->nid, bj->start, bj->end - 1);
273 return -EINVAL; 273 return -EINVAL;
274 } 274 }
275 pr_warning("NUMA: Warning: node %d [mem %#010Lx-%#010Lx] overlaps with itself [mem %#010Lx-%#010Lx]\n", 275 pr_warn("Warning: node %d [mem %#010Lx-%#010Lx] overlaps with itself [mem %#010Lx-%#010Lx]\n",
276 bi->nid, bi->start, bi->end - 1, 276 bi->nid, bi->start, bi->end - 1,
277 bj->start, bj->end - 1); 277 bj->start, bj->end - 1);
278 } 278 }
279 279
280 /* 280 /*
@@ -364,7 +364,7 @@ static int __init numa_alloc_distance(void)
364 phys = memblock_find_in_range(0, PFN_PHYS(max_pfn_mapped), 364 phys = memblock_find_in_range(0, PFN_PHYS(max_pfn_mapped),
365 size, PAGE_SIZE); 365 size, PAGE_SIZE);
366 if (!phys) { 366 if (!phys) {
367 pr_warning("NUMA: Warning: can't allocate distance table!\n"); 367 pr_warn("Warning: can't allocate distance table!\n");
368 /* don't retry until explicitly reset */ 368 /* don't retry until explicitly reset */
369 numa_distance = (void *)1LU; 369 numa_distance = (void *)1LU;
370 return -ENOMEM; 370 return -ENOMEM;
@@ -410,14 +410,14 @@ void __init numa_set_distance(int from, int to, int distance)
410 410
411 if (from >= numa_distance_cnt || to >= numa_distance_cnt || 411 if (from >= numa_distance_cnt || to >= numa_distance_cnt ||
412 from < 0 || to < 0) { 412 from < 0 || to < 0) {
413 pr_warn_once("NUMA: Warning: node ids are out of bound, from=%d to=%d distance=%d\n", 413 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n",
414 from, to, distance); 414 from, to, distance);
415 return; 415 return;
416 } 416 }
417 417
418 if ((u8)distance != distance || 418 if ((u8)distance != distance ||
419 (from == to && distance != LOCAL_DISTANCE)) { 419 (from == to && distance != LOCAL_DISTANCE)) {
420 pr_warn_once("NUMA: Warning: invalid distance parameter, from=%d to=%d distance=%d\n", 420 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n",
421 from, to, distance); 421 from, to, distance);
422 return; 422 return;
423 } 423 }