[PATCH v1 09/23] mm/balloon_compaction: make balloon_mops static
David Hildenbrand
david at redhat.com
Tue Oct 21 23:59:14 AEDT 2025
There is no need to expose this anymore, so let's just make it static.
Signed-off-by: David Hildenbrand <david at redhat.com>
---
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 28ef0cb6b3bbc..c44e0b62203cc 100644
--- a/mm/balloon_compaction.c
+++ b/mm/balloon_compaction.c
@@ -286,7 +286,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.51.0
More information about the Linuxppc-dev
mailing list