From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: u-boot@lists.denx.de
Subject: [PATCH 1/1] efi_selftest: illegal cast to pointer in initrddump
Date: Sun, 14 Mar 2021 19:45:28 +0200 [thread overview]
Message-ID: <YE5LuJE1OA4oRyJd@enceladus> (raw)
In-Reply-To: <20210314091939.28559-1-xypron.glpk@gmx.de>
On Sun, Mar 14, 2021 at 10:19:39AM +0100, Heinrich Schuchardt wrote:
> On 32bit systems u64 cannot directly be cast to void *.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> lib/efi_selftest/initrddump.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/efi_selftest/initrddump.c b/lib/efi_selftest/initrddump.c
> index c23a05c718..325951b498 100644
> --- a/lib/efi_selftest/initrddump.c
> +++ b/lib/efi_selftest/initrddump.c
> @@ -272,7 +272,7 @@ static efi_status_t get_initrd(void **initrd, efi_uintn_t *initrd_size)
> error(L"Out of memory\r\n");
> return ret;
> }
> - *initrd = (void *)buffer;
> + *initrd = (void *)(uintptr_t)buffer;
> ret = load_file2_prot->load_file(load_file2_prot, dp, false,
> initrd_size, *initrd);
> if (ret != EFI_SUCCESS) {
> --
> 2.30.1
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
prev parent reply other threads:[~2021-03-14 17:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-14 9:19 [PATCH 1/1] efi_selftest: illegal cast to pointer in initrddump Heinrich Schuchardt
2021-03-14 17:45 ` Ilias Apalodimas [this message]
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=YE5LuJE1OA4oRyJd@enceladus \
--to=ilias.apalodimas@linaro.org \
--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