]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: build warning in efi_tcg2_hash_log_extend_event
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 12 May 2021 15:37:20 +0000 (17:37 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 18 May 2021 10:36:12 +0000 (12:36 +0200)
commit700f68c35484c9de1c2e5e30dfc4c7a63b991a92
tree351e4fb8a937255009916caa992cd84ed5460417
parent06262c3836c3cb1b547c4bfd40e73d0e98b7a5fc
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>
lib/efi_loader/efi_tcg2.c