From fbc6ceae6f0d97672d11bef8df406ea31c49c0fe Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 14 Mar 2021 10:12:01 +0100 Subject: [PATCH] efi_selftest: illegal cast to pointer in initrddump On 32bit systems u64 cannot directly be cast to void *. Signed-off-by: Heinrich Schuchardt --- 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.39.5