From: Yanan Wang wangyanan55@huawei.com
virt inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8DWT1 CVE: NA
--------------------------------
fix compile error/warning
Signed-off-by: Kunkun Jiang jiangkunkun@huawei.com Signed-off-by: Dongxu Sun sundongxu3@huawei.com --- arch/arm64/include/asm/kvm_para.h | 2 +- arch/arm64/include/uapi/asm/Kbuild | 2 +- arch/arm64/include/uapi/asm/kvm_para.h | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/include/uapi/asm/kvm_para.h
diff --git a/arch/arm64/include/asm/kvm_para.h b/arch/arm64/include/asm/kvm_para.h index e1ecc089ee9b..1e3786fe244f 100644 --- a/arch/arm64/include/asm/kvm_para.h +++ b/arch/arm64/include/asm/kvm_para.h @@ -2,7 +2,7 @@ #ifndef _ASM_ARM64_KVM_PARA_H #define _ASM_ARM64_KVM_PARA_H
-#define KVM_HINTS_REALTIME 0 +#include <uapi/asm/kvm_para.h>
static inline bool kvm_check_and_clear_guest_paused(void) { diff --git a/arch/arm64/include/uapi/asm/Kbuild b/arch/arm64/include/uapi/asm/Kbuild index 602d137932dc..28b7a35ebcc5 100644 --- a/arch/arm64/include/uapi/asm/Kbuild +++ b/arch/arm64/include/uapi/asm/Kbuild @@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0
-generic-y += kvm_para.h +#generic-y += kvm_para.h diff --git a/arch/arm64/include/uapi/asm/kvm_para.h b/arch/arm64/include/uapi/asm/kvm_para.h new file mode 100644 index 000000000000..98832b7837ee --- /dev/null +++ b/arch/arm64/include/uapi/asm/kvm_para.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _UAPI_ASM_ARM64_KVM_PARA_H +#define _UAPI_ASM_ARM64_KVM_PARA_H + +#define KVM_HINTS_REALTIME 0 + +#endif /* _UAPI_ASM_ARM64_KVM_PARA_H */