
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 86390838db4d0ee205e00d4069a8fdb3e6f0d1d1 commit: b0023ec2484f4561c552979b944b208422ba75ea [2697/2697] dma: pswiotlb: Move pswiotlb dma functions behind dma_map_ops config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250821/202508211208.pMTZ4FXY-lkp@i...) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250821/202508211208.pMTZ4FXY-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/202508211208.pMTZ4FXY-lkp@intel.com/ All warnings (new ones prefixed by >>):
kernel/dma/phytium/pswiotlb-mapping.c:400:30: warning: no previous prototype for function 'pswiotlb_clone_orig_dma_ops' [-Wmissing-prototypes] 400 | struct pswiotlb_dma_map_ops *pswiotlb_clone_orig_dma_ops(struct device *dev, | ^ kernel/dma/phytium/pswiotlb-mapping.c:400:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 400 | struct pswiotlb_dma_map_ops *pswiotlb_clone_orig_dma_ops(struct device *dev, | ^ | static 1 warning generated.
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for DEBUG_FEATURE_BYPASS Depends on [n]: (FAST_SYSCALL [=y] || FAST_IRQ [=y]) && !LOCKDEP [=y] Selected by [y]: - FAST_SYSCALL [=y] - FAST_IRQ [=y] && ARM_GIC_V3 [=y] WARNING: unmet direct dependencies detected for SECURITY_FEATURE_BYPASS Depends on [n]: !ARM64_MTE [=y] && !KASAN_HW_TAGS [=n] && (FAST_SYSCALL [=y] || FAST_IRQ [=y]) Selected by [y]: - FAST_SYSCALL [=y] - FAST_IRQ [=y] && ARM_GIC_V3 [=y] vim +/pswiotlb_clone_orig_dma_ops +400 kernel/dma/phytium/pswiotlb-mapping.c 373 374 static const struct dma_map_ops pswiotlb_noiommu_dma_ops = { 375 .flags = DMA_F_PCI_P2PDMA_SUPPORTED, 376 .alloc = pswiotlb_dma_alloc_distribute, 377 .free = pswiotlb_dma_free_distribute, 378 .alloc_pages = pswiotlb_dma_common_alloc_pages_distribute, 379 .free_pages = pswiotlb_dma_common_free_pages_distribute, 380 .alloc_noncontiguous = pswiotlb_dma_alloc_noncontiguous_distribute, 381 .free_noncontiguous = pswiotlb_dma_free_noncontiguous_distribute, 382 .mmap = pswiotlb_dma_mmap_distribute, 383 .get_sgtable = pswiotlb_dma_get_sgtable_distribute, 384 .map_page = pswiotlb_dma_map_page_attrs_distribute, 385 .unmap_page = pswiotlb_dma_unmap_page_attrs_distribute, 386 .map_sg = pswiotlb_dma_map_sg_attrs_distribute, 387 .unmap_sg = pswiotlb_dma_unmap_sg_attrs_distribute, 388 .sync_single_for_cpu = pswiotlb_dma_sync_single_for_cpu_distribute, 389 .sync_single_for_device = pswiotlb_dma_sync_single_for_device_distribute, 390 .sync_sg_for_cpu = pswiotlb_dma_sync_sg_for_cpu_distribute, 391 .sync_sg_for_device = pswiotlb_dma_sync_sg_for_device_distribute, 392 .map_resource = pswiotlb_dma_map_resource_distribute, 393 .unmap_resource = NULL, 394 .get_merge_boundary = pswiotlb_dma_get_merge_boundary_distribute, 395 .get_required_mask = pswiotlb_dma_get_required_mask_distribute, 396 .dma_supported = pswiotlb_dma_supported_distribute, 397 .max_mapping_size = pswiotlb_dma_max_mapping_size_distribute, 398 .opt_mapping_size = pswiotlb_dma_opt_mapping_size_distribute, 399 };
400 struct pswiotlb_dma_map_ops *pswiotlb_clone_orig_dma_ops(struct device *dev, 401 const struct dma_map_ops *ops) 402 { 403 struct pswiotlb_dma_map_ops *new_dma_ops = kmalloc(sizeof(struct pswiotlb_dma_map_ops), 404 GFP_KERNEL); 405 if (!new_dma_ops) 406 return NULL; 407 408 memcpy(new_dma_ops, ops, sizeof(struct pswiotlb_dma_map_ops)); 409 410 return new_dma_ops; 411 } 412
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki