mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
mm/memory_hotplug.c: fix printk format warnings
Fix printk format warnings in mm/memory_hotplug.c by using "%pa": mm/memory_hotplug.c: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'resource_size_t' [-Wformat] mm/memory_hotplug.c: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' [-Wformat] 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>
This commit is contained in:
parent
136e8770cd
commit
348f9f05e0
@ -720,9 +720,12 @@ int __remove_pages(struct zone *zone, unsigned long phys_start_pfn,
|
|||||||
start = phys_start_pfn << PAGE_SHIFT;
|
start = phys_start_pfn << PAGE_SHIFT;
|
||||||
size = nr_pages * PAGE_SIZE;
|
size = nr_pages * PAGE_SIZE;
|
||||||
ret = release_mem_region_adjustable(&iomem_resource, start, size);
|
ret = release_mem_region_adjustable(&iomem_resource, start, size);
|
||||||
if (ret)
|
if (ret) {
|
||||||
pr_warn("Unable to release resource <%016llx-%016llx> (%d)\n",
|
resource_size_t endres = start + size - 1;
|
||||||
start, start + size - 1, ret);
|
|
||||||
|
pr_warn("Unable to release resource <%pa-%pa> (%d)\n",
|
||||||
|
&start, &endres, ret);
|
||||||
|
}
|
||||||
|
|
||||||
sections_to_remove = nr_pages / PAGES_PER_SECTION;
|
sections_to_remove = nr_pages / PAGES_PER_SECTION;
|
||||||
for (i = 0; i < sections_to_remove; i++) {
|
for (i = 0; i < sections_to_remove; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user