mm/memory_hotplug: Fixup "Release memory resource after arch_remove_memory()"
diff mbox series

Message ID
State In Next
Commit 60378ae6118d4f36e761732d0cbd79cd310e3b65
Headers show
  • mm/memory_hotplug: Fixup "Release memory resource after arch_remove_memory()"
Related show

Commit Message

David Hildenbrand April 17, 2019, 12:02 p.m. UTC
pr_warn with "%pa" expects a pointer to phys_addr_t or resource_size_t.
So let's propery use resource_size_t for the start address and size,
we are dealing with resources after all.

Cc: Andrew Morton <>
Cc: Oscar Salvador <>
Cc: Michal Hocko <>
Cc: David Hildenbrand <>
Cc: Pavel Tatashin <>
Cc: Wei Yang <>
Cc: Qian Cai <>
Cc: Arun KS <>
Cc: Mathieu Malaterre <>
Reviewed-by: Oscar Salvador <>
Signed-off-by: David Hildenbrand <>
 mm/memory_hotplug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff mbox series

diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 093f6dc66f46..328878b6799d 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -1800,7 +1800,8 @@  void try_offline_node(int nid)
-static void __release_memory_resource(u64 start, u64 size)
+static void __release_memory_resource(resource_size_t start,
+				      resource_size_t size)
 	int ret;