Skip to content

Commit

Permalink
mm/page_ext: remove unused return value of offline_page_ext
Browse files Browse the repository at this point in the history
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/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kemeng Shi <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Kemeng Shi authored and akpm00 committed Aug 18, 2023
1 parent 5f6d286 commit 063ff7c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mm/page_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 063ff7c

Please sign in to comment.