From: Huacai Chen Date: Sat, 8 Aug 2020 12:50:52 +0000 (+0800) Subject: MIPS: VZ: Only include loongson_regs.h for CPU_LOONGSON64 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cf99c505cf7a5b6d3deee91e3571871f20320d31;p=linux.git 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: stable@vger.kernel.org Reported-by: kernel test robot Signed-off-by: Huacai Chen Message-Id: <1596891052-24052-1-git-send-email-chenhc@lemote.com> Signed-off-by: Paolo Bonzini --- diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c index 3932f767e9386..a474578ccf68c 100644 --- a/arch/mips/kvm/vz.c +++ b/arch/mips/kvm/vz.c @@ -29,7 +29,9 @@ #include #include "interrupt.h" +#ifdef CONFIG_CPU_LOONGSON64 #include "loongson_regs.h" +#endif #include "trace.h"