From da3074b19ce48afd795950cbf2da42f2a6ce5781 Mon Sep 17 00:00:00 2001 From: Carlos Llamas Date: Wed, 7 Apr 2021 21:50:24 +0000 Subject: [PATCH] ANDROID: arm64/mm: fix minor printk format warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the correct printk length specifier [%llx] for u64 variable. This fixes the following warning: arch/arm64/mm/mmu.c: In function ‘check_range_driver_managed’: ./include/linux/kern_levels.h:5:18: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Wformat=] [...] arch/arm64/mm/mmu.c:1515:3: note: in expansion of macro ‘pr_err’ 1515 | pr_err("%s: couldn't find memory resource for start 0x%lx\n", | ^~~~~~ Bug: 183339614 Fixes: 1b4aca7d82ae (ANDROID: arm64/mm: implement {populate/depopulate}_range_driver_managed) Signed-off-by: Carlos Llamas Change-Id: I664223ef6c0c5f415e0b6465a0b589667f26e551 --- arch/arm64/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index 6ad5fff10cd4..368e182119e6 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -1512,7 +1512,7 @@ int check_range_driver_managed(u64 start, u64 size, const char *resource_name) res = lookup_resource(&iomem_resource, start); if (!res) { - pr_err("%s: couldn't find memory resource for start 0x%lx\n", + pr_err("%s: couldn't find memory resource for start 0x%llx\n", __func__, start); return -EINVAL; }