Hi Jianmin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on rafael-pm/linux-next] [also build test WARNING on linus/master v5.19 next-20220804] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Jianmin-Lv/DMA-update-acpi_dma_get_range-to-return-dma-map-regions/20220805-153307 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next config: loongarch-randconfig-r011-20220805 (https://download.01.org/0day-ci/archive/20220806/202208060021.6kjospL6-lkp@xxxxxxxxx/config) compiler: loongarch64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/30f8fbc6b485f30e8533a7848a4ad9a2e1351be8 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jianmin-Lv/DMA-update-acpi_dma_get_range-to-return-dma-map-regions/20220805-153307 git checkout 30f8fbc6b485f30e8533a7848a4ad9a2e1351be8 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash arch/loongarch/kernel/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> arch/loongarch/kernel/dma.c:8:6: warning: no previous prototype for 'acpi_arch_dma_setup' [-Wmissing-prototypes] 8 | void acpi_arch_dma_setup(struct device *dev) | ^~~~~~~~~~~~~~~~~~~ vim +/acpi_arch_dma_setup +8 arch/loongarch/kernel/dma.c 7 > 8 void acpi_arch_dma_setup(struct device *dev) 9 { 10 int ret; 11 const struct bus_dma_region *map = NULL; 12 13 ret = acpi_dma_get_range(dev, &map); 14 if (!ret) { 15 const struct bus_dma_region *r = map; 16 u64 mask, dma_start, dma_end = 0; 17 18 /* determine the overall bounds of all dma regions */ 19 for (dma_start = U64_MAX; r->size; r++) { 20 21 /* Take lower and upper limits */ 22 if (r->dma_start < dma_start) 23 dma_start = r->dma_start; 24 if (r->dma_start + r->size - 1 > dma_end) 25 dma_end = r->dma_start + r->size - 1; 26 } 27 28 if (dma_start >= dma_end) { 29 dev_dbg(dev, "Invalid DMA regions configuration\n"); 30 return; 31 } 32 33 mask = DMA_BIT_MASK(ilog2(dma_end) + 1); 34 dev->bus_dma_limit = dma_end; 35 dev->dma_range_map = map; 36 dev->coherent_dma_mask = min(dev->coherent_dma_mask, mask); 37 *dev->dma_mask = min(*dev->dma_mask, mask); 38 } 39 -- 0-DAY CI Kernel Test Service https://01.org/lkp