KVM: arm64: Include asm/kvm_mmu.h in nvhe/mem_protect.h
authorWill Deacon <will@kernel.org>
Thu, 10 Nov 2022 19:02:42 +0000 (19:02 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Nov 2022 16:40:54 +0000 (16:40 +0000)
commit4d968b12e6bbe4440f4f220c41d779e02df8af1a
treed6c401419edc5bada8385bec4f481d35a759ce60
parent9926cfce8dcb880255f30ab9ac930add787e1ead
KVM: arm64: Include asm/kvm_mmu.h in nvhe/mem_protect.h

nvhe/mem_protect.h refers to __load_stage2() in the definition of
__load_host_stage2() but doesn't include the relevant header.

Include asm/kvm_mmu.h in nvhe/mem_protect.h so that users of the latter
don't have to do this themselves.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221110190259.26861-10-will@kernel.org
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h