From: David Hildenbrand Date: Tue, 9 Sep 2025 09:50:13 +0000 (-0400) Subject: mm-cma-refuse-handing-out-non-contiguous-page-ranges-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=614b1580eaf5ab0e99b3dadc77c751e981347a42;p=users%2Fjedix%2Flinux-maple.git mm-cma-refuse-handing-out-non-contiguous-page-ranges-fix apparently we can have NUMMU configs with SPARSEMEM enabled Link: https://lkml.kernel.org/r/6ec933b1-b3f7-41c0-95d8-e518bb87375e@redhat.com Signed-off-by: David Hildenbrand Cc: Alexandru Elisei Cc: Lorenzo Stoakes Signed-off-by: Andrew Morton --- diff --git a/mm/util.c b/mm/util.c index fbdb73aaf35f..4b9d40c71286 100644 --- a/mm/util.c +++ b/mm/util.c @@ -1280,6 +1280,7 @@ unsigned int folio_pte_batch(struct folio *folio, pte_t *ptep, pte_t pte, { return folio_pte_batch_flags(folio, NULL, ptep, &pte, max_nr, 0); } +#endif /* CONFIG_MMU */ #if defined(CONFIG_SPARSEMEM) && !defined(CONFIG_SPARSEMEM_VMEMMAP) /** @@ -1315,4 +1316,3 @@ bool page_range_contiguous(const struct page *page, unsigned long nr_pages) return true; } #endif -#endif /* CONFIG_MMU */