tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 321262d8251f07d9439cae39851f2bf2658d8813 commit: c57a5a1f767336eff9721cb833c067657ade31de [1540/1540] virtcca feature: activate confidential vm to set security device s_s2ttbr config: arm64-randconfig-002-20241128 (https://download.01.org/0day-ci/archive/20241128/202411281809.d4MBGHxN-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241128/202411281809.d4MBGHxN-lkp@i...)
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/202411281809.d4MBGHxN-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/arm64/kvm/../../../virt/kvm/vfio.c:535:6: warning: no previous prototype for 'find_arm_smmu_domain' [-Wmissing-prototypes]
535 | void find_arm_smmu_domain(struct kvm_vfio_file *kvf, struct list_head *smmu_domain_group_list) | ^~~~~~~~~~~~~~~~~~~~
vim +/find_arm_smmu_domain +535 arch/arm64/kvm/../../../virt/kvm/vfio.c
529 530 /** 531 * find_arm_smmu_domain - Find smmu domain list from kvm vfio file 532 * @kvf: Kvm vfio file 533 * @smmu_domain_group_list: List of smmu domain group 534 */
535 void find_arm_smmu_domain(struct kvm_vfio_file *kvf, struct list_head *smmu_domain_group_list)
536 { 537 struct iommu_group *iommu_group; 538 int ret = 0; 539 struct arm_smmu_domain *arm_smmu_domain = NULL; 540 struct arm_smmu_domain *arm_smmu_domain_node = NULL; 541 542 iommu_group = cvm_vfio_file_iommu_group(kvf->file); 543 arm_smmu_domain = to_smmu_domain(virtcca_iommu_group_get_domain(iommu_group)); 544 list_for_each_entry(arm_smmu_domain_node, 545 smmu_domain_group_list, node) { 546 if (arm_smmu_domain_node == arm_smmu_domain) { 547 ret = -1; 548 break; 549 } 550 } 551 if (!ret) 552 list_add_tail(&arm_smmu_domain->node, smmu_domain_group_list); 553 } 554