]> git.baikalelectronics.ru Git - uboot.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)
commitbe8833cbb6184a1a3163c3cbc63ab5367c339b4a
treeb93ebeece37ed9c7891b95e1bbbc3fcb0fd9ad34
parentedaed1191ea548f3ae04bcd1997f82b2c0a7af74
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