mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
sunxi: fix 64-bit compiler warning for SPL header parsing
Casting "int"s to pointers is only valid for 32-bit systems. Add the appropriate pointer type cast to avoid a compiler warning when compiling for AArch64. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Siarhei Siamashka <siarhei.siamashka@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
fa855d3d55
commit
5a74a39129
1 changed files with 1 additions and 1 deletions
|
@ -602,7 +602,7 @@ static void parse_spl_header(const uint32_t spl_addr)
|
|||
* data is expected in uEnv.txt compatible format, so "env
|
||||
* import -t" the string(s) at fel_script_address right away.
|
||||
*/
|
||||
himport_r(&env_htab, (char *)spl->fel_script_address,
|
||||
himport_r(&env_htab, (char *)(uintptr_t)spl->fel_script_address,
|
||||
spl->fel_uEnv_length, '\n', H_NOCLEAR, 0, 0, NULL);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue