All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-6.6 14671/15255] arch/x86/kvm/../../../virt/kvm/vfio.c:519: warning: Function parameter or member 'dev' not described in 'find_arm_smmu_domain'
@ 2024-10-23 15:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-23 15:54 UTC (permalink / raw)
  To: kernel, yangxiangkai; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git OLK-6.6
head:   e7bc79687a034a22f94328123d5cf8c4d4436c35
commit: ad540a13eb8292fc92651b3bf281088a502a85f9 [14671/15255] virtcca feature: fix msi iova map
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20241023/202410232346.tk5fQNpz-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241023/202410232346.tk5fQNpz-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/202410232346.tk5fQNpz-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/x86/kvm/../../../virt/kvm/vfio.c:416: warning: Function parameter or member 'kv' not described in 'cvm_vfio_add_kvm_to_smmu_domain'
   arch/x86/kvm/../../../virt/kvm/vfio.c:416: warning: Excess function parameter 'kvm' description in 'cvm_vfio_add_kvm_to_smmu_domain'
>> arch/x86/kvm/../../../virt/kvm/vfio.c:519: warning: Function parameter or member 'dev' not described in 'find_arm_smmu_domain'
>> arch/x86/kvm/../../../virt/kvm/vfio.c:519: warning: Function parameter or member 'data' not described in 'find_arm_smmu_domain'
>> arch/x86/kvm/../../../virt/kvm/vfio.c:519: warning: Excess function parameter 'kvf' description in 'find_arm_smmu_domain'
>> arch/x86/kvm/../../../virt/kvm/vfio.c:519: warning: Excess function parameter 'smmu_domain_group_list' description in 'find_arm_smmu_domain'


vim +519 arch/x86/kvm/../../../virt/kvm/vfio.c

c57a5a1f767336 yangxiangkai 2024-09-11  512  
c57a5a1f767336 yangxiangkai 2024-09-11  513  /**
c57a5a1f767336 yangxiangkai 2024-09-11  514   * find_arm_smmu_domain - Find smmu domain list from kvm vfio file
c57a5a1f767336 yangxiangkai 2024-09-11  515   * @kvf: Kvm vfio file
c57a5a1f767336 yangxiangkai 2024-09-11  516   * @smmu_domain_group_list: List of smmu domain group
c57a5a1f767336 yangxiangkai 2024-09-11  517   */
ad540a13eb8292 yangxiangkai 2024-09-20  518  int find_arm_smmu_domain(struct device *dev, void *data)
c57a5a1f767336 yangxiangkai 2024-09-11 @519  {
c57a5a1f767336 yangxiangkai 2024-09-11  520  	int ret = 0;
ad540a13eb8292 yangxiangkai 2024-09-20  521  	struct iommu_domain *domain = NULL;
c57a5a1f767336 yangxiangkai 2024-09-11  522  	struct arm_smmu_domain *arm_smmu_domain = NULL;
c57a5a1f767336 yangxiangkai 2024-09-11  523  	struct arm_smmu_domain *arm_smmu_domain_node = NULL;
ad540a13eb8292 yangxiangkai 2024-09-20  524  	struct list_head *smmu_domain_group_list = (struct list_head *)data;
c57a5a1f767336 yangxiangkai 2024-09-11  525  
ad540a13eb8292 yangxiangkai 2024-09-20  526  	domain = iommu_get_domain_for_dev(dev);
ad540a13eb8292 yangxiangkai 2024-09-20  527  	arm_smmu_domain = to_smmu_domain(domain);
c57a5a1f767336 yangxiangkai 2024-09-11  528  	list_for_each_entry(arm_smmu_domain_node,
c57a5a1f767336 yangxiangkai 2024-09-11  529  		smmu_domain_group_list, node) {
c57a5a1f767336 yangxiangkai 2024-09-11  530  		if (arm_smmu_domain_node == arm_smmu_domain) {
c57a5a1f767336 yangxiangkai 2024-09-11  531  			ret = -1;
c57a5a1f767336 yangxiangkai 2024-09-11  532  			break;
c57a5a1f767336 yangxiangkai 2024-09-11  533  		}
c57a5a1f767336 yangxiangkai 2024-09-11  534  	}
c57a5a1f767336 yangxiangkai 2024-09-11  535  	if (!ret)
c57a5a1f767336 yangxiangkai 2024-09-11  536  		list_add_tail(&arm_smmu_domain->node, smmu_domain_group_list);
ad540a13eb8292 yangxiangkai 2024-09-20  537  
ad540a13eb8292 yangxiangkai 2024-09-20  538  	return 1;
c57a5a1f767336 yangxiangkai 2024-09-11  539  }
c57a5a1f767336 yangxiangkai 2024-09-11  540  

:::::: The code at line 519 was first introduced by commit
:::::: c57a5a1f767336eff9721cb833c067657ade31de virtcca feature: activate confidential vm to set security device s_s2ttbr

:::::: TO: yangxiangkai <yangxiangkai@huawei.com>
:::::: CC: yangxiangkai <yangxiangkai@huawei.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:[~2024-10-23 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 15:54 [openeuler:OLK-6.6 14671/15255] arch/x86/kvm/../../../virt/kvm/vfio.c:519: warning: Function parameter or member 'dev' not described in 'find_arm_smmu_domain' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.