summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorAnshuman Khandual2019-07-02 07:32:55 +0200
committerWill Deacon2019-07-22 13:06:38 +0200
commit5a9060e9437be47f92f85a2b5c7cd73314d080e8 (patch)
tree74fb98674fa73ffa65be69b083c216eb66eb689c /arch/arm64
parentarm64/sve: Fix a couple of magic numbers for the Z-reg count (diff)
downloadkernel-qcow2-linux-5a9060e9437be47f92f85a2b5c7cd73314d080e8.tar.gz
kernel-qcow2-linux-5a9060e9437be47f92f85a2b5c7cd73314d080e8.tar.xz
kernel-qcow2-linux-5a9060e9437be47f92f85a2b5c7cd73314d080e8.zip
arm64: mm: Drop pte_huge()
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>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/include/asm/pgtable.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index 87a4b2ddc1a1..3f5461f7b560 100644
--- a/arch/arm64/include/asm/pgtable.h
+++ b/arch/arm64/include/asm/pgtable.h
@@ -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))
/*