Commit
5b09ee56b9f0 ("arm64: Add support for
ARCH_SUPPORTS_DEBUG_PAGEALLOC") introduces a call to
debug_pagealloc_enabled() which is not defined in when
CONFIG_DEBUG_PAGEALLOC=n. Add the necessary #ifdef to the arm64 code.
Note that this change will be reverted once the patch for defining
debug_pagealloc_enabled() is upstreamed.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
} while (pmd++, i++, i < PTRS_PER_PMD);
}
+#ifdef CONFIG_DEBUG_PAGEALLOC
static bool block_mappings_allowed(phys_addr_t (*pgtable_alloc)(void))
{
*/
return !pgtable_alloc || !debug_pagealloc_enabled();
}
+#else
+static bool block_mappings_allowed(phys_addr_t (*pgtable_alloc)(void))
+{
+ return true;
+}
+#endif
static void alloc_init_pmd(pud_t *pud, unsigned long addr, unsigned long end,
phys_addr_t phys, pgprot_t prot,