Skip to contentSkip to conversation

linux-next: build failure after merge of the mm tree

PATCH Stephen Rothwell 1 participant 1 message Dec 19, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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 <[email protected]>
Date: Fri, 20 Dec 2024 10:22:59 +1100
Subject: [PATCH] fix up for "mm: replace free hugepage folios after migration"

---
 include/linux/hugetlb.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/hugetlb.h +2 -1
index 7d36ac8df97f..a39fbc2b88f3 100644
@@ -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;
 }
Signature · 5 lines
2.45.2

-- 
Cheers,
Stephen Rothwell