diff mbox series

efi_stub: Use efi_uintn_t

Message ID 20171204153351.8355-1-agraf@suse.de
State Accepted
Commit bb0bb91cf0aa2c13528fe39be2006f32f7b9c437
Headers show
Series efi_stub: Use efi_uintn_t | expand

Commit Message

Alexander Graf Dec. 4, 2017, 3:33 p.m. UTC
Commit f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot
services") changed the internal EFI API header without adapting its existing
EFI stub users. Let's adapt the EFI stub as well.

Fixes: f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot services")
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 lib/efi/efi_stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Heinrich Schuchardt Dec. 4, 2017, 7:54 p.m. UTC | #1
On 12/04/2017 04:33 PM, Alexander Graf wrote:
> Commit f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot
> services") changed the internal EFI API header without adapting its existing
> EFI stub users. Let's adapt the EFI stub as well.
> 
> Fixes: f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot services")
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
>  lib/efi/efi_stub.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
> index 9788dedba7..205aa19947 100644
> --- a/lib/efi/efi_stub.c
> +++ b/lib/efi/efi_stub.c
> @@ -277,7 +277,7 @@ efi_status_t efi_main(efi_handle_t image, struct efi_system_table *sys_table)
>  	struct efi_boot_services *boot = sys_table->boottime;
>  	struct efi_mem_desc *desc;
>  	struct efi_entry_memmap map;
> -	ulong key, desc_size, size;
> +	efi_uintn_t key, desc_size, size;
>  	efi_status_t ret;
>  	u32 version;
>  	int cs32;
> 
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
diff mbox series

Patch

diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
index 9788dedba7..205aa19947 100644
--- a/lib/efi/efi_stub.c
+++ b/lib/efi/efi_stub.c
@@ -277,7 +277,7 @@  efi_status_t efi_main(efi_handle_t image, struct efi_system_table *sys_table)
 	struct efi_boot_services *boot = sys_table->boottime;
 	struct efi_mem_desc *desc;
 	struct efi_entry_memmap map;
-	ulong key, desc_size, size;
+	efi_uintn_t key, desc_size, size;
 	efi_status_t ret;
 	u32 version;
 	int cs32;