Skip to content
Snippets Groups Projects
Commit 5a74a391 authored by Andre Przywara's avatar Andre Przywara Committed by Hans de Goede
Browse files

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: default avatarAndre Przywara <andre.przywara@arm.com>
Reviewed-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent fa855d3d
No related branches found
No related tags found
No related merge requests found
...@@ -602,7 +602,7 @@ static void parse_spl_header(const uint32_t spl_addr) ...@@ -602,7 +602,7 @@ static void parse_spl_header(const uint32_t spl_addr)
* data is expected in uEnv.txt compatible format, so "env * data is expected in uEnv.txt compatible format, so "env
* import -t" the string(s) at fel_script_address right away. * 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); spl->fel_uEnv_length, '\n', H_NOCLEAR, 0, 0, NULL);
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment