linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [arm-platforms:kvm-arm64/vcpu-xarray 42/49] arch/powerpc/kvm/powerpc.c:792:29: error: 'kvmppc_decrementer_wakeup' defined but not used
@ 2019-11-13 17:51 kbuild test robot
  2019-11-13 18:02 ` Marc Zyngier
  0 siblings, 1 reply; 5+ messages in thread
From: kbuild test robot @ 2019-11-13 17:51 UTC (permalink / raw)
  To: Sean Christopherson; +Cc: Marc Zyngier, kbuild-all, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 7975 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/vcpu-xarray
head:   148748099363327d8cb56aafd386b70ac8c68837
commit: 64e6991c2234c3ba1e36f991302b1bbe1bb791f1 [42/49] KVM: PPC: Move all vcpu init code into kvm_arch_vcpu_create()
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 64e6991c2234c3ba1e36f991302b1bbe1bb791f1
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/powerpc/kvm/powerpc.c: In function 'kvm_arch_vcpu_create':
   arch/powerpc/kvm/powerpc.c:731:34: error: 'kvmppc_decrementer_wakeup' undeclared (first use in this function); did you mean 'kvmppc_decrementer_func'?
     vcpu->arch.dec_timer.function = kvmppc_decrementer_wakeup;
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
                                     kvmppc_decrementer_func
   arch/powerpc/kvm/powerpc.c:731:34: note: each undeclared identifier is reported only once for each function it appears in
   At top level:
>> arch/powerpc/kvm/powerpc.c:792:29: error: 'kvmppc_decrementer_wakeup' defined but not used [-Werror=unused-function]
    static enum hrtimer_restart kvmppc_decrementer_wakeup(struct hrtimer *timer)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/kvmppc_decrementer_wakeup +792 arch/powerpc/kvm/powerpc.c

2326a12ef49967 Sean Christopherson    2019-10-21  725  
17052830db61a4 Sean Christopherson    2019-10-21  726  int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu)
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  727  {
4b269130315f23 Sean Christopherson    2019-10-21  728  	int err;
4b269130315f23 Sean Christopherson    2019-10-21  729  
64e6991c2234c3 Sean Christopherson    2019-10-21  730  	hrtimer_init(&vcpu->arch.dec_timer, CLOCK_REALTIME, HRTIMER_MODE_ABS);
64e6991c2234c3 Sean Christopherson    2019-10-21 @731  	vcpu->arch.dec_timer.function = kvmppc_decrementer_wakeup;
64e6991c2234c3 Sean Christopherson    2019-10-21  732  	vcpu->arch.dec_expires = get_tb();
64e6991c2234c3 Sean Christopherson    2019-10-21  733  
64e6991c2234c3 Sean Christopherson    2019-10-21  734  #ifdef CONFIG_KVM_EXIT_TIMING
64e6991c2234c3 Sean Christopherson    2019-10-21  735  	mutex_init(&vcpu->arch.exit_timing_lock);
64e6991c2234c3 Sean Christopherson    2019-10-21  736  #endif
64e6991c2234c3 Sean Christopherson    2019-10-21  737  	err = kvmppc_subarch_vcpu_init(vcpu);
973d85b706f756 Sean Christopherson    2019-10-21  738  	if (err)
17052830db61a4 Sean Christopherson    2019-10-21  739  		return err;
973d85b706f756 Sean Christopherson    2019-10-21  740  
64e6991c2234c3 Sean Christopherson    2019-10-21  741  	err = kvmppc_core_vcpu_create(vcpu);
64e6991c2234c3 Sean Christopherson    2019-10-21  742  	if (err)
64e6991c2234c3 Sean Christopherson    2019-10-21  743  		goto out_vcpu_uninit;
64e6991c2234c3 Sean Christopherson    2019-10-21  744  
19ccb76a1938ab Paul Mackerras         2011-07-23  745  	vcpu->arch.wqp = &vcpu->wq;
17052830db61a4 Sean Christopherson    2019-10-21  746  	kvmppc_create_vcpu_debugfs(vcpu, vcpu->vcpu_id);
17052830db61a4 Sean Christopherson    2019-10-21  747  	return 0;
64e6991c2234c3 Sean Christopherson    2019-10-21  748  
64e6991c2234c3 Sean Christopherson    2019-10-21  749  out_vcpu_uninit:
64e6991c2234c3 Sean Christopherson    2019-10-21  750  	kvmppc_mmu_destroy(vcpu);
64e6991c2234c3 Sean Christopherson    2019-10-21  751  	kvmppc_subarch_vcpu_uninit(vcpu);
64e6991c2234c3 Sean Christopherson    2019-10-21  752  	return err;
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  753  }
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  754  
31928aa5863e71 Dominik Dingel         2014-12-04  755  void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu)
42897d866b1205 Marcelo Tosatti        2012-11-27  756  {
42897d866b1205 Marcelo Tosatti        2012-11-27  757  }
42897d866b1205 Marcelo Tosatti        2012-11-27  758  
8107a754687050 Sean Christopherson    2019-10-21  759  void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu)
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  760  {
a595405df9efb8 Alexander Graf         2010-02-22  761  	/* Make sure we're not using the vcpu anymore */
a595405df9efb8 Alexander Graf         2010-02-22  762  	hrtimer_cancel(&vcpu->arch.dec_timer);
a595405df9efb8 Alexander Graf         2010-02-22  763  
73e75b416ffcfa Hollis Blanchard       2008-12-02  764  	kvmppc_remove_vcpu_debugfs(vcpu);
eb1e4f43e0f47f Scott Wood             2013-04-12  765  
eb1e4f43e0f47f Scott Wood             2013-04-12  766  	switch (vcpu->arch.irq_type) {
eb1e4f43e0f47f Scott Wood             2013-04-12  767  	case KVMPPC_IRQ_MPIC:
eb1e4f43e0f47f Scott Wood             2013-04-12  768  		kvmppc_mpic_disconnect_vcpu(vcpu->arch.mpic, vcpu);
eb1e4f43e0f47f Scott Wood             2013-04-12  769  		break;
bc5ad3f3701116 Benjamin Herrenschmidt 2013-04-17  770  	case KVMPPC_IRQ_XICS:
03f953329bd872 Paul Mackerras         2019-02-04  771  		if (xics_on_xive())
5af50993850a48 Benjamin Herrenschmidt 2017-04-05  772  			kvmppc_xive_cleanup_vcpu(vcpu);
5af50993850a48 Benjamin Herrenschmidt 2017-04-05  773  		else
bc5ad3f3701116 Benjamin Herrenschmidt 2013-04-17  774  			kvmppc_xics_free_icp(vcpu);
bc5ad3f3701116 Benjamin Herrenschmidt 2013-04-17  775  		break;
eacc56bb9de3e6 Cédric Le Goater       2019-04-18  776  	case KVMPPC_IRQ_XIVE:
eacc56bb9de3e6 Cédric Le Goater       2019-04-18  777  		kvmppc_xive_native_cleanup_vcpu(vcpu);
eacc56bb9de3e6 Cédric Le Goater       2019-04-18  778  		break;
eb1e4f43e0f47f Scott Wood             2013-04-12  779  	}
eb1e4f43e0f47f Scott Wood             2013-04-12  780  
db93f5745d836f Hollis Blanchard       2008-11-05  781  	kvmppc_core_vcpu_free(vcpu);
64e6991c2234c3 Sean Christopherson    2019-10-21  782  
64e6991c2234c3 Sean Christopherson    2019-10-21  783  	kvmppc_mmu_destroy(vcpu);
64e6991c2234c3 Sean Christopherson    2019-10-21  784  	kvmppc_subarch_vcpu_uninit(vcpu);
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  785  }
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  786  
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  787  int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu)
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  788  {
9dd921cfea7344 Hollis Blanchard       2008-11-05  789  	return kvmppc_core_pending_dec(vcpu);
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  790  }
bbf45ba57eaec5 Hollis Blanchard       2008-04-16  791  
5358a96341a7fb Thomas Huth            2015-05-22 @792  static enum hrtimer_restart kvmppc_decrementer_wakeup(struct hrtimer *timer)
544c6761bb05a1 Alexander Graf         2009-11-02  793  {
544c6761bb05a1 Alexander Graf         2009-11-02  794  	struct kvm_vcpu *vcpu;
544c6761bb05a1 Alexander Graf         2009-11-02  795  
544c6761bb05a1 Alexander Graf         2009-11-02  796  	vcpu = container_of(timer, struct kvm_vcpu, arch.dec_timer);
d02d4d156e72ba Mihai Caraman          2014-09-01  797  	kvmppc_decrementer_func(vcpu);
544c6761bb05a1 Alexander Graf         2009-11-02  798  
544c6761bb05a1 Alexander Graf         2009-11-02  799  	return HRTIMER_NORESTART;
544c6761bb05a1 Alexander Graf         2009-11-02  800  }
544c6761bb05a1 Alexander Graf         2009-11-02  801  

:::::: The code at line 792 was first introduced by commit
:::::: 5358a96341a7fba23cbf0eaf01ce1ab4d738fc90 KVM: PPC: Fix warnings from sparse

:::::: TO: Thomas Huth <thuth@redhat.com>
:::::: CC: Alexander Graf <agraf@suse.de>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25600 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-11-14  9:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-13 17:51 [arm-platforms:kvm-arm64/vcpu-xarray 42/49] arch/powerpc/kvm/powerpc.c:792:29: error: 'kvmppc_decrementer_wakeup' defined but not used kbuild test robot
2019-11-13 18:02 ` Marc Zyngier
2019-11-14  0:58   ` [kbuild-all] " Rong Chen
2019-11-14  8:18     ` Marc Zyngier
2019-11-14  9:15       ` Rong Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).