Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nBDcu-0008TY-G0 for mharc-grub-devel@gnu.org; Sat, 22 Jan 2022 05:28:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBDcs-0008TP-L4 for grub-devel@gnu.org; Sat, 22 Jan 2022 05:28:06 -0500 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:44674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBDcq-00035Z-41 for grub-devel@gnu.org; Sat, 22 Jan 2022 05:28:06 -0500 Received: from workstation5.fritz.box (ip-088-152-144-107.um26.pools.vodafone-ip.de [88.152.144.107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 3992840054; Sat, 22 Jan 2022 10:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642847281; bh=Pt/uojiMJuGez4GSW9le2GyuyP6Ox9QcodZapnI/DAI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=p1cz4N9yT8ES6bVKJ3r48AAUU5vUDeRak1uJy345vYnzNC0xf4YuZiKeL7GarN6Yb iLxXaJR3jzBbxSLXfkVhbkg+LnGlsn2043Ef/JznF+xozToet3O0AIFzwhzX0o3eif ZmcXNieUoy9+TilzCzt8EvQuB4v+QNS+7+8PwhOHEr32QqKrFK5kPEkGGYJsyoCbcV hcQtN8i+JgOCWj/S4ok4xp+HOJcYakwWbptyKQY/9J11HPsFupsgXw5d9M9Hy4NPOx 8TKyh6DbbglRkPoQDSj1Gl2lDIzo29VdmPo/kPFwpes27yCf7VPKLrYSYeT2yYdXGb v571xW1tSGGvg== From: Heinrich Schuchardt To: Daniel Kiper Cc: GRUB development , Heinrich Schuchardt Subject: [PATCH 1/1] efi: correct struct grub_efi_boot_services Date: Sat, 22 Jan 2022 11:27:54 +0100 Message-Id: <20220122102754.87791-1-heinrich.schuchardt@canonical.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.125.188.120; envelope-from=heinrich.schuchardt@canonical.com; helo=smtp-relay-canonical-0.canonical.com X-Spam_score_int: -50 X-Spam_score: -5.1 X-Spam_bar: ----- X-Spam_report: (-5.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.699, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jan 2022 10:28:06 -0000 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 --- include/grub/efi/api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h index 46289878d..5980a7f95 100644 --- a/include/grub/efi/api.h +++ b/include/grub/efi/api.h @@ -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); -- 2.33.1