[U-Boot] [PATCH v3] ahci: Fix compiling warnings under 64bit platforms

Simon Glass sjg at chromium.org
Thu Jul 9 15:31:28 CEST 2015


Hi,

On 9 July 2015 at 00:37,  <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>
> ---
> v3:
>     - fix warnings this patch caused on drivers/block/dwc_ahsata.c
>     - take case of tbl_addr_hi when work under 64bit mode
> v2:
>     - refined some type casts
>
>  drivers/block/ahci.c       | 64 +++++++++++++++++++++++++---------------------
>  drivers/block/dwc_ahsata.c | 13 ++++++----
>  include/ahci.h             |  8 +++---
>  3 files changed, 47 insertions(+), 38 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list