The patch titled Subject: mm/hugetlb: define replace_free_hugepage_folios() on CONFIG_HUGETLB_PAGE=n as static inline has been added to the -mm mm-unstable branch. Its filename is replace-free-hugepage-folios-after-migration-fix-2.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/replace-free-hugepage-folios-after-migration-fix-2.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: SeongJae Park <sj@xxxxxxxxxx> Subject: mm/hugetlb: define replace_free_hugepage_folios() on CONFIG_HUGETLB_PAGE=n as static inline Date: Thu, 19 Dec 2024 10:37:53 -0800 Commit fba5261e0039 ("mm: replace free hugepage folios after migration") on mm-unstable that also available at https://lkml.kernel.org/r/1734503588-16254-1-git-send-email-yangge1116@xxxxxxx breaks build when CONFIG_HUGETLB_PAGE=n as below, since replace_free_hugepage_folios() is defined on the header as non-inline. Fix it. ./tools/testing/kunit/kunit.py run --kunitconfig mm/damon/tests --build_dir ../kunit.out [...] ld: io_uring/rsrc.o: in function `replace_free_hugepage_folios': rsrc.c:(.text+0x160): multiple definition of `replace_free_hugepage_folios'; kernel/fork.o:fork.c:(.text+0xc30): first defined here [...] make: *** [Makefile:251: __sub-make] Error 2 Link: https://lkml.kernel.org/r/20241219183753.62922-1-sj@xxxxxxxxxx Fixes: fba5261e0039 ("mm: replace free hugepage folios after migration") Signed-off-by: SeongJae Park <sj@xxxxxxxxxx> Cc: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Muchun Song <muchun.song@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/hugetlb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/include/linux/hugetlb.h~replace-free-hugepage-folios-after-migration-fix-2 +++ a/include/linux/hugetlb.h @@ -1060,7 +1060,8 @@ static inline int isolate_or_dissolve_hu return -ENOMEM; } -int replace_free_hugepage_folios(unsigned long start_pfn, unsigned long end_pfn) +static inline int replace_free_hugepage_folios(unsigned long start_pfn, + unsigned long end_pfn) { return 0; } _ Patches currently in -mm which might be from sj@xxxxxxxxxx are samples-add-a-skeleton-of-a-sample-damon-module-for-working-set-size-estimation.patch samples-damon-wsse-start-and-stop-damon-as-the-user-requests.patch samples-damon-wsse-implement-working-set-size-estimation-and-logging.patch samples-damon-introduce-a-skeleton-of-a-smaple-damon-module-for-proactive-reclamation.patch samples-damon-prcl-implement-schemes-setup.patch replace-free-hugepage-folios-after-migration-fix-2.patch