diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-09 15:02:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-21 12:23:00 +0100 |
commit | 2aa96276a884836884c3e834c6f2c03013742788 (patch) | |
tree | 9d368efb4968e54ab5d32922d1f9391ad7be896a /arch/arm/lib | |
parent | 1fceb6f25f8ef0046c7a5f679b190ee67d0afb04 (diff) | |
download | barebox-2aa96276a884836884c3e834c6f2c03013742788.tar.gz barebox-2aa96276a884836884c3e834c6f2c03013742788.tar.xz |
ARM: android image: Fix compiler warning on aarch64
The android image format has a u32 value which tells the loader
where to put the ATAG list. Casting this value to a pointer directly
causes a warning on aarch64. Silence it by casting it to unsigned
long first. The code is of no use on aarch64, so no need to fix anything
really.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/bootm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 25efb42541..9c6174adfe 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -522,7 +522,7 @@ static int do_bootm_aimage(struct image_data *data) linux_bootargs_overwrite(header->cmdline); if (!getenv("aimage_noverwrite_tags")) - armlinux_set_bootparams((void*)header->tags_addr); + armlinux_set_bootparams((void *)(unsigned long)header->tags_addr); cmp = &header->second_stage; if (cmp->size) { |