[PATCH] kexec-export-free_huge_page-to-vmcoreinfo-fix

From: Michal Hocko
Date: Thu Jul 31 2014 - 05:18:57 EST


free_huge_page is not defined for !CONFIG_HUGETLBFS. Fix the following
compilation error:

kernel/kexec.c: In function âcrash_save_vmcoreinfo_initâ:
kernel/kexec.c:1628:20: error: âfree_huge_pageâ undeclared (first use in this function)
VMCOREINFO_SYMBOL(free_huge_page);

Signed-off-by: Michal Hocko <mhocko@xxxxxxx>
---
kernel/kexec.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kernel/kexec.c b/kernel/kexec.c
index a3ccf9d7174b..507614acf938 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -1625,7 +1625,9 @@ static int __init crash_save_vmcoreinfo_init(void)
#endif
VMCOREINFO_NUMBER(PG_head_mask);
VMCOREINFO_NUMBER(PAGE_BUDDY_MAPCOUNT_VALUE);
+#ifdef CONFIG_HUGETLBFS
VMCOREINFO_SYMBOL(free_huge_page);
+#endif

arch_crash_save_vmcoreinfo();
update_vmcoreinfo_note();
--
2.0.1

--
Michal Hocko
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/