aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2013-04-29 18:08:49 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 18:54:39 -0400
commit349daa0f93177958c4618542a61926674169a698 (patch)
tree47fe74eb9530065cce9509152003b34f0ed211c7 /mm
parent0cdc444a67ccdbd58bfbcba865cb17a9f17a7691 (diff)
mm: fix memory_hotplug.c printk format warning
PFN_PHYS() is a phys_addr_t, which can be u32 or u64. Fix the build warning when phys_addr_t is u32. mm/memory_hotplug.c: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'unsigned int' [-Wformat]: => 1685:3 mm/memory_hotplug.c: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'unsigned int' [-Wformat]: => 1685:3 Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory_hotplug.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 60f6daad1076..a221fac1f47d 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -1690,11 +1690,15 @@ static int is_memblock_offlined_cb(struct memory_block *mem, void *arg)
1690{ 1690{
1691 int ret = !is_memblock_offlined(mem); 1691 int ret = !is_memblock_offlined(mem);
1692 1692
1693 if (unlikely(ret)) 1693 if (unlikely(ret)) {
1694 phys_addr_t beginpa, endpa;
1695
1696 beginpa = PFN_PHYS(section_nr_to_pfn(mem->start_section_nr));
1697 endpa = PFN_PHYS(section_nr_to_pfn(mem->end_section_nr + 1))-1;
1694 pr_warn("removing memory fails, because memory " 1698 pr_warn("removing memory fails, because memory "
1695 "[%#010llx-%#010llx] is onlined\n", 1699 "[%pa-%pa] is onlined\n",
1696 PFN_PHYS(section_nr_to_pfn(mem->start_section_nr)), 1700 &beginpa, &endpa);
1697 PFN_PHYS(section_nr_to_pfn(mem->end_section_nr + 1))-1); 1701 }
1698 1702
1699 return ret; 1703 return ret;
1700} 1704}