diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-03-14 10:12:01 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-03-25 20:07:36 +0100 |
commit | a81978efe31199925b1753a2e45319fae5b3a91d (patch) | |
tree | 9888de49bbe934f5862fd316aef2c6a3f1f631fe /lib | |
parent | 073e5db6729cd36154d0533fda3b4b485957c163 (diff) | |
download | u-boot-a81978efe31199925b1753a2e45319fae5b3a91d.zip u-boot-a81978efe31199925b1753a2e45319fae5b3a91d.tar.gz u-boot-a81978efe31199925b1753a2e45319fae5b3a91d.tar.bz2 |
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')
-rw-r--r-- | lib/efi_selftest/initrddump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_selftest/initrddump.c b/lib/efi_selftest/initrddump.c index c23a05c..325951b 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) { |