提交 c5942a7f 编写于 作者: W Wang Yuanheng 提交者: guzitao

sw64: fix compile errors when CONFIG_KVM=m

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I56OLG

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

Export symbol for bind_vcpu_enabled to fix compile errors when
CONFIG_KVM=m.
Signed-off-by: NWang Yuanheng <wangyuanheng@wxiat.com>
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 ee8bc304
......@@ -11,7 +11,8 @@
#include <linux/uaccess.h>
#include <asm/debug.h>
extern bool bind_vcpu_enabled;
__read_mostly bool bind_vcpu_enabled;
EXPORT_SYMBOL(bind_vcpu_enabled);
static int __init bind_vcpu_init(void)
{
......
......@@ -22,7 +22,7 @@
bool set_msi_flag;
unsigned long sw64_kvm_last_vpn[NR_CPUS];
#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_NUMA)
__read_mostly bool bind_vcpu_enabled;
extern bool bind_vcpu_enabled;
#endif
#define cpu_last_vpn(cpuid) sw64_kvm_last_vpn[cpuid]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册