From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] i2c: tegra: Build warning fixes for 64-bit
Date: Wed, 22 Jul 2015 16:04:12 -0600 [thread overview]
Message-ID: <55B0135C.5000604@wwwdotorg.org> (raw)
In-Reply-To: <1437600802-2522-1-git-send-email-swarren@wwwdotorg.org>
On 07/22/2015 03:33 PM, Stephen Warren wrote:
Apparently Heiko is out-of-the-office until Aug 10th.
Tom Rini, perhaps you could apply this directly to u-boot.git, or ack it
so that Tom Warren can apply it to the Tegra tree? The basic Tegra210
SoC patches will rely on these warnings being fixed, and I'd rather not
hold off getting the SoC patches applied until mid-August.
> drivers/i2c/tegra_i2c.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c
> index fc9564699489..a4289788a65c 100644
> --- a/drivers/i2c/tegra_i2c.c
> +++ b/drivers/i2c/tegra_i2c.c
> @@ -235,7 +235,7 @@ static int send_recv_packets(struct i2c_bus *i2c_bus,
> if ((words == 1) && last_bytes) {
> local = 0;
> memcpy(&local, dptr, last_bytes);
> - } else if ((unsigned)dptr & 3) {
> + } else if ((unsigned long)dptr & 3) {
> memcpy(&local, dptr, sizeof(u32));
> } else {
> local = *wptr;
> @@ -258,7 +258,7 @@ static int send_recv_packets(struct i2c_bus *i2c_bus,
> local = readl(&control->rx_fifo);
> if ((words == 1) && last_bytes)
> memcpy(dptr, (char *)&local, last_bytes);
> - else if ((unsigned)dptr & 3)
> + else if ((unsigned long)dptr & 3)
> memcpy(dptr, &local, sizeof(u32));
> else
> *wptr = local;
next prev parent reply other threads:[~2015-07-22 22:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 21:33 [U-Boot] [PATCH] i2c: tegra: Build warning fixes for 64-bit Stephen Warren
2015-07-22 22:04 ` Stephen Warren [this message]
2015-07-22 22:11 ` Tom Rini
2015-07-23 20:18 ` Simon Glass
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=55B0135C.5000604@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--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.