[PATCH 1/5] efi: retire efi_bool_t
Sascha Hauer
sha at pengutronix.de
Wed Oct 12 23:33:49 PDT 2022
On Mon, Oct 10, 2022 at 08:08:38AM +0200, Ahmad Fatoum wrote:
> 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 at pengutronix.de>
> ---
> include/efi.h | 1 -
> include/efi/efi-stdio.h | 2 +-
> 2 files changed, 1 insertion(+), 2 deletions(-)
Applied, thanks
Sascha
>
> 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
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list