Skip to content
Commit a61962d8 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efi: libstub: Permit mixed mode return types other than efi_status_t



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>
parent 70912985
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment