This series adds two macros which platforms can enable to override generic fallback definitions. Before that it drops __HAVE_ARCH_HUGE_PTEP_GET from arm64 platform.
1. HAVE_ARCH_IS_HUGEPAGE_ONLY_RANGE - is_hugepage_only_range() 2. HAVE_ARCH_CLEAR_HUGEPAGE_FLAGS - arch_clear_hugepage_flags() This has been boot tested on arm64 and x86 platforms but built tested on some more platforms including the changed ones here. This series applies on v5.7-rc1. After this arm (32 bit) remains the sole platform defining it's own huge_ptep_get() via __HAVE_ARCH_HUGE_PTEP_GET. Cc: Russell King <li...@armlinux.org.uk> Cc: Catalin Marinas <catalin.mari...@arm.com> Cc: Will Deacon <w...@kernel.org> Cc: Tony Luck <tony.l...@intel.com> Cc: Fenghua Yu <fenghua...@intel.com> Cc: Thomas Bogendoerfer <tsbog...@alpha.franken.de> Cc: "James E.J. Bottomley" <james.bottom...@hansenpartnership.com> Cc: Helge Deller <del...@gmx.de> Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> Cc: Paul Mackerras <pau...@samba.org> Cc: Michael Ellerman <m...@ellerman.id.au> Cc: Paul Walmsley <paul.walms...@sifive.com> Cc: Palmer Dabbelt <pal...@dabbelt.com> Cc: Heiko Carstens <heiko.carst...@de.ibm.com> Cc: Vasily Gorbik <g...@linux.ibm.com> Cc: Christian Borntraeger <borntrae...@de.ibm.com> Cc: Yoshinori Sato <ys...@users.sourceforge.jp> Cc: Rich Felker <dal...@libc.org> Cc: "David S. Miller" <da...@davemloft.net> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Ingo Molnar <mi...@redhat.com> Cc: Borislav Petkov <b...@alien8.de> Cc: "H. Peter Anvin" <h...@zytor.com> Cc: Mike Kravetz <mike.krav...@oracle.com> Cc: x...@kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-i...@vger.kernel.org Cc: linux-m...@vger.kernel.org Cc: linux-par...@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-ri...@lists.infradead.org Cc: linux-s...@vger.kernel.org Cc: linux...@vger.kernel.org Cc: sparcli...@vger.kernel.org Cc: linux...@kvack.org Cc: linux-a...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Anshuman Khandual (3): arm64/mm: Drop __HAVE_ARCH_HUGE_PTEP_GET mm/hugetlb: Introduce HAVE_ARCH_IS_HUGEPAGE_ONLY_RANGE mm/hugetlb: Introduce HAVE_ARCH_CLEAR_HUGEPAGE_FLAGS arch/arm/include/asm/hugetlb.h | 7 +------ arch/arm64/include/asm/hugetlb.h | 13 +------------ arch/ia64/include/asm/hugetlb.h | 5 +---- arch/mips/include/asm/hugetlb.h | 11 ----------- arch/parisc/include/asm/hugetlb.h | 10 ---------- arch/powerpc/include/asm/hugetlb.h | 5 +---- arch/riscv/include/asm/hugetlb.h | 10 ---------- arch/s390/include/asm/hugetlb.h | 8 +------- arch/sh/include/asm/hugetlb.h | 7 +------ arch/sparc/include/asm/hugetlb.h | 10 ---------- arch/x86/include/asm/hugetlb.h | 10 ---------- include/linux/hugetlb.h | 12 ++++++++++++ 12 files changed, 18 insertions(+), 90 deletions(-) -- 2.20.1