Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- arch/arm64/mm/mmu.c | 10 ++++++++++
+ arch/arm64/mm/mmu.c | 12 ++++++++++++
arch/x86/mm/pgtable.c | 24 ++++++++++++++++++++++++
include/asm-generic/pgtable.h | 10 ++++++++++
lib/ioremap.c | 6 ++++--
- 4 files changed, 48 insertions(+), 2 deletions(-)
+ 4 files changed, 50 insertions(+), 2 deletions(-)
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
-@@ -697,3 +697,13 @@ void *__init fixmap_remap_fdt(phys_addr_
+@@ -697,3 +697,15 @@ void *__init fixmap_remap_fdt(phys_addr_
return dt_virt;
}
+
++#ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
+int pud_free_pmd_page(pud_t *pud)
+{
+ return pud_none(*pud);
+{
+ return pmd_none(*pmd);
+}
++#endif
--- a/arch/x86/mm/pgtable.c
+++ b/arch/x86/mm/pgtable.c
@@ -666,4 +666,28 @@ int pmd_clear_huge(pmd_t *pmd)