[U-Boot] [U-Boot, v2] ahci: Fix compiling warnings under 64bit platforms

Tom Rini trini at konsulko.com
Thu Jul 9 03:47:31 CEST 2015


On Tue, Jul 07, 2015 at 03:48:26PM +0800, tang yuantian 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>
> ---

This introduces a warning with ELDK 5.5 on
nitrogen6q,novena,ot1200_spl,nitrogen6q2g,m53evk,mx6qsabrelite,udoo_quad,ima3-mx53,tb
s2910,cm_fx6,ot1200,gwventana,mx53loco:

../drivers/block/dwc_ahsata.c:169:32: warning: assignment makes pointer
from integer without a cast [enabled by default]
../drivers/block/dwc_ahsata.c: In function 'ahci_port_start':
../drivers/block/dwc_ahsata.c:523:2: warning: format '%x' expects
argument of type 'unsigned int', but argument 2 has type 'ulong'
[-Wformat=]

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150708/bd9f0481/attachment.sig>


More information about the U-Boot mailing list