Skip to contentSkip to conversation

efi_stub: Use efi_uintn_t

PATCH New Alexander Graf 2 participants 2 messages Dec 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efi_stub: Use efi_uintn_t

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")
---
 lib/efi/efi_stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/efi/efi_stub.c +1 -1
index 9788dedba7..205aa19947 100644
@@ -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;
Signature · 1 line
2.12.3
#1 lore raw

PATCH 1/1 efi_stub: Use efi_uintn_t

Quoted 16 lines · Alexander Graf

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")
---
 lib/efi/efi_stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/efi/efi_stub.c +0 -0
index 9788dedba7..205aa19947 100644

lib/efi/efi_stub.c efi_status_t efi_main(efi_handle_t image, struct efi_system_table *sys_table) · line 283

Quoted 8 lines
lib/efi/efi_stub.c +1 -1
@@ -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;