arch/mips/kvm/mips.c:70:25: error: 'struct kvm_vcpu_stat' has no member named 'vz_cpucfg_exits'; did you mean

2020-06-15 Thread kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   df2fbf5bfa0e7fff8b4784507e4d68f200454318
commit: 7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333 KVM: MIPS: Add CPUCFG 
emulation for Loongson-3
date:   9 days ago
:: branch date: 16 hours ago
:: commit date: 9 days ago
config: mips-randconfig-c022-20200613 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from :
>> arch/mips/kvm/mips.c:70:25: error: 'struct kvm_vcpu_stat' has no member 
>> named 'vz_cpucfg_exits'; did you mean 'vz_gpsi_exits'?
70 |  VCPU_STAT("vz_cpucfg", vz_cpucfg_exits),
| ^~~
include/linux/compiler_types.h:133:57: note: in definition of macro 
'__compiler_offsetof'
133 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^
>> include/linux/kvm_host.h:1142:7: note: in expansion of macro 'offsetof'
1142 |  { n, offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU, ## __VA_ARGS__ }
|   ^~~~
>> arch/mips/kvm/mips.c:70:2: note: in expansion of macro 'VCPU_STAT'
70 |  VCPU_STAT("vz_cpucfg", vz_cpucfg_exits),
|  ^
arch/mips/kvm/mips.c:161:6: warning: no previous prototype for 
'kvm_mips_free_vcpus' [-Wmissing-prototypes]
161 | void kvm_mips_free_vcpus(struct kvm *kvm)
|  ^~~
--
>> arch/mips/kvm/vz.c:32:10: fatal error: loongson_regs.h: No such file or 
>> directory
32 | #include "loongson_regs.h"
|  ^
compilation terminated.

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333
vim +70 arch/mips/kvm/mips.c

669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21  
41  
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21  
42  struct kvm_stats_debugfs_item debugfs_entries[] = {
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
43   VCPU_STAT("wait", wait_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
44   VCPU_STAT("cache", cache_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
45   VCPU_STAT("signal", signal_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
46   VCPU_STAT("interrupt", int_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
47   VCPU_STAT("cop_unusable", cop_unusable_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
48   VCPU_STAT("tlbmod", tlbmod_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
49   VCPU_STAT("tlbmiss_ld", tlbmiss_ld_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
50   VCPU_STAT("tlbmiss_st", tlbmiss_st_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
51   VCPU_STAT("addrerr_st", addrerr_st_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
52   VCPU_STAT("addrerr_ld", addrerr_ld_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
53   VCPU_STAT("syscall", syscall_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
54   VCPU_STAT("resvd_inst", resvd_inst_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
55   VCPU_STAT("break_inst", break_inst_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
56   VCPU_STAT("trap_inst", trap_inst_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
57   VCPU_STAT("msa_fpe", msa_fpe_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
58   VCPU_STAT("fpe", fpe_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
59   VCPU_STAT("msa_disabled", msa_disabled_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
60   VCPU_STAT("flush_dcache", flush_dcache_exits),
a7244920d1096c arch/mips/kvm/mips.c James Hogan2017-03-14  
61  #ifdef CONFIG_KVM_MIPS_V

arch/mips/kvm/mips.c:70:25: error: 'struct kvm_vcpu_stat' has no member named 'vz_cpucfg_exits'; did you mean

2020-06-14 Thread kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   df2fbf5bfa0e7fff8b4784507e4d68f200454318
commit: 7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333 KVM: MIPS: Add CPUCFG 
emulation for Loongson-3
date:   9 days ago
:: branch date: 16 hours ago
:: commit date: 9 days ago
config: mips-randconfig-c022-20200613 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot 

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from :
>> arch/mips/kvm/mips.c:70:25: error: 'struct kvm_vcpu_stat' has no member 
>> named 'vz_cpucfg_exits'; did you mean 'vz_gpsi_exits'?
70 |  VCPU_STAT("vz_cpucfg", vz_cpucfg_exits),
| ^~~
include/linux/compiler_types.h:133:57: note: in definition of macro 
'__compiler_offsetof'
133 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^
>> include/linux/kvm_host.h:1142:7: note: in expansion of macro 'offsetof'
1142 |  { n, offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU, ## __VA_ARGS__ }
|   ^~~~
>> arch/mips/kvm/mips.c:70:2: note: in expansion of macro 'VCPU_STAT'
70 |  VCPU_STAT("vz_cpucfg", vz_cpucfg_exits),
|  ^
arch/mips/kvm/mips.c:161:6: warning: no previous prototype for 
'kvm_mips_free_vcpus' [-Wmissing-prototypes]
161 | void kvm_mips_free_vcpus(struct kvm *kvm)
|  ^~~
--
>> arch/mips/kvm/vz.c:32:10: fatal error: loongson_regs.h: No such file or 
>> directory
32 | #include "loongson_regs.h"
|  ^
compilation terminated.

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333
vim +70 arch/mips/kvm/mips.c

669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21  
41  
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21  
42  struct kvm_stats_debugfs_item debugfs_entries[] = {
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
43   VCPU_STAT("wait", wait_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
44   VCPU_STAT("cache", cache_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
45   VCPU_STAT("signal", signal_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
46   VCPU_STAT("interrupt", int_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
47   VCPU_STAT("cop_unusable", cop_unusable_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
48   VCPU_STAT("tlbmod", tlbmod_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
49   VCPU_STAT("tlbmiss_ld", tlbmiss_ld_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
50   VCPU_STAT("tlbmiss_st", tlbmiss_st_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
51   VCPU_STAT("addrerr_st", addrerr_st_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
52   VCPU_STAT("addrerr_ld", addrerr_ld_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
53   VCPU_STAT("syscall", syscall_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
54   VCPU_STAT("resvd_inst", resvd_inst_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
55   VCPU_STAT("break_inst", break_inst_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
56   VCPU_STAT("trap_inst", trap_inst_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
57   VCPU_STAT("msa_fpe", msa_fpe_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
58   VCPU_STAT("fpe", fpe_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
59   VCPU_STAT("msa_disabled", msa_disabled_exits),
812756a82ea51e arch/mips/kvm/mips.c Emanuele Giuseppe Esposito 2020-04-14  
60   VCPU_STAT("flush_dcache", flush_dcache_exits),
a7244920d1096c arch/mips/kvm/mips.c James Hogan2017-03-14  
61  #ifdef CONFIG_KVM_MIPS_V