提交 4c480319 编写于 作者: M Ma Wupeng 提交者: Yang Yingliang

efi: Stub mirrored_kernelcore if CONFIG_HAVE_MEMBLOCK_NODE_MAP is not enabled

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4SK3S
CVE: NA

------------------------------------------

Stub mirrored_kernelcore if CONFIG_HAVE_MEMBLOCK_NODE_MAP is not enabled.
If CONFIG_HAVE_MEMBLOCK_NODE_MAP is disabled, mirrored_kernelcore in
efi_find_mirror() will be undeclared and this will lead to compile problem.

Fixes: d7421c3f ("efi: Disable mirror feature if kernelcore is not spcified")
Signed-off-by: NMa Wupeng <mawupeng1@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 0ea87441
......@@ -2272,6 +2272,8 @@ extern void sparse_memory_present_with_active_regions(int nid);
extern bool mirrored_kernelcore;
#else
#define mirrored_kernelcore 0
#endif /* CONFIG_HAVE_MEMBLOCK_NODE_MAP */
#if !defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP) && \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册