Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH] MIPS: VZ: Only include loongson_regs.h for CPU_LOONGSON64
@ 2020-08-08 12:50 Huacai Chen
  2020-08-08 15:31 ` Greg KH
  0 siblings, 1 reply; 13+ messages in thread
From: Huacai Chen @ 2020-08-08 12:50 UTC (permalink / raw)
  To: Paolo Bonzini, Thomas Bogendoerfer, Aleksandar Markovic
  Cc: kvm, linux-mips, Fuxin Zhang, Huacai Chen, Jiaxun Yang,
	Huacai Chen, stable

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 <lkp@intel.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
 arch/mips/kvm/vz.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c
index 3932f76..a474578 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"
 
-- 
2.7.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-08-22 18:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-08 12:50 [PATCH] MIPS: VZ: Only include loongson_regs.h for CPU_LOONGSON64 Huacai Chen
2020-08-08 15:31 ` Greg KH
2020-08-08 15:35   ` Jiaxun Yang
2020-08-09  7:02     ` Greg KH
2020-08-09 17:23       ` Paolo Bonzini
2020-08-09 17:38         ` Sasha Levin
2020-08-09 17:45           ` Sasha Levin
2020-08-10  7:44         ` Greg KH
2020-08-10  8:56           ` Paolo Bonzini
2020-08-10  9:03             ` Greg KH
2020-08-10  9:29               ` Jiaxun Yang
2020-08-10  9:31               ` Thomas Bogendoerfer
2020-08-22 18:24                 ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox