[U-Boot] [PATCH v4 07/11] net: designware: Fix build warnings

Simon Glass sjg at chromium.org
Fri Sep 4 02:46:12 CEST 2015


On 3 September 2015 at 06:37, 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>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
>  drivers/net/designware.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Applied to u-boot-x86, thanks!


More information about the U-Boot mailing list