mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/5] efi: retire efi_bool_t
@ 2022-10-10  6:08 Ahmad Fatoum
  2022-10-10  6:08 ` [PATCH 2/5] efi: capitalize enumeration constants Ahmad Fatoum
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2022-10-10  6:08 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

GCC defaults to a one-byte bool on all its platform, except for IBM RS/6000,
which will most likely never support. Thus just drop the efi_bool type
we only use at a single place and use bool directly.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/efi.h           | 1 -
 include/efi/efi-stdio.h | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/efi.h b/include/efi.h
index a1b22f2d8f88..691e3d5493fc 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -62,7 +62,6 @@ struct efi_device_path;
 #define EFI_ERROR(a)	(((signed long) a) < 0)
 
 typedef unsigned long efi_status_t;
-typedef u8 efi_bool_t;
 typedef u16 efi_char16_t;		/* UNICODE character */
 typedef u64 efi_physical_addr_t;
 typedef void *efi_handle_t;
diff --git a/include/efi/efi-stdio.h b/include/efi/efi-stdio.h
index 66fb0afc36b3..e8af244bfcf6 100644
--- a/include/efi/efi-stdio.h
+++ b/include/efi/efi-stdio.h
@@ -8,7 +8,7 @@ struct efi_simple_text_input_ex_protocol;
 
 typedef efi_status_t (EFIAPI *efi_input_reset_ex)(
 	struct efi_simple_text_input_ex_protocol *this,
-	efi_bool_t extended_verification
+	bool extended_verification
 );
 
 struct efi_key_state {
-- 
2.30.2




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-13  6:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-10  6:08 [PATCH 1/5] efi: retire efi_bool_t Ahmad Fatoum
2022-10-10  6:08 ` [PATCH 2/5] efi: capitalize enumeration constants Ahmad Fatoum
2022-10-10  6:08 ` [PATCH 3/5] hw_random: add EFI RNG driver Ahmad Fatoum
2022-10-10  6:08 ` [PATCH 4/5] efi: implement and use for_each_efi_config_table Ahmad Fatoum
2022-10-10  6:08 ` [PATCH 5/5] efi: add device tree configuration table support Ahmad Fatoum
2022-10-13  6:33 ` [PATCH 1/5] efi: retire efi_bool_t Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox