public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [sean-jc:x86/gmem 2/28] arch/powerpc/include/asm/kvm_ppc.h:287:50: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function
@ 2023-07-13  4:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-13  4:30 UTC (permalink / raw)
  To: Sean Christopherson; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/sean-jc/linux x86/gmem
head:   564e2958c0dbe7ad26e6606256f816f4d532c13b
commit: f9b9b42d8bf08b56054b5987f9ce77dc73ed0617 [2/28] KVM: Convert KVM_ARCH_WANT_MMU_NOTIFIER to CONFIG_KVM_GENERIC_MMU_NOTIFIER
config: powerpc-randconfig-r034-20230713 (https://download.01.org/0day-ci/archive/20230713/202307131236.DRTO6sxN-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230713/202307131236.DRTO6sxN-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307131236.DRTO6sxN-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/powerpc/kernel/asm-offsets.c:36:
   In file included from arch/powerpc/include/asm/dbell.h:17:
>> arch/powerpc/include/asm/kvm_ppc.h:287:50: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function [-Wvisibility]
     287 |         bool (*unmap_gfn_range)(struct kvm *kvm, struct kvm_gfn_range *range);
         |                                                         ^
   arch/powerpc/include/asm/kvm_ppc.h:288:42: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function [-Wvisibility]
     288 |         bool (*age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
         |                                                 ^
   arch/powerpc/include/asm/kvm_ppc.h:289:47: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function [-Wvisibility]
     289 |         bool (*test_age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
         |                                                      ^
   arch/powerpc/include/asm/kvm_ppc.h:290:47: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function [-Wvisibility]
     290 |         bool (*set_spte_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
         |                                                      ^
   4 warnings generated.
--
   In file included from arch/powerpc/kernel/asm-offsets.c:36:
   In file included from arch/powerpc/include/asm/dbell.h:17:
>> arch/powerpc/include/asm/kvm_ppc.h:287:50: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function [-Wvisibility]
     287 |         bool (*unmap_gfn_range)(struct kvm *kvm, struct kvm_gfn_range *range);
         |                                                         ^
   arch/powerpc/include/asm/kvm_ppc.h:288:42: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function [-Wvisibility]
     288 |         bool (*age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
         |                                                 ^
   arch/powerpc/include/asm/kvm_ppc.h:289:47: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function [-Wvisibility]
     289 |         bool (*test_age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
         |                                                      ^
   arch/powerpc/include/asm/kvm_ppc.h:290:47: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function [-Wvisibility]
     290 |         bool (*set_spte_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
         |                                                      ^
   4 warnings generated.


vim +287 arch/powerpc/include/asm/kvm_ppc.h

3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  260  
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  261  struct kvmppc_ops {
cbbc58d4fdfab1a Aneesh Kumar K.V     2013-10-07  262  	struct module *owner;
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  263  	int (*get_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  264  	int (*set_sregs)(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  265  	int (*get_one_reg)(struct kvm_vcpu *vcpu, u64 id,
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  266  			   union kvmppc_one_reg *val);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  267  	int (*set_one_reg)(struct kvm_vcpu *vcpu, u64 id,
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  268  			   union kvmppc_one_reg *val);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  269  	void (*vcpu_load)(struct kvm_vcpu *vcpu, int cpu);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  270  	void (*vcpu_put)(struct kvm_vcpu *vcpu);
87a45e07a5abfec Nicholas Piggin      2019-10-02  271  	void (*inject_interrupt)(struct kvm_vcpu *vcpu, int vec, u64 srr1_flags);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  272  	void (*set_msr)(struct kvm_vcpu *vcpu, u64 msr);
8c99d34578628b5 Tianjia Zhang        2020-04-27  273  	int (*vcpu_run)(struct kvm_vcpu *vcpu);
ff030fdf5573226 Sean Christopherson  2019-12-18  274  	int (*vcpu_create)(struct kvm_vcpu *vcpu);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  275  	void (*vcpu_free)(struct kvm_vcpu *vcpu);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  276  	int (*check_requests)(struct kvm_vcpu *vcpu);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  277  	int (*get_dirty_log)(struct kvm *kvm, struct kvm_dirty_log *log);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  278  	void (*flush_memslot)(struct kvm *kvm, struct kvm_memory_slot *memslot);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  279  	int (*prepare_memory_region)(struct kvm *kvm,
537a17b31493009 Sean Christopherson  2021-12-06  280  				     const struct kvm_memory_slot *old,
537a17b31493009 Sean Christopherson  2021-12-06  281  				     struct kvm_memory_slot *new,
82307e676f9d885 Sean Christopherson  2020-02-18  282  				     enum kvm_mr_change change);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  283  	void (*commit_memory_region)(struct kvm *kvm,
537a17b31493009 Sean Christopherson  2021-12-06  284  				     struct kvm_memory_slot *old,
f032b73459eed48 Bharata B Rao        2018-12-12  285  				     const struct kvm_memory_slot *new,
f032b73459eed48 Bharata B Rao        2018-12-12  286  				     enum kvm_mr_change change);
b1c5356e873cc4f Sean Christopherson  2021-04-01 @287  	bool (*unmap_gfn_range)(struct kvm *kvm, struct kvm_gfn_range *range);
b1c5356e873cc4f Sean Christopherson  2021-04-01  288  	bool (*age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
b1c5356e873cc4f Sean Christopherson  2021-04-01  289  	bool (*test_age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
b1c5356e873cc4f Sean Christopherson  2021-04-01  290  	bool (*set_spte_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
e96c81ee89d80e1 Sean Christopherson  2020-02-18  291  	void (*free_memslot)(struct kvm_memory_slot *slot);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  292  	int (*init_vm)(struct kvm *kvm);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  293  	void (*destroy_vm)(struct kvm *kvm);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  294  	int (*get_smmu_info)(struct kvm *kvm, struct kvm_ppc_smmu_info *info);
8c99d34578628b5 Tianjia Zhang        2020-04-27  295  	int (*emulate_op)(struct kvm_vcpu *vcpu,
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  296  			  unsigned int inst, int *advance);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  297  	int (*emulate_mtspr)(struct kvm_vcpu *vcpu, int sprn, ulong spr_val);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  298  	int (*emulate_mfspr)(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  299  	void (*fast_vcpu_kick)(struct kvm_vcpu *vcpu);
67c48662e2b5539 Thomas Huth          2023-02-08  300  	int (*arch_vm_ioctl)(struct file *filp, unsigned int ioctl,
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  301  			     unsigned long arg);
ae2113a4f1a6cd5 Paul Mackerras       2014-06-02  302  	int (*hcall_implemented)(unsigned long hcall);
9576730d0e6e301 Suresh Warrier       2016-08-19  303  	int (*irq_bypass_add_producer)(struct irq_bypass_consumer *,
9576730d0e6e301 Suresh Warrier       2016-08-19  304  				       struct irq_bypass_producer *);
9576730d0e6e301 Suresh Warrier       2016-08-19  305  	void (*irq_bypass_del_producer)(struct irq_bypass_consumer *,
9576730d0e6e301 Suresh Warrier       2016-08-19  306  					struct irq_bypass_producer *);
c92701322711682 Paul Mackerras       2017-01-30  307  	int (*configure_mmu)(struct kvm *kvm, struct kvm_ppc_mmuv3_cfg *cfg);
c92701322711682 Paul Mackerras       2017-01-30  308  	int (*get_rmmu_info)(struct kvm *kvm, struct kvm_ppc_rmmu_info *info);
3c313524605a6af Paul Mackerras       2017-02-06  309  	int (*set_smt_mode)(struct kvm *kvm, unsigned long mode,
3c313524605a6af Paul Mackerras       2017-02-06  310  			    unsigned long flags);
2e6baa46b4ae785 Simon Guo            2018-05-21  311  	void (*giveup_ext)(struct kvm_vcpu *vcpu, ulong msr);
aa069a996951f3e Paul Mackerras       2018-09-21  312  	int (*enable_nested)(struct kvm *kvm);
dceadcf91b2e097 Suraj Jitindar Singh 2018-12-14  313  	int (*load_from_eaddr)(struct kvm_vcpu *vcpu, ulong *eaddr, void *ptr,
dceadcf91b2e097 Suraj Jitindar Singh 2018-12-14  314  			       int size);
dceadcf91b2e097 Suraj Jitindar Singh 2018-12-14  315  	int (*store_to_eaddr)(struct kvm_vcpu *vcpu, ulong *eaddr, void *ptr,
dceadcf91b2e097 Suraj Jitindar Singh 2018-12-14  316  			      int size);
9a5788c615f52f6 Paul Mackerras       2020-03-19  317  	int (*enable_svm)(struct kvm *kvm);
22945688acd4d0e Bharata B Rao        2019-11-25  318  	int (*svm_off)(struct kvm *kvm);
d9a47edabc4f948 Ravi Bangoria        2020-12-16  319  	int (*enable_dawr1)(struct kvm *kvm);
a722076e947023a Fabiano Rosas        2021-02-05  320  	bool (*hash_v3_possible)(void);
faf01aef0570757 Alexey Kardashevskiy 2022-01-11  321  	int (*create_vm_debugfs)(struct kvm *kvm);
faf01aef0570757 Alexey Kardashevskiy 2022-01-11  322  	int (*create_vcpu_debugfs)(struct kvm_vcpu *vcpu, struct dentry *debugfs_dentry);
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  323  };
3a167beac07cba5 Aneesh Kumar K.V     2013-10-07  324  

:::::: The code at line 287 was first introduced by commit
:::::: b1c5356e873cc4fcbb8f58965e0cd910f3ee37a9 KVM: PPC: Convert to the gfn-based MMU notifier callbacks

:::::: TO: Sean Christopherson <seanjc@google.com>
:::::: CC: Paolo Bonzini <pbonzini@redhat.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-13  4:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-13  4:30 [sean-jc:x86/gmem 2/28] arch/powerpc/include/asm/kvm_ppc.h:287:50: warning: declaration of 'struct kvm_gfn_range' will not be visible outside of this function kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox