efi: Simplify arch_efi_call_virt() macro
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 28 Jun 2022 14:18:21 +0000 (15:18 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 28 Jun 2022 18:13:09 +0000 (20:13 +0200)
commit8add9a3a2243166f8f60fc20e876caaf30a333f7
treed558114a4bcd15368aaad303154787167a85abb7
parent1df4d1724baafa55e9803414ebcdf1ca702bc958
efi: Simplify arch_efi_call_virt() macro

Currently, the arch_efi_call_virt() assumes all users of it will have
defined a type 'efi_##f##_t' to make use of it.

Simplify the arch_efi_call_virt() macro by eliminating the explicit
need for efi_##f##_t type for every user of this macro.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
[ardb: apply Sudeep's ARM fix to i686, Loongarch and RISC-V too]
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/include/asm/efi.h
arch/arm64/include/asm/efi.h
arch/loongarch/include/asm/efi.h
arch/riscv/include/asm/efi.h
arch/x86/include/asm/efi.h
include/linux/efi.h