summaryrefslogtreecommitdiffstats
path: root/mm/page_ext.c
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2023-07-14 19:47:47 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 10:12:31 -0700
commit063ff7cd8bf24aa14c897b6168591d3d0dae2a5e (patch)
tree973da2063ab8d3ae9a04c322c804251f25d9e580 /mm/page_ext.c
parent5f6d28622ffc7fa356b2745b088c831ebb8546b0 (diff)
downloadlinux-stable-063ff7cd8bf24aa14c897b6168591d3d0dae2a5e.tar.gz
linux-stable-063ff7cd8bf24aa14c897b6168591d3d0dae2a5e.tar.bz2
linux-stable-063ff7cd8bf24aa14c897b6168591d3d0dae2a5e.zip
mm/page_ext: remove unused return value of offline_page_ext
Patch series "minor cleanups for page_ext". This series contains some random minor cleanups for page_ext. More details can be found in respective patches. This patch (of 3): offline_page_ext always returns 0 and no caller checks the return value. Just remove unused return value of offline_page_ext. Link: https://lkml.kernel.org/r/20230714114749.1743032-1-shikemeng@huaweicloud.com Link: https://lkml.kernel.org/r/20230714114749.1743032-2-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_ext.c')
-rw-r--r--mm/page_ext.c4
1 files changed, 1 insertions, 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,