Skip to contentSkip to conversation

efi_loader: correct signature of ConvertPointer()

PATCH New Heinrich Schuchardt 2 participants 2 messages Jun 29, 2019 – Jul 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efi_loader: correct signature of ConvertPointer()

ConvertPointer() must be EFIAPI. The first parameter should be of type efi_uint_t. Use the same parameter name as the UEFI specification.

---
 include/efi_api.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/efi_api.h +2 -1
index 1962bc9e4b..d4f32dbdc8 100644
@@ -242,7 +242,8 @@ struct efi_runtime_services {
 			unsigned long descriptor_size,
 			uint32_t descriptor_version,
 			struct efi_mem_desc *virtmap);
-	efi_status_t (*convert_pointer)(unsigned long dbg, void **address);
+	efi_status_t (EFIAPI *convert_pointer)(
+			efi_uintn_t debug_disposition, void **address);
 	efi_status_t (EFIAPI *get_variable)(u16 *variable_name,
 					    const efi_guid_t *vendor,
 					    u32 *attributes,

--
2.20.1

#1 lore raw

PATCH 1/1 efi_loader: correct signature of ConvertPointer()

Quoted 4 lines · Heinrich Schuchardt

ConvertPointer() must be EFIAPI. The first parameter should be of type efi_uint_t. Use the same parameter name as the UEFI specification.

Alex

Quoted 21 lines
---
  include/efi_api.h | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
include/efi_api.h +2 -2
index 1962bc9e4b..d4f32dbdc8 100644
@@ -242,7 +242,8 @@ struct efi_runtime_services {
  			unsigned long descriptor_size,
  			uint32_t descriptor_version,
  			struct efi_mem_desc *virtmap);
-	efi_status_t (*convert_pointer)(unsigned long dbg, void **address);
+	efi_status_t (EFIAPI *convert_pointer)(
+			efi_uintn_t debug_disposition, void **address);
  	efi_status_t (EFIAPI *get_variable)(u16 *variable_name,
  					    const efi_guid_t *vendor,
  					    u32 *attributes,
--

2.20.1