ARM: KVM: get rid of S2_PGD_SIZE
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 14 May 2013 11:11:39 +0000 (12:11 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:10:37 +0000 (17:10 +0200)
commit99f2cf12576cffa1a0168b0cc05216de54ca12f4
tree92fa79d75b8e3e46f4cc9add369370be9a0bed20
parenta7232858be9e29371ef8ed2a39658443344b7765
ARM: KVM: get rid of S2_PGD_SIZE

S2_PGD_SIZE defines the number of pages used by a stage-2 PGD
and is unused, except for a VM_BUG_ON check that missuses the
define.

As the check is very unlikely to ever triggered except in
circumstances where KVM is the least of our worries, just kill
both the define and the VM_BUG_ON check.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
(cherry picked from commit 4db845c3d8e2f8a219e8ac48834dd4fe085e5d63)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_arm.h
arch/arm/kvm/mmu.c