Skip to content

Commit

Permalink
fix(qspi): fix the build for CONFIG_SERVICE_QSPI
Browse files Browse the repository at this point in the history
Explicitly do casting from uintptr_t to uint8_t* since we have
-Werror=int-conversion set in the project.

Signed-off-by: Valentina Fernandez <[email protected]>
  • Loading branch information
vfalanis committed May 4, 2023
1 parent 25f8328 commit d7a4d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/qspi/qspi_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d7a4d5b

Please sign in to comment.