efi: correct struct grub_efi_boot_services
PATCH 1/1 efi: correct struct grub_efi_boot_services
The UEFI specification defines that the EFI_BOOT_SERVICES.Exit(() service may return EFI_SUCCESS or EFI_INVALID_PARAMETER. So it cannot be __attribute__((noreturn)).
Signed-off-by Heinrich Schuchardt <[email protected]>
--- include/grub/efi/api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/grub/efi/api.h +1 -1
@@ -1267,7 +1267,7 @@ struct grub_efi_boot_services (*exit) (grub_efi_handle_t image_handle, grub_efi_status_t exit_status, grub_efi_uintn_t exit_data_size, - grub_efi_char16_t *exit_data) __attribute__((noreturn)); + grub_efi_char16_t *exit_data);grub_efi_status_t (*unload_image) (grub_efi_handle_t image_handle);
Signature · 1 line
2.33.1
Quoted 5 lines · Heinrich Schuchardt
The UEFI specification defines that the EFI_BOOT_SERVICES.Exit(() service may return
EFI_SUCCESSorEFI_INVALID_PARAMETER. So it cannot be __attribute__((noreturn)).Signed-off-by Heinrich Schuchardt <[email protected]>
Reviewed-by Daniel Kiper <[email protected]>...
Daniel