diff options
-rw-r--r-- | include/linux/hugetlb.h | 1 | ||||
-rw-r--r-- | kernel/kexec.c | 2 | ||||
-rw-r--r-- | mm/hugetlb.c | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 255cd5cc0754..a23c096b3080 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -80,6 +80,7 @@ int dequeue_hwpoisoned_huge_page(struct page *page); | |||
80 | bool isolate_huge_page(struct page *page, struct list_head *list); | 80 | bool isolate_huge_page(struct page *page, struct list_head *list); |
81 | void putback_active_hugepage(struct page *page); | 81 | void putback_active_hugepage(struct page *page); |
82 | bool is_hugepage_active(struct page *page); | 82 | bool is_hugepage_active(struct page *page); |
83 | void free_huge_page(struct page *page); | ||
83 | 84 | ||
84 | #ifdef CONFIG_ARCH_WANT_HUGE_PMD_SHARE | 85 | #ifdef CONFIG_ARCH_WANT_HUGE_PMD_SHARE |
85 | pte_t *huge_pmd_share(struct mm_struct *mm, unsigned long addr, pud_t *pud); | 86 | pte_t *huge_pmd_share(struct mm_struct *mm, unsigned long addr, pud_t *pud); |
diff --git a/kernel/kexec.c b/kernel/kexec.c index 369f41a94124..23a088fec3c0 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/swap.h> | 33 | #include <linux/swap.h> |
34 | #include <linux/syscore_ops.h> | 34 | #include <linux/syscore_ops.h> |
35 | #include <linux/compiler.h> | 35 | #include <linux/compiler.h> |
36 | #include <linux/hugetlb.h> | ||
36 | 37 | ||
37 | #include <asm/page.h> | 38 | #include <asm/page.h> |
38 | #include <asm/uaccess.h> | 39 | #include <asm/uaccess.h> |
@@ -1619,6 +1620,7 @@ static int __init crash_save_vmcoreinfo_init(void) | |||
1619 | #endif | 1620 | #endif |
1620 | VMCOREINFO_NUMBER(PG_head_mask); | 1621 | VMCOREINFO_NUMBER(PG_head_mask); |
1621 | VMCOREINFO_NUMBER(PAGE_BUDDY_MAPCOUNT_VALUE); | 1622 | VMCOREINFO_NUMBER(PAGE_BUDDY_MAPCOUNT_VALUE); |
1623 | VMCOREINFO_SYMBOL(free_huge_page); | ||
1622 | 1624 | ||
1623 | arch_crash_save_vmcoreinfo(); | 1625 | arch_crash_save_vmcoreinfo(); |
1624 | update_vmcoreinfo_note(); | 1626 | update_vmcoreinfo_note(); |
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 9221c02ed9e2..7a0a73d2fcff 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -856,7 +856,7 @@ struct hstate *size_to_hstate(unsigned long size) | |||
856 | return NULL; | 856 | return NULL; |
857 | } | 857 | } |
858 | 858 | ||
859 | static void free_huge_page(struct page *page) | 859 | void free_huge_page(struct page *page) |
860 | { | 860 | { |
861 | /* | 861 | /* |
862 | * Can't pass hstate in here because it is called from the | 862 | * Can't pass hstate in here because it is called from the |