efi/runtime-wrappers: Remove duplicated macro for service returning void
authorArd Biesheuvel <ardb@kernel.org>
Sun, 2 Jul 2023 16:40:39 +0000 (18:40 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 22 Aug 2023 08:39:26 +0000 (10:39 +0200)
commite38abdab441c0dcfb8f28dd0daf1dfa44b494492
tree215b5fec7165e513387158b103b701ea4d98680b
parentc99ba6e54652652a30a48e3f789d503d75646520
efi/runtime-wrappers: Remove duplicated macro for service returning void

__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: Ard Biesheuvel <ardb@kernel.org>
arch/x86/include/asm/uv/bios.h
drivers/acpi/prmt.c
drivers/firmware/efi/runtime-wrappers.c
include/linux/efi.h