]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: stm32_sdmmc2: Fix AARCH64 compilation warnings
authorPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 8 Mar 2024 14:26:14 +0000 (15:26 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 19 Apr 2024 10:05:10 +0000 (12:05 +0200)
When building with AARCH64 defconfig, we got warnings, fix them.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/stm32_sdmmc2.c

index d4982a1428195c0dae49cf5f3ea28dc99ac51e97..39ae79ba129308a5e24620c154ec5a4569599462 100644 (file)
@@ -220,9 +220,9 @@ static void stm32_sdmmc2_start_data(struct udevice *dev,
 
        if (data->flags & MMC_DATA_READ) {
                data_ctrl |= SDMMC_DCTRL_DTDIR;
-               idmabase0 = (u32)data->dest;
+               idmabase0 = (u32)(long)data->dest;
        } else {
-               idmabase0 = (u32)data->src;
+               idmabase0 = (u32)(long)data->src;
        }
 
        /* Set the SDMMC DataLength value */
@@ -463,8 +463,8 @@ retry_cmd:
 
        stm32_sdmmc2_start_cmd(dev, cmd, cmdat, &ctx);
 
-       dev_dbg(dev, "send cmd %d data: 0x%x @ 0x%x\n",
-               cmd->cmdidx, data ? ctx.data_length : 0, (unsigned int)data);
+       dev_dbg(dev, "send cmd %d data: 0x%x @ 0x%p\n",
+               cmd->cmdidx, data ? ctx.data_length : 0, data);
 
        ret = stm32_sdmmc2_end_cmd(dev, cmd, &ctx);