• Ard Biesheuvel's avatar
    efi/runtime-wrappers: Remove duplicated macro for service returning void · e38abdab
    Ard Biesheuvel authored
    __efi_call_virt() exists as an alternative for efi_call_virt() for the
    sole reason that ResetSystem() returns void, and so we cannot use a call
    to it in the RHS of an assignment.
    
    Given that there is only a single user, let's drop the macro, and expand
    it into the caller. That way, the remaining macro can be tightened
    somewhat in terms of type safety too.
    
    Note that the use of typeof() on the runtime service invocation does not
    result in an actual call being made, but it does require a few pointer
    types to be fixed up and converted into the proper function pointer
    prototypes.
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    e38abdab
bios.h 6.55 KB