mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Huacai Chen <chenhc@lemote.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Paolo Bonzini <pbonzini@redhat.com>,
	Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Subject: arch/mips/kvm/mips.c:161:6: warning: no previous prototype for 'kvm_mips_free_vcpus'
Date: Fri, 1 Apr 2022 07:11:46 +0800	[thread overview]
Message-ID: <202204010724.vU4CrQtK-lkp@intel.com> (raw)

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@intel.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@kymasys.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-03-31 23:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202204010724.vU4CrQtK-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aleksandar.qemu.devel@gmail.com \
    --cc=chenhc@lemote.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome