[arm-platforms:kvm-arm64/get_writeable_feature_regs 3/3] arch/arm64/kvm/sys_regs.c:3642:5: warning: no previous prototype for 'kvm_get_writeable_feature_regs'
kernel test robot
lkp at intel.com
Sat Jul 29 14:11:54 PDT 2023
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/get_writeable_feature_regs
head: 940bf6a71f52952f6d9e77bc3af0579af83e10b8
commit: 940bf6a71f52952f6d9e77bc3af0579af83e10b8 [3/3] KVM: arm64: kvm_get_writeable_feature_regs
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20230730/202307300555.SplHph7G-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230730/202307300555.SplHph7G-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307300555.SplHph7G-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/arm64/kvm/sys_regs.c:1130:20: warning: initialized field overwritten [-Woverride-init]
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2345:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2345 | PMU_PMEVTYPER_EL0(23),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: note: (near initialization for 'sys_reg_descs[380].reset')
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2345:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2345 | PMU_PMEVTYPER_EL0(23),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: warning: initialized field overwritten [-Woverride-init]
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2346:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2346 | PMU_PMEVTYPER_EL0(24),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: note: (near initialization for 'sys_reg_descs[381].reset')
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2346:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2346 | PMU_PMEVTYPER_EL0(24),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: warning: initialized field overwritten [-Woverride-init]
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2347:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2347 | PMU_PMEVTYPER_EL0(25),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: note: (near initialization for 'sys_reg_descs[382].reset')
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2347:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2347 | PMU_PMEVTYPER_EL0(25),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: warning: initialized field overwritten [-Woverride-init]
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2348:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2348 | PMU_PMEVTYPER_EL0(26),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: note: (near initialization for 'sys_reg_descs[383].reset')
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2348:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2348 | PMU_PMEVTYPER_EL0(26),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: warning: initialized field overwritten [-Woverride-init]
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2349:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2349 | PMU_PMEVTYPER_EL0(27),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: note: (near initialization for 'sys_reg_descs[384].reset')
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2349:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2349 | PMU_PMEVTYPER_EL0(27),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: warning: initialized field overwritten [-Woverride-init]
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2350:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2350 | PMU_PMEVTYPER_EL0(28),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: note: (near initialization for 'sys_reg_descs[385].reset')
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2350:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2350 | PMU_PMEVTYPER_EL0(28),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: warning: initialized field overwritten [-Woverride-init]
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2351:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2351 | PMU_PMEVTYPER_EL0(29),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: note: (near initialization for 'sys_reg_descs[386].reset')
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2351:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2351 | PMU_PMEVTYPER_EL0(29),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: warning: initialized field overwritten [-Woverride-init]
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2352:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2352 | PMU_PMEVTYPER_EL0(30),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1130:20: note: (near initialization for 'sys_reg_descs[387].reset')
1130 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2352:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2352 | PMU_PMEVTYPER_EL0(30),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2358:20: warning: initialized field overwritten [-Woverride-init]
2358 | .reset = reset_val, .reg = PMCCFILTR_EL0, .val = 0 },
| ^~~~~~~~~
arch/arm64/kvm/sys_regs.c:2358:20: note: (near initialization for 'sys_reg_descs[388].reset')
>> arch/arm64/kvm/sys_regs.c:3642:5: warning: no previous prototype for 'kvm_get_writeable_feature_regs' [-Wmissing-prototypes]
3642 | int kvm_get_writeable_feature_regs(struct kvm *kvm, u64 __user *masks)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/kvm_get_writeable_feature_regs +3642 arch/arm64/kvm/sys_regs.c
3641
> 3642 int kvm_get_writeable_feature_regs(struct kvm *kvm, u64 __user *masks)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list