[U-Boot] [PATCH v2] ahci: Fix compiling warnings under 64bit platforms
Yuantian Tang
Yuantian.Tang at freescale.com
Wed Jul 8 04:42:56 CEST 2015
> -----Original Message-----
> From: Albert ARIBAUD [mailto:albert.u.boot at aribaud.net]
> Sent: Tuesday, July 07, 2015 7:20 PM
> To: Tang Yuantian-B29983
> Cc: trini at konsulko.com; Xie Shaohui-B21989; u-boot at lists.denx.de
> Subject: Re: [U-Boot] [PATCH v2] ahci: Fix compiling warnings under 64bit
> platforms
>
> Hello Yuantian.Tang at freescale.com,
>
> On Tue, 7 Jul 2015 15:48:26 +0800, Yuantian.Tang at freescale.com
> <Yuantian.Tang at freescale.com> wrote:
> > From: Tang Yuantian <Yuantian.Tang at freescale.com>
> >
> > When compling under 64bit platforms, there are lots of warnings,
> > like:
> >
> > drivers/block/ahci.c:114:18: warning: cast to pointer from integer of
> > different size [-Wint-to-pointer-cast]
> > u8 *port_mmio = (u8 *)probe_ent->port[port].port_mmio;
> > ^
> > drivers/block/ahci.c: In function ?.hci_host_init?.
> > drivers/block/ahci.c:218:49: warning: cast from pointer to integer of
> > different size [-Wpointer-to-int-cast]
> > probe_ent->port[i].port_mmio = ahci_port_base((u32) mmio, i);
> >
> > ......
> >
> > Signed-off-by: Shaohui Xie <Shaohui.Xie at freescale.com>
> > Signed-off-by: Tang Yuantian <Yuantian.Tang at freescale.com>
> > ---
> > v2:
> > - refined some type casts
>
> Out of curiosity, which toolchain are you using?
>
ARCH=arm64
CROSS_COMPILE=gcc-linaro-aarch64-linux-gnu-4.8-2013.12_linux/bin/aarch64-linux-gnu-
I believe that any cross compile for arm64 will cause those warnings.
Regards,
Yuantian
> Amicalement,
> --
> Albert.
More information about the U-Boot
mailing list