arm64: efi: Don't include EFI fpsimd save/restore code in non-EFI kernels
authorDave Martin <Dave.Martin@arm.com>
Mon, 18 Sep 2017 08:40:12 +0000 (09:40 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 18 Sep 2017 10:20:17 +0000 (11:20 +0100)
commite580b8bc4316cbb8bbffb5ed7bf1e477064755ed
treee8d012d76b5411cfef3cfec099deae716f9a8aa1
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
arm64: efi: Don't include EFI fpsimd save/restore code in non-EFI kernels

__efi_fpsimd_begin()/__efi_fpsimd_end() are for use when making EFI
calls only, so using them in non-EFI kernels is not allowed.

This patch compiles them out if CONFIG_EFI is not set.

Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/fpsimd.c