]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: sifive: Cast dev_read_addr() with uintptr_t
authorBin Meng <bin.meng@windriver.com>
Sun, 31 Jan 2021 12:36:00 +0000 (20:36 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
commit5c7c9e623c5ffdc333ef4876ee800384c60a4955
treeb93ebeece37ed9c7891b95e1bbbc3fcb0fd9ad34
parent37dc958947ed305fcbd732172e22ff758f43208a
serial: sifive: Cast dev_read_addr() with uintptr_t

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@windriver.com>
drivers/serial/serial_sifive.c