mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
mm: page_alloc: make compound_page_dtors static
It's only used inside page_alloc.c now. So make it static and remove the declaration in mm.h. Link: https://lkml.kernel.org/r/20230617034622.1235913-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
ff71f26f97
commit
cf01724e2d
@ -1220,7 +1220,6 @@ enum compound_dtor_id {
|
||||
#endif
|
||||
NR_COMPOUND_DTORS,
|
||||
};
|
||||
extern compound_page_dtor * const compound_page_dtors[NR_COMPOUND_DTORS];
|
||||
|
||||
static inline void folio_set_compound_dtor(struct folio *folio,
|
||||
enum compound_dtor_id compound_dtor)
|
||||
|
@ -284,7 +284,7 @@ const char * const migratetype_names[MIGRATE_TYPES] = {
|
||||
#endif
|
||||
};
|
||||
|
||||
compound_page_dtor * const compound_page_dtors[NR_COMPOUND_DTORS] = {
|
||||
static compound_page_dtor * const compound_page_dtors[NR_COMPOUND_DTORS] = {
|
||||
[NULL_COMPOUND_DTOR] = NULL,
|
||||
[COMPOUND_PAGE_DTOR] = free_compound_page,
|
||||
#ifdef CONFIG_HUGETLB_PAGE
|
||||
|
Loading…
Reference in New Issue
Block a user