mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
board: sifive: Fix -Wint-to-pointer-cast warning
The following warning is seen in unleashed.c in a 32-bit build: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Cast with uintptr_t. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
parent
d36c94279d
commit
b18c4ae82f
2 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ void *board_fdt_blob_setup(void)
|
|||
{
|
||||
if (IS_ENABLED(CONFIG_OF_SEPARATE)) {
|
||||
if (gd->arch.firmware_fdt_addr)
|
||||
return (ulong *)gd->arch.firmware_fdt_addr;
|
||||
return (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr;
|
||||
}
|
||||
|
||||
return (ulong *)&_end;
|
||||
|
|
|
@ -15,7 +15,7 @@ void *board_fdt_blob_setup(void)
|
|||
{
|
||||
if (IS_ENABLED(CONFIG_OF_SEPARATE)) {
|
||||
if (gd->arch.firmware_fdt_addr)
|
||||
return (ulong *)gd->arch.firmware_fdt_addr;
|
||||
return (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr;
|
||||
}
|
||||
|
||||
return (ulong *)&_end;
|
||||
|
|
Loading…
Add table
Reference in a new issue