efi_loader: correct signature of ConvertPointer()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 29 Jun 2019 01:51:36 +0000 (03:51 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 29 Jun 2019 02:24:35 +0000 (04:24 +0200)
ConvertPointer() must be EFIAPI. The first parameter should be of type
efi_uint_t. Use the same parameter name as the UEFI specification.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_api.h

index 4de5d208f5999734834e9a0fa60ffbf9d84d8777..a36ececc81e441bfb8cd84f5e93ae817f3f29e97 100644 (file)
@@ -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,