Re: [PATCH v5 1/2] dmaengine: Add HiSilicon Ascend SDMA engine support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Guo,

kernel test robot noticed the following build warnings:

[auto build test WARNING on vkoul-dmaengine/next]
[also build test WARNING on linus/master v6.6-rc7 next-20231024]
[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/Guo-Mengqi/dmaengine-Add-HiSilicon-Ascend-SDMA-engine-support/20231021-174034
base:   https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
patch link:    https://lore.kernel.org/r/20231021093454.39822-2-guomengqi3%40huawei.com
patch subject: [PATCH v5 1/2] dmaengine: Add HiSilicon Ascend SDMA engine support
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20231025/202310250352.srnfVXxw-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231025/202310250352.srnfVXxw-lkp@xxxxxxxxx/reproduce)

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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310250352.srnfVXxw-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/dmaengine.h:8,
                    from drivers/dma/hisi-ascend-sdma.c:6:
   drivers/dma/hisi-ascend-sdma.c: In function 'of_sdma_collect_info':
>> drivers/dma/hisi-ascend-sdma.c:683:31: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
     683 |                 dev_warn(dev, "reg size %#llx check failed, use %#x\n",
         |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                              ^~~
   include/linux/dev_printk.h:146:61: note: in expansion of macro 'dev_fmt'
     146 |         dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                             ^~~~~~~
   drivers/dma/hisi-ascend-sdma.c:683:17: note: in expansion of macro 'dev_warn'
     683 |                 dev_warn(dev, "reg size %#llx check failed, use %#x\n",
         |                 ^~~~~~~~
   drivers/dma/hisi-ascend-sdma.c:683:45: note: format string is defined here
     683 |                 dev_warn(dev, "reg size %#llx check failed, use %#x\n",
         |                                         ~~~~^
         |                                             |
         |                                             long long unsigned int
         |                                         %#x


vim +683 drivers/dma/hisi-ascend-sdma.c

   658	
   659	static int of_sdma_collect_info(struct platform_device *pdev, struct sdma_hardware_info *info)
   660	{
   661		int ret;
   662		u32 chan_mask[2] = {0};
   663		struct resource res;
   664		struct device *dev = &pdev->dev;
   665		struct device_node *np = pdev->dev.of_node;
   666	
   667		ret = of_property_read_variable_u32_array(np, "dma-channel-mask",
   668				chan_mask, 1, 2);
   669		if (ret < 0) {
   670			dev_err(dev, "get dma channel mask from dtb failed, %d\n", ret);
   671			return ret;
   672		}
   673		bitmap_from_arr32(&info->channel_map, chan_mask, SDMA_MAX_CHANNEL_NUM);
   674	
   675		ret = of_address_to_resource(np, 0, &res);
   676		if (ret < 0) {
   677			dev_err(dev, "get io_base info from dtb failed, %d\n", ret);
   678			return ret;
   679		}
   680	
   681		info->base_addr = res.start;
   682		if (resource_size(&res) != SDMA_IOMEM_SIZE)
 > 683			dev_warn(dev, "reg size %#llx check failed, use %#x\n",
   684					resource_size(&res), SDMA_IOMEM_SIZE);
   685	
   686		return 0;
   687	}
   688	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux