All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Guo Mengqi <guomengqi3@huawei.com>,
	vkoul@kernel.org, dmaengine@vger.kernel.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, xuqiang36@huawei.com,
	chenweilong@huawei.com, guomengqi3@huawei.com
Subject: Re: [PATCH v5 1/2] dmaengine: Add HiSilicon Ascend SDMA engine support
Date: Wed, 25 Oct 2023 04:10:23 +0800	[thread overview]
Message-ID: <202310250352.srnfVXxw-lkp@intel.com> (raw)
In-Reply-To: <20231021093454.39822-2-guomengqi3@huawei.com>

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

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

  parent reply	other threads:[~2023-10-24 20:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-21  9:34 [PATCH v5 0/2] Add dma controller driver for HiSilicon Ascend310/910 Guo Mengqi
2023-10-21  9:34 ` [PATCH v5 1/2] dmaengine: Add HiSilicon Ascend SDMA engine support Guo Mengqi
2023-10-24 18:43   ` kernel test robot
2023-10-24 20:10   ` kernel test robot [this message]
2023-10-21  9:34 ` [PATCH v5 2/2] dt-bindings: dma: HiSilicon: Add bindings for HiSilicon Ascend sdma Guo Mengqi
2023-10-21 10:18   ` Rob Herring
2023-10-24  2:04     ` guomengqi (A)
2023-10-22 21:13   ` Rob Herring
2023-10-23  9:08     ` guomengqi (A)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202310250352.srnfVXxw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chenweilong@huawei.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=guomengqi3@huawei.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh+dt@kernel.org \
    --cc=vkoul@kernel.org \
    --cc=xuqiang36@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.