From f36d7e344195c0149f7d5e446cabbad7b9a1bb9d Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Wed, 15 Dec 2021 13:01:36 -0800 Subject: [PATCH] ANDROID: Fix wrong pr_err type specifier in remove_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: Ie00738c159436ecec78cba3818cb3542987186ca --- mm/memory_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 7b0d7979f901..e7b23097eff4 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -2300,7 +2300,7 @@ int remove_memory_subsection(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; }