projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
073e5db
)
efi_selftest: illegal cast to pointer in initrddump
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 14 Mar 2021 09:12:01 +0000
(10:12 +0100)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Thu, 25 Mar 2021 19:07:36 +0000
(20:07 +0100)
On 32bit systems u64 cannot directly be cast to void *.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/initrddump.c
patch
|
blob
|
history
diff --git
a/lib/efi_selftest/initrddump.c
b/lib/efi_selftest/initrddump.c
index c23a05c718f9532fea5a2568238481374cab5746..325951b49860dac473c9a1aeb9e518523a7bff55 100644
(file)
--- 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) {