diff mbox series

arm64/mm: Drop pte_huge()

Message ID 1562045575-8742-1-git-send-email-anshuman.khandual@arm.com (mailing list archive)
State Mainlined
Commit 5a9060e9437be47f92f85a2b5c7cd73314d080e8
Headers show
Series arm64/mm: Drop pte_huge() | expand

Commit Message

Anshuman Khandual July 2, 2019, 5:32 a.m. UTC
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: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Steve Capper <Steve.Capper@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
---
 arch/arm64/include/asm/pgtable.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Catalin Marinas July 22, 2019, 10:43 a.m. UTC | #1
On Tue, Jul 02, 2019 at 11:02:55AM +0530, Anshuman Khandual wrote:
> 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.

I had this on my list for 5.3 but the arm64 for-next/core was already
frozen. Will can queue this whenever he sees fit.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
diff mbox series

Patch

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))
 
 /*