KVM: arm64: Move __load_guest_stage2 to kvm_mmu.h
authorMarc Zyngier <maz@kernel.org>
Thu, 28 May 2020 13:12:59 +0000 (14:12 +0100)
committerWill Deacon <will@kernel.org>
Thu, 28 May 2020 16:29:13 +0000 (17:29 +0100)
commitfe677be989146b8a8c0f26fe626c6567c4cd3837
tree4fc7d4444661b6485b78fce9964dd8c0ca6c99a4
parent02ab1f5018c3ad0b8677e797b5d3333d2e3b7f20
KVM: arm64: Move __load_guest_stage2 to kvm_mmu.h

Having __load_guest_stage2 in kvm_hyp.h is quickly going to trigger
a circular include problem. In order to avoid this, let's move
it to kvm_mmu.h, where it will be a better fit anyway.

In the process, drop the __hyp_text annotation, which doesn't help
as the function is marked as __always_inline.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/include/asm/kvm_mmu.h