From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seung-Woo Kim Date: Sat, 16 May 2020 11:57:17 +0900 Subject: [PATCH] mmc: bcm283x: fix int to pointer cast In-Reply-To: References: <20200515101426.5330-1-sw0312.kim@samsung.com> Message-ID: <5EBF568D.9050103@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jaehoon, On 2020? 05? 15? 20:07, Jaehoon Chung wrote: > On 5/15/20 7:14 PM, Seung-Woo Kim wrote: >> On build with 32 bit, there is a warning for int-to-pointer-cast. >> Fix the int to pointer cast by using uintptr_t. > > Could you share in more detail? I didn't see any warning with gcc 9.2 / 8.3 / 7.4 /6.5. Sorry for not giving detail. If I applied PICe XHCI support [1], and build rpi_4_32b, then I got related warning. If [1] is not applied, then this can be ignored. [1] https://patchwork.ozlabs.org/project/uboot/patch/20200504124523.23484-7-s.nawrocki at samsung.com/ Best Regards, - Seung-Woo Kim > > > Best Regards, > Jaehoon Chung > > >> >> Signed-off-by: Seung-Woo Kim >> --- >> drivers/mmc/bcm2835_sdhci.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c >> index 39c93db275..c31f099f25 100644 >> --- a/drivers/mmc/bcm2835_sdhci.c >> +++ b/drivers/mmc/bcm2835_sdhci.c >> @@ -209,7 +209,7 @@ static int bcm2835_sdhci_probe(struct udevice *dev) >> priv->last_write = 0; >> >> host->name = dev->name; >> - host->ioaddr = (void *)base; >> + host->ioaddr = (void *)(uintptr_t)base; >> host->quirks = SDHCI_QUIRK_BROKEN_VOLTAGE | SDHCI_QUIRK_BROKEN_R1B | >> SDHCI_QUIRK_WAIT_SEND_CMD | SDHCI_QUIRK_NO_HISPD_BIT; >> host->max_clk = emmc_freq; >> > > > -- Seung-Woo Kim Samsung Research --