From b4998c357e43ff99714dc9f33ea5721e397557b1 Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Wed, 20 Sep 2023 14:02:48 +0300 Subject: [PATCH] mm_drv: tlb: Fix compile time warning This fixes the following compile time warning; drivers/mm/mm_drv_intel_adsp_mtl_tlb.c: In function 'sys_mm_drv_mm_init': include/zephyr/sys/__assert.h:44:52: error: format '%p' expects argument of type 'void *', but argument 2 has type 'long unsigned int' [-Werror=format=] __ASSERT_PRINT("\t" fmt "\n", ##__VA_ARGS__) Signed-off-by: Daniel Baluta --- drivers/mm/mm_drv_intel_adsp_mtl_tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mm/mm_drv_intel_adsp_mtl_tlb.c b/drivers/mm/mm_drv_intel_adsp_mtl_tlb.c index 6e9b75b11f7..899b75cefe4 100644 --- a/drivers/mm/mm_drv_intel_adsp_mtl_tlb.c +++ b/drivers/mm/mm_drv_intel_adsp_mtl_tlb.c @@ -668,7 +668,7 @@ static int sys_mm_drv_mm_init(const struct device *dev) __ASSERT(false, "unused l2 pointer is outside of l2 sram range %p\n", - UNUSED_L2_START_ALIGNED); + (void *)UNUSED_L2_START_ALIGNED); return -EFAULT; }