From d7a4d5b0a3370444ad22418ec567ffcb656b3405 Mon Sep 17 00:00:00 2001 From: Valentina Fernandez Date: Thu, 4 May 2023 08:54:23 +0100 Subject: [PATCH] fix(qspi): fix the build for CONFIG_SERVICE_QSPI Explicitly do casting from uintptr_t to uint8_t* since we have -Werror=int-conversion set in the project. Signed-off-by: Valentina Fernandez --- services/qspi/qspi_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/qspi/qspi_api.c b/services/qspi/qspi_api.c index f74a4cb4..716f69a4 100644 --- a/services/qspi/qspi_api.c +++ b/services/qspi/qspi_api.c @@ -330,7 +330,7 @@ bool HSS_QSPIInit(void) // * a set of logical block descriptors; // * a data cache the same size as the QSPI Flash device // - uint8_t *pU8Buffer = HSS_DDR_GetStart(); + uint8_t *pU8Buffer = (uint8_t *)HSS_DDR_GetStart(); pLogicalToPhysicalMap = (uint16_t *)pU8Buffer; memset(pLogicalToPhysicalMap, 0, (sizeof(*pLogicalToPhysicalMap) * blockCount)); pU8Buffer += (sizeof(*pLogicalToPhysicalMap) * blockCount);