[PATCH 1/3] mm/page_ext: remove unused return value of offline_page_ext

From: Kemeng Shi
Date: Thu Jul 13 2023 - 23:47:20 EST


offline_page_ext always returns 0 and no caller checks the return value.
Just remove unused return value of offline_page_ext.

Signed-off-by: Kemeng Shi <shikemeng@xxxxxxxxxxxxxxx>
---
mm/page_ext.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/mm/page_ext.c b/mm/page_ext.c
index dc1626be458b..096451df1c87 100644
--- a/mm/page_ext.c
+++ b/mm/page_ext.c
@@ -430,7 +430,7 @@ static int __meminit online_page_ext(unsigned long start_pfn,
return -ENOMEM;
}

-static int __meminit offline_page_ext(unsigned long start_pfn,
+static void __meminit offline_page_ext(unsigned long start_pfn,
unsigned long nr_pages)
{
unsigned long start, end, pfn;
@@ -454,8 +454,6 @@ static int __meminit offline_page_ext(unsigned long start_pfn,

for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION)
__free_page_ext(pfn);
- return 0;
-
}

static int __meminit page_ext_callback(struct notifier_block *self,
--
2.30.0