]> Git Repo - linux.git/commitdiff
MIPS: VZ: Only include loongson_regs.h for CPU_LOONGSON64
authorHuacai Chen <[email protected]>
Sat, 8 Aug 2020 12:50:52 +0000 (20:50 +0800)
committerPaolo Bonzini <[email protected]>
Sun, 9 Aug 2020 17:24:12 +0000 (13:24 -0400)
Only Loongson64 platform has and needs loongson_regs.h, including it
unconditionally will cause build errors.

Fixes: 7f2a83f1c2a941ebfee5 ("KVM: MIPS: Add CPUCFG emulation for Loongson-3")
Cc: [email protected]
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Message-Id: <1596891052[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/mips/kvm/vz.c

index 3932f767e93867e0358b33717554143c0c35b8d5..a474578ccf68cf0e21035ea741b38fc3eb87eb2a 100644 (file)
@@ -29,7 +29,9 @@
 #include <linux/kvm_host.h>
 
 #include "interrupt.h"
+#ifdef CONFIG_CPU_LOONGSON64
 #include "loongson_regs.h"
+#endif
 
 #include "trace.h"
 
This page took 0.064061 seconds and 4 git commands to generate.