Skip to content

Commit cf99c50

Browse files
chenhuacaibonzini
authored andcommitted
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: 7f2a83f ("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]>
1 parent 3ff0327 commit cf99c50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/mips/kvm/vz.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#include <linux/kvm_host.h>
3030

3131
#include "interrupt.h"
32+
#ifdef CONFIG_CPU_LOONGSON64
3233
#include "loongson_regs.h"
34+
#endif
3335

3436
#include "trace.h"
3537

0 commit comments

Comments
 (0)