[PATCH v2 04/10] serial: sifive: Cast dev_read_addr() with uintptr_t

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


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

dev_read_addr() returns fdt_addr_t which is now a 64-bit address.
In a 32-bit build, this causes the following warning seen when
building serial_sifive.c:

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

Cast the return value with uintptr_t.

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

(no changes since v1)

 drivers/serial/serial_sifive.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list