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@xxxxxxxxxxxxxx> --- 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