From: Tom Rini Date: Thu, 12 Nov 2015 20:28:42 -0500 Subject: [U-Boot] [U-Boot, 2/5] driver: dwmmc: Fix pointer conversion warnings for hikey In-Reply-To: <1445759305-26256-1-git-send-email-prabhakar@freescale.com> References: <1445759305-26256-1-git-send-email-prabhakar@freescale.com> Message-ID: <20151113012842.GZ8060@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Oct 25, 2015 at 01:18:25PM +0530, Prabhakar Kushwaha wrote: > Fix below compilation warings happening for hikey_defconfig > > drivers/mmc/dw_mmc.c: In function ?dwmci_set_idma_desc?: > drivers/mmc/dw_mmc.c:43:20: warning: cast from pointer to integer > of different size [-Wpointer-to-int-cast] > desc->next_addr = (unsigned int)desc + sizeof(struct dwmci_idmac); > ^ > drivers/mmc/dw_mmc.c: In function ?dwmci_prepare_data?: > drivers/mmc/dw_mmc.c:61:35: warning: cast from pointer to integer > of different size [-Wpointer-to-int-cast] > dwmci_writel(host, DWMCI_DBADDR, (unsigned int)cur_idmac); > ^ > drivers/mmc/dw_mmc.c:73:9: warning: cast from pointer to integer > of different size [-Wpointer-to-int-cast] > (u32)bounce_buffer + (i * PAGE_SIZE)); > ^ > CC drivers/mmc/hi6220_dw_mmc.o > drivers/mmc/hi6220_dw_mmc.c: In function ?hi6220_dwmci_add_port?: > drivers/mmc/hi6220_dw_mmc.c:51:17: warning: cast to pointer from integer > of different size [-Wint-to-pointer-cast] > host->ioaddr = (void *)regbase; > > Signed-off-by: Prabhakar Kushwaha Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: