[openeuler:OLK-6.6 2464/2464] arch/arm64/kvm/virtcca_cvm.c:1193:5: sparse: sparse: symbol 'cvm_arm_smmu_domain_set_kvm' was not declared. Should it be static?

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 4467208a8b5583a77c842c4eb7673166deb5b717 commit: ad540a13eb8292fc92651b3bf281088a502a85f9 [2464/2464] virtcca feature: fix msi iova map config: arm64-randconfig-r111-20250705 (https://download.01.org/0day-ci/archive/20250709/202507091947.60BNSiXp-lkp@i...) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 61529d9e36fa86782a2458e6bdeedf7f376ef4b5) reproduce: (https://download.01.org/0day-ci/archive/20250709/202507091947.60BNSiXp-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/202507091947.60BNSiXp-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) arch/arm64/kvm/virtcca_cvm.c:963:5: sparse: sparse: symbol 'kvm_cvm_create_dev_ttt_levels' was not declared. Should it be static?
arch/arm64/kvm/virtcca_cvm.c:1193:5: sparse: sparse: symbol 'cvm_arm_smmu_domain_set_kvm' was not declared. Should it be static? -- drivers/coda/coda_vfio.c:323:5: sparse: sparse: symbol 'virtcca_set_dev_msi_addr' was not declared. Should it be static?
vim +/cvm_arm_smmu_domain_set_kvm +1193 arch/arm64/kvm/virtcca_cvm.c 1184 1185 /** 1186 * cvm_arm_smmu_domain_set_kvm - Associate SMMU domain with CVM 1187 * @dev: The Device under the iommu group 1188 * 1189 * Returns: 1190 * %0 if smmu_domain has been associate cvm or associate cvm successfully 1191 * %-ENXIO if the iommu group does not have smmu domain 1192 */
1193 int cvm_arm_smmu_domain_set_kvm(struct device *dev, void *data) 1194 { 1195 struct kvm *kvm; 1196 struct iommu_domain *domain; 1197 struct arm_smmu_domain *arm_smmu_domain = NULL; 1198 1199 domain = iommu_get_domain_for_dev(dev); 1200 if (!domain) 1201 return -ENXIO; 1202 1203 arm_smmu_domain = to_smmu_domain(domain); 1204 if (arm_smmu_domain->kvm) 1205 return 1; 1206 1207 kvm = virtcca_arm_smmu_get_kvm(arm_smmu_domain); 1208 if (kvm && kvm_is_virtcca_cvm(kvm)) 1209 arm_smmu_domain->kvm = kvm; 1210 1211 return 1; 1212 } 1213
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot