diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 38d9bed88dc8910dfb91cc7875386598e6db6f5f..7c02b9dadfb05b28e2aef363523f021f933bdb6d 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -689,7 +689,8 @@ static void prep_new_huge_page(struct hstate *h, struct page *page, int nid) put_page(page); /* free it into the hugepage allocator */ } -static void prep_compound_gigantic_page(struct page *page, unsigned long order) +static void __init prep_compound_gigantic_page(struct page *page, + unsigned long order) { int i; int nr_pages = 1 << order; @@ -1319,7 +1320,7 @@ int __weak alloc_bootmem_huge_page(struct hstate *h) return 1; } -static void prep_compound_huge_page(struct page *page, int order) +static void __init prep_compound_huge_page(struct page *page, int order) { if (unlikely(order > (MAX_ORDER - 1))) prep_compound_gigantic_page(page, order);