[U-Boot] [PATCH 5/8] net: designware: Fix build warnings

Simon Glass sjg at chromium.org
Tue Sep 1 02:32:58 CEST 2015


On 31 August 2015 at 03:52, Bin Meng <bmeng.cn at gmail.com> wrote:
> When building dm version of designware eth driver on a platform
> with 64-bit phys_addr_t, it reports the following warnings:
>
>   drivers/net/designware.c: In function 'designware_eth_probe':
>   drivers/net/designware.c:599:2:
>     warning: format '%lx' expects argument of type 'long unsigned int',
>     but argument 3 has type 'phys_addr_t' [-Wformat]
>   drivers/net/designware.c:600:21:
>     warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   drivers/net/designware.c:601:21:
>     warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>
> This commit fixes the build warnings.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  drivers/net/designware.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list