mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
spi: cadence_qspi: Fix warning cast from pointer to integer of different size
Use "%p" to print cmdbuf. Compilation warning as below: CC spl/drivers/spi/cadence_qspi_apb.o LD spl/lib/built-in.o drivers/spi/cadence_qspi_apb.c: In function ‘cadence_qspi_apb_indirect_write_setup’: drivers/spi/cadence_qspi_apb.c:696:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] cmdlen, (unsigned int)cmdbuf); Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
9bd39dd8e5
commit
8b71e46cea
1 changed files with 2 additions and 2 deletions
|
@ -692,8 +692,8 @@ int cadence_qspi_apb_indirect_write_setup(struct cadence_spi_platdata *plat,
|
||||||
unsigned int addr_bytes = cmdlen > 4 ? 4 : 3;
|
unsigned int addr_bytes = cmdlen > 4 ? 4 : 3;
|
||||||
|
|
||||||
if (cmdlen < 4 || cmdbuf == NULL) {
|
if (cmdlen < 4 || cmdbuf == NULL) {
|
||||||
printf("QSPI: iInvalid input argument, len %d cmdbuf 0x%08x\n",
|
printf("QSPI: Invalid input argument, len %d cmdbuf %p\n",
|
||||||
cmdlen, (unsigned int)cmdbuf);
|
cmdlen, cmdbuf);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
/* Setup the indirect trigger address */
|
/* Setup the indirect trigger address */
|
||||||
|
|
Loading…
Add table
Reference in a new issue