[PATCH v2 06/10] net: ftmac100: Cast priv->iobase with uintptr_t

Simon Glass sjg at chromium.org
Thu Feb 4 02:53:48 CET 2021


From: Bin Meng <bin.meng at windriver.com>

priv->iobase was declared as phys_addr_t which is now a 64-bit
address. In a 32-bit build, this causes the following warning
seen when building ftmac100.c:

  warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]

Cast priv->iobase with uintptr_t.

Signed-off-by: Bin Meng <bin.meng at windriver.com>
---

Changes in v2:
- new patch: net: ftmac100: Cast priv->iobase with uintptr_t

 drivers/net/ftmac100.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list