From 81a34d6495e33236a3b00e891985c328e922f451 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Mon, 13 Dec 2021 11:50:44 -0800 Subject: [PATCH] ANDROID: Fix wrong pr_err type specifier in add_memory_subsection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wrong pr_err type specifier causes the following warning: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Werror=format=] Fix it by changing to the correct type specifyer for u64. Fixes: 42db6c2e985b ("ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection") Bug: 170460867 Signed-off-by: Suren Baghdasaryan Change-Id: I6a59462a2a698112b97806618283a7afddb811cb --- mm/memory_hotplug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 7d9320e3f4ae..7b0d7979f901 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1501,7 +1501,7 @@ int add_memory_subsection(int nid, u64 start, u64 size) if (!IS_ALIGNED(start, SUBSECTION_SIZE) || !IS_ALIGNED(size, SUBSECTION_SIZE)) { - pr_err("%s: start 0x%lx size 0x%lx not aligned to subsection size\n", + pr_err("%s: start 0x%llx size 0x%llx not aligned to subsection size\n", __func__, start, size); return -EINVAL; } @@ -1521,7 +1521,7 @@ int add_memory_subsection(int nid, u64 start, u64 size) if (ret) { if (IS_ENABLED(CONFIG_ARCH_KEEP_MEMBLOCK)) memblock_remove(start, size); - pr_err("%s failed to add subsection start 0x%lx size 0x%lx\n", + pr_err("%s failed to add subsection start 0x%llx size 0x%llx\n", __func__, start, size); } mem_hotplug_done();