
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: a159deb279dfe156316d8c3957dc7f253686ff83 commit: ed007ade0cef81fb47328683b8a7eec5edfa8494 [2909/2909] virtcca feature: secure smmu init config: arm64-randconfig-r121-20250923 (https://download.01.org/0day-ci/archive/20250923/202509230956.SzqfHlZe-lkp@i...) compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250923/202509230956.SzqfHlZe-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/202509230956.SzqfHlZe-lkp@intel.com/ sparse warnings: (new ones prefixed by >>)
drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c:315:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] cmd0 @@ got restricted __le64 [usertype] @@ drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c:315:22: sparse: expected unsigned long long [usertype] cmd0 drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c:315:22: sparse: got restricted __le64 [usertype] drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c:316:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] cmd1 @@ got restricted __le64 [usertype] @@ drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c:316:22: sparse: expected unsigned long long [usertype] cmd1 drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c:316:22: sparse: got restricted __le64 [usertype] drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c:509:13: sparse: sparse: symbol 'virtcca_smmu_evtq_thread' was not declared. Should it be static? drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c:527:13: sparse: sparse: symbol 'virtcca_smmu_gerror_handler' was not declared. Should it be static?
vim +315 drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c 296 297 /** 298 * Write queue command to TMM 299 * @smmu: An SMMUv3 instance 300 * @src: Command information 301 * @n_dwords: Num of command 302 */ 303 static void virtcca_smmu_queue_write(struct arm_smmu_device *smmu, u64 *src, size_t n_dwords) 304 { 305 u64 cmd0, cmd1; 306 u64 forward = 0; 307 308 if (!is_virtcca_cvm_enable()) 309 return; 310 311 if (!virtcca_smmu_enable(smmu)) 312 return; 313 314 if (n_dwords == ARM_S_SMMU_CMD_COUNT) {
315 cmd0 = cpu_to_le64(src[0]); 316 cmd1 = cpu_to_le64(src[1]); 317 virtcca_smmu_cmdq_need_forward(cmd0, cmd1, &forward); 318 319 /* need forward queue command to TMM */ 320 if (forward) { 321 if (tmi_smmu_queue_write(cmd0, cmd1, smmu->s_smmu_id)) 322 dev_err(smmu->dev, "S_SMMU: s queue write failed\n"); 323 } 324 } 325 } 326
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki