]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
sunxi: fix 64-bit compiler warning for SPL header parsing
authorAndre Przywara <andre.przywara@arm.com>
Mon, 5 Sep 2016 00:32:41 +0000 (01:32 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 6 Sep 2016 11:35:52 +0000 (13:35 +0200)
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>
board/sunxi/board.c

index 209fb1cfd807fa0525450bbb43b64b75c40f124d..6281c9d70379b89d66eb1e98d922224e0c47e5da 100644 (file)
@@ -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;
        }