From 033bb1bcbecd89734c64a84ccda4f12d6cedb8c0 Mon Sep 17 00:00:00 2001 From: Bhavik Patel Date: Thu, 17 Dec 2020 15:33:33 +0100 Subject: MLBEDSW-3728 Resolve compiler warnings Change-Id: I3a8b88fb63aee8a4741ab1ca47bc49c663479e21 --- src/ethosu_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c index 4d396cf..8bc927c 100644 --- a/src/ethosu_driver.c +++ b/src/ethosu_driver.c @@ -220,7 +220,7 @@ int ethosu_init_v3(const void *base_address, { int return_code = 0; - LOG_INFO("%s. base_address=%p, fast_memory=%p, fast_memory_size=%zu, secure=%u, privileged=%u\n", + LOG_INFO("%s. base_address=%p, fast_memory=%p, fast_memory_size=%zu, secure=%" PRIu32 ", privileged=%" PRIu32 "\n", __FUNCTION__, base_address, fast_memory, @@ -596,7 +596,7 @@ static int handle_command_stream(struct ethosu_driver *drv, ethosu_flush_dcache((uint32_t *)cmd_stream_ptr, cms_bytes); for (int i = 0; i < num_base_addr; i++) { - ethosu_flush_dcache((uint32_t *)base_addr[i], base_addr_size[i]); + ethosu_flush_dcache((uint32_t *)(uintptr_t)base_addr[i], base_addr_size[i]); } } else @@ -620,7 +620,7 @@ static int handle_command_stream(struct ethosu_driver *drv, { for (int i = 0; i < num_base_addr; i++) { - ethosu_invalidate_dcache((uint32_t *)base_addr[i], base_addr_size[i]); + ethosu_invalidate_dcache((uint32_t *)(uintptr_t)base_addr[i], base_addr_size[i]); } } else -- cgit v1.2.1