From: Tom Rini Date: Fri, 26 Feb 2016 17:17:29 -0500 Subject: [U-Boot] [PATCH] usb: ehci: Fix warning on aarch64 In-Reply-To: <1456524002-14702-1-git-send-email-marex@denx.de> References: <1456524002-14702-1-git-send-email-marex@denx.de> Message-ID: <20160226221729.GE23166@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Stephen Warren > Cc: Tom Rini Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: