ANDROID: arm64/mm: fix minor printk format warning

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: 1b4aca7d82 (ANDROID: arm64/mm: implement {populate/depopulate}_range_driver_managed)
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Change-Id: I664223ef6c0c5f415e0b6465a0b589667f26e551
This commit is contained in:
Carlos Llamas
2021-04-07 21:50:24 +00:00
parent db6a2dd55a
commit da3074b19c

View File

@@ -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;
}