mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
mm/sparse: make mminit_validate_memmodel_limits() static
It's only used in the sparse.c now. So we can make it static and further clean up the relevant code. Link: https://lkml.kernel.org/r/20220127093221.63524-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0e6799db96
commit
c7878534a1
@ -572,17 +572,6 @@ static inline void mminit_verify_zonelist(void)
|
||||
}
|
||||
#endif /* CONFIG_DEBUG_MEMORY_INIT */
|
||||
|
||||
/* mminit_validate_memmodel_limits is independent of CONFIG_DEBUG_MEMORY_INIT */
|
||||
#if defined(CONFIG_SPARSEMEM)
|
||||
extern void mminit_validate_memmodel_limits(unsigned long *start_pfn,
|
||||
unsigned long *end_pfn);
|
||||
#else
|
||||
static inline void mminit_validate_memmodel_limits(unsigned long *start_pfn,
|
||||
unsigned long *end_pfn)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_SPARSEMEM */
|
||||
|
||||
#define NODE_RECLAIM_NOSCAN -2
|
||||
#define NODE_RECLAIM_FULL -1
|
||||
#define NODE_RECLAIM_SOME 0
|
||||
|
@ -126,7 +126,7 @@ static inline int sparse_early_nid(struct mem_section *section)
|
||||
}
|
||||
|
||||
/* Validate the physical addressing limitations of the model */
|
||||
void __meminit mminit_validate_memmodel_limits(unsigned long *start_pfn,
|
||||
static void __meminit mminit_validate_memmodel_limits(unsigned long *start_pfn,
|
||||
unsigned long *end_pfn)
|
||||
{
|
||||
unsigned long max_sparsemem_pfn = 1UL << (MAX_PHYSMEM_BITS-PAGE_SHIFT);
|
||||
|
Loading…
Reference in New Issue
Block a user