The patch titled Subject: mm-add-folio_add_new_anon_rmap-fix has been added to the -mm mm-unstable branch. Its filename is mm-add-folio_add_new_anon_rmap-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-add-folio_add_new_anon_rmap-fix.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-add-folio_add_new_anon_rmap-fix Date: Wed Jan 11 02:11:45 PM PST 2023 Fix NOMMU build. page_add_new_anon_rmap() requires CONFIG_MMU. Cc: "Matthew Wilcox (Oracle)" <willy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/folio-compat.c | 2 ++ 1 file changed, 2 insertions(+) --- a/mm/folio-compat.c~mm-add-folio_add_new_anon_rmap-fix +++ a/mm/folio-compat.c @@ -124,6 +124,7 @@ void putback_lru_page(struct page *page) folio_putback_lru(page_folio(page)); } +#ifdef CONFIG_MMU void page_add_new_anon_rmap(struct page *page, struct vm_area_struct *vma, unsigned long address) { @@ -131,3 +132,4 @@ void page_add_new_anon_rmap(struct page return folio_add_new_anon_rmap((struct folio *)page, vma, address); } +#endif _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-memfd-add-mfd_noexec_seal-and-mfd_exec-fix.patch mm-memfd-add-mfd_noexec_seal-and-mfd_exec-fix-fix.patch mm-memfd-add-mfd_noexec_seal-and-mfd_exec-fix-3.patch mm-memfd-add-mfd_noexec_seal-and-mfd_exec-fix-3-fix.patch mm-hugetlb-introduce-hugetlb_walk-checkpatch-fixes.patch mm-memcontrol-deprecate-charge-moving-fix.patch mm-swap-convert-deactivate_page-to-folio_deactivate-fix.patch mm-uffd-detect-pgtable-allocation-failures-checkpatch-fixes.patch mm-add-folio_add_new_anon_rmap-fix.patch error-injection-remove-ei_etype_none-fix.patch hfsplus-remove-unnecessary-variable-initialization-fix.patch