Skip to content

Commit b4def35

Browse files
JoonsooKimtorvalds
authored andcommitted
mm, nobootmem: clean-up of free_low_memory_core_early()
Remove unused argument and make function static, because there is no user outside of nobootmem.c Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Yinghai Lu <yinghai@kernel.org> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Jiang Liu <liuj97@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e760040 commit b4def35

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

include/linux/bootmem.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ extern unsigned long init_bootmem_node(pg_data_t *pgdat,
4444
unsigned long endpfn);
4545
extern unsigned long init_bootmem(unsigned long addr, unsigned long memend);
4646

47-
extern unsigned long free_low_memory_core_early(int nodeid);
4847
extern unsigned long free_all_bootmem_node(pg_data_t *pgdat);
4948
extern unsigned long free_all_bootmem(void);
5049

mm/nobootmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static unsigned long __init __free_memory_core(phys_addr_t start,
120120
return end_pfn - start_pfn;
121121
}
122122

123-
unsigned long __init free_low_memory_core_early(int nodeid)
123+
static unsigned long __init free_low_memory_core_early(void)
124124
{
125125
unsigned long count = 0;
126126
phys_addr_t start, end, size;
@@ -170,7 +170,7 @@ unsigned long __init free_all_bootmem(void)
170170
* because in some case like Node0 doesn't have RAM installed
171171
* low ram will be on Node1
172172
*/
173-
return free_low_memory_core_early(MAX_NUMNODES);
173+
return free_low_memory_core_early();
174174
}
175175

176176
/**

0 commit comments

Comments
 (0)