efi/x86: Move EFI runtime call setup/teardown helpers out of line
authorArd Biesheuvel <ardb@kernel.org>
Mon, 7 Aug 2023 16:21:20 +0000 (18:21 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 11 Sep 2023 06:37:50 +0000 (06:37 +0000)
commit762f169f5d9b92f057ad2c27ec4e3849b743239a
treecdbe181e74d85f6c50e2edd948eae7e452c22e3e
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
efi/x86: Move EFI runtime call setup/teardown helpers out of line

Only the arch_efi_call_virt() macro that some architectures override
needs to be a macro, given that it is variadic and encapsulates calls
via function pointers that have different prototypes.

The associated setup and teardown code are not special in this regard,
and don't need to be instantiated at each call site. So turn them into
ordinary C functions and move them out of line.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/include/asm/efi.h
arch/x86/platform/efi/efi_32.c
arch/x86/platform/efi/efi_64.c