Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kvm-arm: Remove kvm_pud_huge()

Get rid of kvm_pud_huge() which falls back to pud_huge. Use
pud_huge instead.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>

authored by

Suzuki K Poulose and committed by
Christoffer Dall
77b56651 bbb3b6b3

+1 -3
+1 -3
arch/arm/kvm/mmu.c
··· 45 45 46 46 #define hyp_pgd_order get_order(PTRS_PER_PGD * sizeof(pgd_t)) 47 47 48 - #define kvm_pud_huge(_x) pud_huge(_x) 49 - 50 48 #define KVM_S2PTE_FLAG_IS_IOMAP (1UL << 0) 51 49 #define KVM_S2_FLAG_LOGGING_ACTIVE (1UL << 1) 52 50 ··· 1075 1077 next = kvm_pud_addr_end(addr, end); 1076 1078 if (!pud_none(*pud)) { 1077 1079 /* TODO:PUD not supported, revisit later if supported */ 1078 - BUG_ON(kvm_pud_huge(*pud)); 1080 + BUG_ON(pud_huge(*pud)); 1079 1081 stage2_wp_pmds(pud, addr, next); 1080 1082 } 1081 1083 } while (pud++, addr = next, addr != end);