All of lore.kernel.org
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] ahci: Fix compiling warnings under 64bit platforms
Date: Tue, 7 Jul 2015 13:20:12 +0200	[thread overview]
Message-ID: <20150707132012.3af705da@lilith> (raw)
In-Reply-To: <1436255306-38482-1-git-send-email-Yuantian.Tang@freescale.com>

Hello Yuantian.Tang at freescale.com,

On Tue, 7 Jul 2015 15:48:26 +0800, Yuantian.Tang at freescale.com
<Yuantian.Tang@freescale.com> wrote:
> From: Tang Yuantian <Yuantian.Tang@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@freescale.com>
> Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
> ---
> v2:
>     - refined some type casts

Out of curiosity, which toolchain are you using?

Amicalement,
-- 
Albert.

  reply	other threads:[~2015-07-07 11:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07  7:48 [U-Boot] [PATCH v2] ahci: Fix compiling warnings under 64bit platforms Yuantian.Tang at freescale.com
2015-07-07 11:20 ` Albert ARIBAUD [this message]
2015-07-08  2:42   ` Yuantian Tang
2015-07-09  1:47 ` [U-Boot] [U-Boot, " Tom Rini
2015-07-09  6:43   ` Yuantian Tang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150707132012.3af705da@lilith \
    --to=albert.u.boot@aribaud.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.