Subject: [PATCH v3 10/24] mm/balloon_compaction: make balloon_mops static

From: "David Hildenbrand (Red Hat)" <[email-masked]>
Date: Tue, 20 Jan 2026 00:01:18 +0100

There is no need to expose this anymore, so let's just make it static.

Reviewed-by: Lorenzo Stoakes <[email-masked]>
Acked-by: Michael S. Tsirkin <[email-masked]>
Signed-off-by: David Hildenbrand (Red Hat) <[email-masked]>
---
 include/linux/balloon_compaction.h | 1 -
 mm/balloon_compaction.c            | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/balloon_compaction.h b/include/linux/balloon_compaction.h
index ad594af6ed100..7db66c2c86cdc 100644
--- a/include/linux/balloon_compaction.h
+++ b/include/linux/balloon_compaction.h
@@ -78,7 +78,6 @@ static inline void balloon_devinfo_init(struct balloon_dev_info *balloon)
 }
 
 #ifdef CONFIG_BALLOON_COMPACTION
-extern const struct movable_operations balloon_mops;
 /*
  * balloon_page_device - get the b_dev_info descriptor for the balloon device
  *			 that enqueues the given page.
diff --git a/mm/balloon_compaction.c b/mm/balloon_compaction.c
index 75763c73dbd52..cf4d931763920 100644
--- a/mm/balloon_compaction.c
+++ b/mm/balloon_compaction.c
@@ -288,7 +288,7 @@ static int balloon_page_migrate(struct page *newpage, struct page *page,
 	return 0;
 }
 
-const struct movable_operations balloon_mops = {
+static const struct movable_operations balloon_mops = {
 	.migrate_page = balloon_page_migrate,
 	.isolate_page = balloon_page_isolate,
 	.putback_page = balloon_page_putback,
-- 
2.52.0