summaryrefslogtreecommitdiff
path: root/lib/efi_selftest
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-03-14 10:12:01 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-03-25 20:07:36 +0100
commita81978efe31199925b1753a2e45319fae5b3a91d (patch)
tree9888de49bbe934f5862fd316aef2c6a3f1f631fe /lib/efi_selftest
parent073e5db6729cd36154d0533fda3b4b485957c163 (diff)
efi_selftest: illegal cast to pointer in initrddump
On 32bit systems u64 cannot directly be cast to void *. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_selftest')
-rw-r--r--lib/efi_selftest/initrddump.c2
1 files changed, 1 insertions, 1 deletions
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) {