From: Siarhei Siamashka <siarhei.siamashka@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] sunxi: fix 64-bit compiler warning for SPL header parsing
Date: Mon, 5 Sep 2016 08:00:19 +0300 [thread overview]
Message-ID: <20160905080019.552b3744@i7> (raw)
In-Reply-To: <1473035561-23420-5-git-send-email-andre.przywara@arm.com>
On Mon, 5 Sep 2016 01:32:41 +0100
Andre Przywara <andre.przywara@arm.com> wrote:
> 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>
> ---
> board/sunxi/board.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
> }
Reviewed-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
--
Best regards,
Siarhei Siamashka
next prev parent reply other threads:[~2016-09-05 5:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-05 0:32 [U-Boot] [PATCH 0/4] sunxi: Pine64 fixes Andre Przywara
2016-09-05 0:32 ` [U-Boot] [PATCH 1/4] Revert "sunxi: Move the SPL stack top to 0x1A000 on Allwinner A64/A80" Andre Przywara
2016-09-05 4:12 ` Siarhei Siamashka
2016-09-05 8:23 ` Andre Przywara
2016-09-08 10:51 ` Siarhei Siamashka
2016-09-08 13:23 ` Andre Przywara
2016-09-05 0:32 ` [U-Boot] [PATCH 2/4] Revert "sunxi: Downclock AHB1 to 100MHz on Allwinner A64" Andre Przywara
2016-09-05 4:48 ` Siarhei Siamashka
2016-09-05 8:32 ` Andre Przywara
2016-09-05 0:32 ` [U-Boot] [PATCH 3/4] sunxi: Kconfig: rename non-existent SUN50I_A64 config symbol Andre Przywara
2016-09-05 0:32 ` [U-Boot] [PATCH 4/4] sunxi: fix 64-bit compiler warning for SPL header parsing Andre Przywara
2016-09-05 5:00 ` Siarhei Siamashka [this message]
2016-09-07 15:13 ` [U-Boot] [PATCH 0/4] sunxi: Pine64 fixes Hans de Goede
2016-09-07 15:18 ` Andre Przywara
2016-09-07 15:48 ` Hans de Goede
2016-09-07 15:55 ` Andre Przywara
2016-09-07 16:12 ` Tom Rini
2016-09-07 16:20 ` Andre Przywara
2016-09-08 8:26 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160905080019.552b3744@i7 \
--to=siarhei.siamashka@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox