[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250304143157.856892-1-arnd@kernel.org>
Date: Tue, 4 Mar 2025 15:31:51 +0100
From: Arnd Bergmann <arnd@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>,
David Hildenbrand <david@...hat.com>,
Oscar Salvador <osalvador@...e.de>,
Brendan Jackman <jackmanb@...gle.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Gregory Price <gourry@...rry.net>,
Dan Williams <dan.j.williams@...el.com>,
"Mike Rapoport (Microsoft)" <rppt@...nel.org>,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] mm/page_alloc: add dummy in_mem_hotplug() helper
From: Arnd Bergmann <arnd@...db.de>
The in_mem_hotplug() prototype was only added to the CONFIG_MEMORY_HOTPLUG
case but is missing from the alternative:
mm/page_alloc.c: In function 'set_pageblock_migratetype':
/home/arnd/arm-soc/mm/page_alloc.c:424:17: error: implicit declaration of function 'in_mem_hotplug' [-Wimplicit-function-declaration]
424 | in_mem_hotplug() ||
| ^~~~~~~~~~~~~~
Add an empty stub like we have for similar functions.
Fixes: b4cfcc26f507 ("mm/page_alloc: add lockdep assertion for pageblock type change")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
include/linux/memory_hotplug.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h
index ff9511d9b9e6..508a1d074527 100644
--- a/include/linux/memory_hotplug.h
+++ b/include/linux/memory_hotplug.h
@@ -224,6 +224,10 @@ static inline void put_online_mems(void) {}
static inline void mem_hotplug_begin(void) {}
static inline void mem_hotplug_done(void) {}
+static inline bool in_mem_hotplug(void)
+{
+ return false;
+}
static inline bool movable_node_is_enabled(void)
{
--
2.39.5
Powered by blists - more mailing lists