diff --git a/include/linux/mm.h b/include/linux/mm.h index fd75a9ba2232..23d67df5ced7 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -4190,6 +4190,7 @@ static inline int do_mseal(unsigned long start, size_t len_in, unsigned long fla #ifdef CONFIG_TRANSPARENT_HUGEPAGE void free_hpage(struct page *page, int __bitwise fpi_flags); void prep_new_hpage(struct page *page, gfp_t gfp_flags, unsigned int alloc_flags); +void prep_compound_page(struct page *page, unsigned int order); #endif #endif /* _LINUX_MM_H */ diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 245a1b064d64..f84618ee5d05 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -626,6 +626,7 @@ void prep_compound_page(struct page *page, unsigned int order) prep_compound_head(page, order); } +EXPORT_SYMBOL_GPL(prep_compound_page); static inline void set_buddy_order(struct page *page, unsigned int order) {