[PATCH 02/13] usb: ehci-mx6: preparing for ARM64 build

Marek Vasut marex at denx.de
Wed Sep 16 15:36:00 CEST 2020


On 9/16/20 2:56 PM, peng.fan at nxp.com wrote:
> From: Peng Fan <peng.fan at nxp.com>
> 
> Use uintptr_t and ulong to avoid build warning for ARM64 platforms
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
>  drivers/usb/host/ehci-mx6.c | 20 ++++++++++----------
>  1 file changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
> index 9531fefce0..4b8b3087ec 100644
> --- a/drivers/usb/host/ehci-mx6.c
> +++ b/drivers/usb/host/ehci-mx6.c
> @@ -68,7 +68,7 @@ DECLARE_GLOBAL_DATA_PTR;
>  #define UCMD_RESET		(1 << 1) /* controller reset */
>  
>  #if defined(CONFIG_MX6) || defined(CONFIG_MX7ULP)
> -static const unsigned phy_bases[] = {
> +static const ulong phy_bases[] = {

Use unsigned long please, not all libc headers define ulong (e.g. termux
-- android + bionic libc -- then fails to build).

[...]


More information about the U-Boot mailing list