提交 551fe6dd 编写于 作者: P Peng Liang 提交者: Yang Yingliang

kvm: fix compile error when including linux/kvm.h

hulk inclusion
category: bugfix
bugzilla: NA
CVE: NA

linux/kvm.h should be self-contained so uint64_t should be replaced
with __u64.
Signed-off-by: NPeng Liang <liangpeng10@huawei.com>
Reviewed-by: Nzhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 17269668
...@@ -1201,13 +1201,13 @@ struct kvm_vfio_spapr_tce { ...@@ -1201,13 +1201,13 @@ struct kvm_vfio_spapr_tce {
#define ID_REG_MAX_NUMS 64 #define ID_REG_MAX_NUMS 64
struct id_reg_info { struct id_reg_info {
uint64_t sys_id; __u64 sys_id;
uint64_t sys_val; __u64 sys_val;
}; };
struct id_registers { struct id_registers {
struct id_reg_info regs[ID_REG_MAX_NUMS]; struct id_reg_info regs[ID_REG_MAX_NUMS];
uint64_t num; __u64 num;
}; };
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册