From 34604d6af70bc719eb338c0115ebdfdc5439ed1b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 16 Mar 2022 10:36:39 +0100 Subject: [PATCH] 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] --- src/boot/efi/cpio.c | 2 +- src/boot/efi/cpio.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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); - -- 2.47.3