Skip to content
Snippets Groups Projects
Commit b0a86a27 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Albert ARIBAUD
Browse files

arch/arm/cpu/armv7/omap-common/spl.c: Fix GCC 4.2 warnings


Fix:
spl.c: In function 'jump_to_image_no_args':
spl.c:103: warning: assignment makes pointer from integer without a cast
spl.c:105: warning: dereferencing type-punned pointer will break
strict-aliasing rules

Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Cc: sricharan <r.sricharan@ti.com>
Cc: Tom Rini <trini@ti.com>
Acked-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Acked-by: default avatarTom Rini <trini@ti.com>
parent fda241d5
No related branches found
No related tags found
No related merge requests found
...@@ -100,9 +100,10 @@ static void jump_to_image_no_args(void) ...@@ -100,9 +100,10 @@ static void jump_to_image_no_args(void)
debug("image entry point: 0x%X\n", spl_image.entry_point); debug("image entry point: 0x%X\n", spl_image.entry_point);
/* Pass the saved boot_params from rom code */ /* Pass the saved boot_params from rom code */
#if defined(CONFIG_VIRTIO) || defined(CONFIG_ZEBU) #if defined(CONFIG_VIRTIO) || defined(CONFIG_ZEBU)
image_entry = 0x80100000; image_entry = (image_entry_noargs_t)0x80100000;
#endif #endif
image_entry((u32 *)&boot_params_ptr); u32 boot_params_ptr_addr = (u32)&boot_params_ptr;
image_entry((u32 *)boot_params_ptr_addr);
} }
void jump_to_image_no_args(void) __attribute__ ((noreturn)); void jump_to_image_no_args(void) __attribute__ ((noreturn));
......
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