mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
efi_loader: build warning in efi_tcg2_hash_log_extend_event
Building 32bit boards with the TCG2 protocol enabled leads to a build warning due to a missing conversion. lib/efi_loader/efi_tcg2.c:774:27: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 774 | ret = tcg2_create_digest((u8 *)data_to_hash, data_to_hash_len, | ^ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
06262c3836
commit
700f68c354
|
@ -771,8 +771,8 @@ efi_tcg2_hash_log_extend_event(struct efi_tcg2_protocol *this, u64 flags,
|
||||||
pcr_index = efi_tcg_event->header.pcr_index;
|
pcr_index = efi_tcg_event->header.pcr_index;
|
||||||
event_type = efi_tcg_event->header.event_type;
|
event_type = efi_tcg_event->header.event_type;
|
||||||
|
|
||||||
ret = tcg2_create_digest((u8 *)data_to_hash, data_to_hash_len,
|
ret = tcg2_create_digest((u8 *)(uintptr_t)data_to_hash,
|
||||||
&digest_list);
|
data_to_hash_len, &digest_list);
|
||||||
if (ret != EFI_SUCCESS)
|
if (ret != EFI_SUCCESS)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user