From: Lennart Poettering Date: Wed, 16 Mar 2022 09:36:39 +0000 (+0100) Subject: boot: use UINT32 as type for PCR indexes X-Git-Tag: v251-rc1~136^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34604d6af70bc719eb338c0115ebdfdc5439ed1b;p=thirdparty%2Fsystemd.git boot: use UINT32 as type for PCR indexes Thisis what the TPM2/UEFI headers use, and most of our EFI codebase. Let's also use the same type here in cpio.[ch] --- diff --git a/src/boot/efi/cpio.c b/src/boot/efi/cpio.c index 2855c4119be..a4da4a97fec 100644 --- a/src/boot/efi/cpio.c +++ b/src/boot/efi/cpio.c @@ -311,7 +311,7 @@ EFI_STATUS pack_cpio( const CHAR8 *target_dir_prefix, UINT32 dir_mode, UINT32 access_mode, - UINTN tpm_pcr, + UINT32 tpm_pcr, const CHAR16 *tpm_description, void **ret_buffer, UINTN *ret_buffer_size) { diff --git a/src/boot/efi/cpio.h b/src/boot/efi/cpio.h index a272d289298..93ee4c43106 100644 --- a/src/boot/efi/cpio.h +++ b/src/boot/efi/cpio.h @@ -10,8 +10,7 @@ EFI_STATUS pack_cpio( const CHAR8 *target_dir_prefix, UINT32 dir_mode, UINT32 access_mode, - UINTN tpm_pcr, + UINT32 tpm_pcr, const CHAR16 *tpm_description, void **ret_buffer, UINTN *ret_buffer_size); -