]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: designware: Fix build warnings
authorBin Meng <bmeng.cn@gmail.com>
Thu, 3 Sep 2015 12:37:29 +0000 (05:37 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 9 Sep 2015 13:48:03 +0000 (07:48 -0600)
commitf0dc73c090317c7d0660443bc933d612a4c0c699
treecba5a61dbaded6f85758e10a01da31fcf1ea0f5d
parentd43e816a7de96a0b6dbd6b524923defca55f5e52
net: designware: Fix build warnings

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@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/net/designware.c