diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-09-05 00:32:41 (GMT) |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-09-06 11:35:52 (GMT) |
commit | 5a74a3912970d4fa5625237f0117ca08c2878f29 (patch) | |
tree | 69c263e6c3ebee469944395954f93420d64e110d /board/sunxi/board.c | |
parent | fa855d3d557a33c3c59f260302a94a8e8a0051b1 (diff) | |
download | u-boot-5a74a3912970d4fa5625237f0117ca08c2878f29.tar.xz |
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>
Diffstat (limited to 'board/sunxi/board.c')
-rw-r--r-- | board/sunxi/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 209fb1c..6281c9d 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -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; } |