]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-cma-refuse-handing-out-non-contiguous-page-ranges-fix
authorDavid Hildenbrand <david@redhat.com>
Tue, 9 Sep 2025 09:50:13 +0000 (05:50 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:25:35 +0000 (17:25 -0700)
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 <david@redhat.com>
Cc: Alexandru Elisei <alexandru.elisei@arm.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/util.c

index fbdb73aaf35fe87a54909772a409d7774a664a4d..4b9d40c7128681c234b4198d54ab377e12e986ec 100644 (file)
--- 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 */