]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ahci: Fix compiling warnings under 64bit platforms
authorTang Yuantian <Yuantian.Tang@freescale.com>
Thu, 9 Jul 2015 06:37:30 +0000 (14:37 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:47:39 +0000 (00:47 +0200)
commit846702fd753002f29c93e5ef7301e58d343ae9e5
tree8e1be7e8b9d7fbcb15a1a099c35bfd77d638d162
parenta42e42a8e862fccdec72cc4b1de741bd393bacfc
ahci: Fix compiling warnings under 64bit platforms

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);

......

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
drivers/block/ahci.c
drivers/block/dwc_ahsata.c
include/ahci.h