efi/arm64: Move EFI runtime call setup/teardown helpers out of line
authorArd Biesheuvel <ardb@kernel.org>
Tue, 8 Aug 2023 07:46:03 +0000 (09:46 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 21 Aug 2023 15:49:16 +0000 (17:49 +0200)
commitc37ce23591b14545f7c8b09e167b995f8acdda71
tree3f14696bca049dae2ec2e5c1cec44d68b776c714
parentf6e6e95ce16205025b7b8680a66c30a0c4ec2270
efi/arm64: 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.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm64/include/asm/efi.h
arch/arm64/kernel/efi.c