Skip to contentSkip to conversation

efi: correct struct grub_efi_boot_services

PATCH In review Heinrich Schuchardt 2 participants 2 messages Jan 22, 2022 – Feb 3, 2022

lore
Share & tools
lore
#0 lore raw

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)).

---
 include/grub/efi/api.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/grub/efi/api.h +1 -1
index 46289878d..5980a7f95 100644
@@ -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