All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] usb: ehci: Fix warning on aarch64
Date: Fri, 26 Feb 2016 23:43:32 +0100	[thread overview]
Message-ID: <56D0D514.9000603@denx.de> (raw)
In-Reply-To: <20160226221729.GE23166@bill-the-cat>

On 02/26/2016 11:17 PM, Tom Rini wrote:
> On Fri, Feb 26, 2016 at 11:00:02PM +0100, Marek Vasut wrote:
> 
>> Fix the following warning on aarch64 introduced by using p2v/v2p
>> functions in the code:
>>
>> In file included from ./arch/arm/include/asm/byteorder.h:29:0,
>>                  from include/compiler.h:125,
>>                  from include/image.h:19,
>>                  from include/common.h:88,
>>                  from drivers/usb/host/ehci-hcd.c:10:
>> drivers/usb/host/ehci-hcd.c: In function ?ehci_td_buffer?:
>> drivers/usb/host/ehci-hcd.c:250:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>>    td->qt_buffer[idx] = cpu_to_hc32(virt_to_phys((void *)addr));
>>                                                  ^
>> include/linux/byteorder/little_endian.h:34:51: note: in definition of macro ?__cpu_to_le32?
>>  #define __cpu_to_le32(x) ((__force __le32)(__u32)(x))
>>                                                    ^
>> drivers/usb/host/ehci-hcd.c:250:24: note: in expansion of macro ?cpu_to_hc32?
>>    td->qt_buffer[idx] = cpu_to_hc32(virt_to_phys((void *)addr));
>>
>> Signed-off-by: Marek Vasut <marex@denx.de>
>> Cc: Stephen Warren <swarren@wwwdotorg.org>
>> Cc: Tom Rini <trini@konsulko.com>
> 
> Reviewed-by: Tom Rini <trini@konsulko.com>

In that case, applied, thanks!

-- 
Best regards,
Marek Vasut

      reply	other threads:[~2016-02-26 22:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-26 22:00 [U-Boot] [PATCH] usb: ehci: Fix warning on aarch64 Marek Vasut
2016-02-26 22:17 ` Tom Rini
2016-02-26 22:43   ` Marek Vasut [this message]

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=56D0D514.9000603@denx.de \
    --to=marex@denx.de \
    --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.