From 6fa82f7e8480b600edb9a1ad49af58b088e1d9e2 Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Sat, 31 May 2025 07:18:05 +0900 Subject: [PATCH] kernel: mmu: Added a cast to avoid format warnings when logging At runtime, `cbprintf` outputs a warning of the type check of the print format. Added a cast to avoid this warning to the first argument of `device_map()` to `void*`. Signed-off-by: TOKITA Hiroshi --- kernel/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/mmu.c b/kernel/mmu.c index 617b02997dd..e24dd29fc2b 100644 --- a/kernel/mmu.c +++ b/kernel/mmu.c @@ -955,7 +955,7 @@ void k_mem_map_phys_bare(uint8_t **virt_ptr, uintptr_t phys, size_t size, uint32 "wraparound for virtual address %p (size %zu)", dest_addr, size); - LOG_DBG("arch_mem_map(%p, 0x%lx, %zu, %x) offset %lu", dest_addr, + LOG_DBG("arch_mem_map(%p, 0x%lx, %zu, %x) offset %lu", (void *)dest_addr, aligned_phys, aligned_size, flags, addr_offset); arch_mem_map(dest_addr, aligned_phys, aligned_size, flags);