arm64: mm: Drop pte_huge()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Tue, 2 Jul 2019 05:32:55 +0000 (11:02 +0530)
committerWill Deacon <will@kernel.org>
Mon, 22 Jul 2019 11:06:38 +0000 (12:06 +0100)
This helper is required from generic huge_pte_alloc() which is available
when arch subscribes ARCH_WANT_GENERAL_HUGETLB. arm64 implements it's own
huge_pte_alloc() and does not depend on the generic definition. Drop this
helper which is redundant on arm64.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Steve Capper <Steve.Capper@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/pgtable.h

index 87a4b2ddc1a10b492b8b0d27a416272eeec2ba26..3f5461f7b5607bafe6dc8e84c42e43c0b702a10c 100644 (file)
@@ -301,7 +301,6 @@ static inline int pte_same(pte_t pte_a, pte_t pte_b)
 /*
  * Huge pte definitions.
  */
-#define pte_huge(pte)          (!(pte_val(pte) & PTE_TABLE_BIT))
 #define pte_mkhuge(pte)                (__pte(pte_val(pte) & ~PTE_TABLE_BIT))
 
 /*