KVM: MIPS: Fix a build error for !CPU_LOONGSON64
PATCH 1/1 KVM: MIPS: Fix a build error for !CPU_LOONGSON64
During the KVM merging progress, a CONFIG_CPU_LOONGSON64 guard in commit 7f2a83f1c2a941ebfee53 ("KVM: MIPS: Add CPUCFG emulation for Loongson-3") is missing by accident. So add it to avoid building error.
Fixes 7f2a83f1c2a941ebfee53 ("KVM: MIPS: Add CPUCFG emulation for Loongson-3")
Reported-by kernel test robot <[email protected]>
Signed-off-by Huacai Chen <[email protected]>
--- arch/mips/kvm/mips.c | 2 ++ 1 file changed, 2 insertions(+)
arch/mips/kvm/mips.c +2 -0
@@ -67,8 +67,10 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {VCPU_STAT ("vz_ghfc" , vz_ghfc_exits),VCPU_STAT ("vz_gpa" , vz_gpa_exits),VCPU_STAT ("vz_resvd" , vz_resvd_exits), +#ifdef CONFIG_CPU_LOONGSON64VCPU_STAT ("vz_cpucfg" , vz_cpucfg_exits), #endif +#endifVCPU_STAT ("halt_successful_poll" , halt_successful_poll),VCPU_STAT ("halt_attempted_poll" , halt_attempted_poll), VCPU_STAT("halt_poll_invalid", halt_poll_invalid),
Signature · 1 line
2.7.0
Quoted 17 lines · Huacai Chen
During the KVM merging progress, a
CONFIG_CPU_LOONGSON64guard in commit7f2a83f1c2a941ebfee53("KVM: MIPS: Add CPUCFG emulation for Loongson-3") is missing by accident. So add it to avoid building error.Fixes 7f2a83f1c2a941ebfee53 ("KVM: MIPS: Add CPUCFG emulation for Loongson-3")Reported-by kernel test robot <[email protected]>Signed-off-by Huacai Chen <[email protected]>--- arch/mips/kvm/mips.c | 2 ++ 1 file changed, 2 insertions(+)arch/mips/kvm/mips.c +0
-0
arch/mips/kvm/mips.c struct kvm_stats_debugfs_item debugfs_entries[] = { · line 76
Quoted 10 lines
arch/mips/kvm/mips.c +2
-0@@ -67,8 +67,10 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {VCPU_STAT ("vz_ghfc" , vz_ghfc_exits),VCPU_STAT ("vz_gpa" , vz_gpa_exits),VCPU_STAT ("vz_resvd" , vz_resvd_exits), +#ifdef CONFIG_CPU_LOONGSON64VCPU_STAT ("vz_cpucfg" , vz_cpucfg_exits), #endif +#endifVCPU_STAT ("halt_successful_poll" , halt_successful_poll),VCPU_STAT ("halt_attempted_poll" , halt_attempted_poll), VCPU_STAT("halt_poll_invalid", halt_poll_invalid),
Queued, thanks.
Paolo