ms_abi is not a valid attribute on x32 (__x86_64__ && __ILP32__).
This ABI should be unnecessary for utils anyway.

Bug: https://bugs.gentoo.org/927826
Signed-off-by: Mike Gilbert <flop...@gentoo.org>
---
 include/grub/efi/api.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h
index b686e8afe..8b70be5e7 100644
--- a/include/grub/efi/api.h
+++ b/include/grub/efi/api.h
@@ -590,6 +590,7 @@ typedef grub_efi_uintn_t grub_efi_status_t;
  * annotation. (This includes protocols implemented by GRUB that are installed
  * into the EFI protocol database.)
  */
+#if !defined(GRUB_UTIL)
 #if defined(__i386__)
 #define __grub_efi_api                 __attribute__((regparm(0)))
 #elif defined(__x86_64__)
@@ -597,6 +598,9 @@ typedef grub_efi_uintn_t grub_efi_status_t;
 #else
 #define __grub_efi_api
 #endif
+#else /* defined(GRUB_UTIL) */
+#define __grub_efi_api
+#endif
 
 #define GRUB_EFI_ERROR_CODE(value)     \
   ((((grub_efi_status_t) 1) << (sizeof (grub_efi_status_t) * 8 - 1)) | (value))
-- 
2.47.1


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to