OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f6d286
)
mm/page_ext: remove unused return value of offline_page_ext
author
Kemeng Shi
<shikemeng@huaweicloud.com>
Fri, 14 Jul 2023 11:47:47 +0000
(19:47 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:31 +0000
(10:12 -0700)
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>
mm/page_ext.c
patch
|
blob
|
history
diff --git
a/mm/page_ext.c
b/mm/page_ext.c
index
dc1626b
..
096451d
100644
(file)
--- 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,