[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20241220103957.79dd1adb@canb.auug.org.au>
Date: Fri, 20 Dec 2024 10:39:57 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: yangge <yangge1116@....com>, Linux Kernel Mailing List
<linux-kernel@...r.kernel.org>, Linux Next Mailing List
<linux-next@...r.kernel.org>
Subject: linux-next: build failure after merge of the mm tree
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@...b.auug.org.au>
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@...b.auug.org.au>
---
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
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists