]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: ftmac100: Cast priv->iobase with uintptr_t
authorBin Meng <bin.meng@windriver.com>
Sun, 31 Jan 2021 12:36:02 +0000 (20:36 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
commit673625c45938dc9616e5cdb64bbd6459fd74fb00
treebadd263164800e967165bd6f5a5138315b4caf10
parentb7324b5d5380cddbac7f17bc6229776763c08ee4
net: ftmac100: Cast priv->iobase with uintptr_t

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@windriver.com>
drivers/net/ftmac100.c