• Ard Biesheuvel's avatar
    efi: libstub: Permit mixed mode return types other than efi_status_t · a61962d8
    Ard Biesheuvel authored
    Rework the EFI stub macro wrappers around protocol method calls and
    other indirect calls in order to allow return types other than
    efi_status_t. This means the widening should be conditional on whether
    or not the return type is efi_status_t, and should be omitted otherwise.
    
    Also, switch to _Generic() to implement the type based compile time
    conditionals, which is more concise, and distinguishes between
    efi_status_t and u64 properly.
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    a61962d8
efi.h 12.2 KB