tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 95bc69473a373c2e578d4fc39734e5811a03ead3 commit: 77313e84cc513055342c5e92ac8854e78bc15276 [1559/1559] virtcca feature : disable swiotlb for passthrough device config: arm64-randconfig-004-20241129 (https://download.01.org/0day-ci/archive/20241129/202411290612.rtQtIYE0-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241129/202411290612.rtQtIYE0-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/202411290612.rtQtIYE0-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/arm64/kernel/virtcca_cvm_guest.c:139:6: warning: no previous prototype for 'enable_swiotlb_for_cvm_dev' [-Wmissing-prototypes]
139 | void enable_swiotlb_for_cvm_dev(struct device *dev, bool enable) | ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/enable_swiotlb_for_cvm_dev +139 arch/arm64/kernel/virtcca_cvm_guest.c
138
139 void enable_swiotlb_for_cvm_dev(struct device *dev, bool enable)
140 { 141 if (!is_virtcca_cvm_world()) 142 return; 143 144 if (enable) 145 swiotlb_dev_init(dev); 146 else 147 dev->dma_io_tlb_mem = &io_tlb_no_swiotlb_mem; 148 } 149 EXPORT_SYMBOL_GPL(enable_swiotlb_for_cvm_dev); 150