diff options
| author | Huacai Chen <[email protected]> | 2020-08-08 20:50:52 +0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-08-09 13:24:12 -0400 |
| commit | cf99c505cf7a5b6d3deee91e3571871f20320d31 (patch) | |
| tree | dd6b57da064a13dd9319d86f5befeeb0adc3a0e4 | |
| parent | 3ff0327899800a190782005483c96f4d7862ecd9 (diff) | |
MIPS: VZ: Only include loongson_regs.h for CPU_LOONGSON64
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: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
| -rw-r--r-- | arch/mips/kvm/vz.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c index 3932f767e938..a474578ccf68 100644 --- a/arch/mips/kvm/vz.c +++ b/arch/mips/kvm/vz.c @@ -29,7 +29,9 @@ #include <linux/kvm_host.h> #include "interrupt.h" +#ifdef CONFIG_CPU_LOONGSON64 #include "loongson_regs.h" +#endif #include "trace.h" |