[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204010724.vU4CrQtK-lkp@intel.com>
Date: Fri, 1 Apr 2022 07:11:46 +0800
From: kernel test robot <lkp@...el.com>
To: Huacai Chen <chenhc@...ote.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Paolo Bonzini <pbonzini@...hat.com>,
Aleksandar Markovic <aleksandar.qemu.devel@...il.com>
Subject: arch/mips/kvm/mips.c:161:6: warning: no previous prototype for
'kvm_mips_free_vcpus'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e729dbe8ea1c6145ae7b9efd6a00a5613746d3b0
commit: 0f78355c450835053fed85828c9d6526594c0921 KVM: MIPS: Enable KVM support for Loongson-3
date: 1 year, 10 months ago
config: mips-loongson3_defconfig (https://download.01.org/0day-ci/archive/20220401/202204010724.vU4CrQtK-lkp@intel.com/config)
compiler: mips64el-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0f78355c450835053fed85828c9d6526594c0921
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0f78355c450835053fed85828c9d6526594c0921
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/kvm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> 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/emulate.c:946:23: warning: no previous prototype for 'kvm_mips_emul_eret' [-Wmissing-prototypes]
946 | enum emulation_result kvm_mips_emul_eret(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~
>> arch/mips/kvm/emulate.c:1029:23: warning: no previous prototype for 'kvm_mips_emul_tlbr' [-Wmissing-prototypes]
1029 | enum emulation_result kvm_mips_emul_tlbr(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~
>> arch/mips/kvm/emulate.c:1102:23: warning: no previous prototype for 'kvm_mips_emul_tlbwi' [-Wmissing-prototypes]
1102 | enum emulation_result kvm_mips_emul_tlbwi(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~~
>> arch/mips/kvm/emulate.c:1138:23: warning: no previous prototype for 'kvm_mips_emul_tlbwr' [-Wmissing-prototypes]
1138 | enum emulation_result kvm_mips_emul_tlbwr(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~~
>> arch/mips/kvm/emulate.c:1163:23: warning: no previous prototype for 'kvm_mips_emul_tlbp' [-Wmissing-prototypes]
1163 | enum emulation_result kvm_mips_emul_tlbp(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~
arch/mips/kvm/emulate.c: In function 'kvm_mips_emulate_load':
arch/mips/kvm/emulate.c:1936:35: warning: this statement may fall through [-Wimplicit-fallthrough=]
1936 | vcpu->mmio_needed = 1; /* unsigned */
| ~~~~~~~~~~~~~~~~~~^~~
arch/mips/kvm/emulate.c:1939:9: note: here
1939 | case lw_op:
| ^~~~
--
>> arch/mips/kvm/loongson_ipi.c:190:6: warning: no previous prototype for 'kvm_init_loongson_ipi' [-Wmissing-prototypes]
190 | void kvm_init_loongson_ipi(struct kvm *kvm)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/kvm_mips_free_vcpus +161 arch/mips/kvm/mips.c
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 160
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 @161 void kvm_mips_free_vcpus(struct kvm *kvm)
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 162 {
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 163 unsigned int i;
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 164 struct kvm_vcpu *vcpu;
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 165
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 166 kvm_for_each_vcpu(i, vcpu, kvm) {
4543bdc08857e8 arch/mips/kvm/mips.c Sean Christopherson 2019-12-18 167 kvm_vcpu_destroy(vcpu);
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 168 }
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 169
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 170 mutex_lock(&kvm->lock);
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 171
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 172 for (i = 0; i < atomic_read(&kvm->online_vcpus); i++)
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 173 kvm->vcpus[i] = NULL;
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 174
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 175 atomic_set(&kvm->online_vcpus, 0);
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 176
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 177 mutex_unlock(&kvm->lock);
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 178 }
669e846e6c4e13 arch/mips/kvm/kvm_mips.c Sanjay Lal 2012-11-21 179
:::::: The code at line 161 was first introduced by commit
:::::: 669e846e6c4e13f16d7418973609931e362cb16a KVM/MIPS32: MIPS arch specific APIs for KVM
:::::: TO: Sanjay Lal <sanjayl@...asys.com>
:::::: CC: Ralf Baechle <ralf@...ux-mips.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists