Hi all, After merging the mm tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/mm/flush.c:17: include/linux/hugetlb.h:1063:5: warning: no previous prototype for 'replace_free_hugepage_folios' [-Wmissing-prototypes] 1063 | int replace_free_hugepage_folios(unsigned long start_pfn, unsigned long end_pfn) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ (and many more) Caused by commit 7e5670da4517 ("mm: replace free hugepage folios after migration") from the mm-unstable branch of the mm tree. I have applied the following fix for today. From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Date: Fri, 20 Dec 2024 10:22:59 +1100 Subject: [PATCH] fix up for "mm: replace free hugepage folios after migration" Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> --- include/linux/hugetlb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 7d36ac8df97f..a39fbc2b88f3 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -1060,7 +1060,8 @@ static inline int isolate_or_dissolve_huge_page(struct page *page, 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; } -- 2.45.2 -- Cheers, Stephen Rothwell
Attachment:
pgpbt47uSPCor.pgp
Description: OpenPGP digital signature