[chenxing:mstar_v6_5_reorder 363/700] drivers/dma/mstar/mstar-msc313-bdma.c:514:23: warning: format '%x' expects argument of type 'unsigned int', but argument 12 has type 'size_t' {aka 'long unsigned int'}

kernel test robot <[email protected]> Thu, 30 Jul 2026 05:15:34 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/linux-chenxing/linux.git mstar_v6_5_reorder
head:   1a5c60e65ea399670a5384b869c4958338af2799
commit: 26178975043b0a83d96b42a14c44bb70fdb84d4b [363/700] dma: mstar: msc313 bdma driver
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260730/[email protected]/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260730/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/dmaengine.h:8,
                    from include/linux/of_dma.h:14,
                    from drivers/dma/mstar/mstar-msc313-bdma.c:9:
   drivers/dma/mstar/mstar-msc313-bdma.c: In function 'msc313_bdma_watchdog':
>> drivers/dma/mstar/mstar-msc313-bdma.c:514:23: warning: format '%x' expects argument of type 'unsigned int', but argument 12 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
     514 |         dev_warn(dev, "timeout waiting for completion irq, queued: %d, busy %d, irq: %d, done: %d\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/mstar/mstar-msc313-bdma.c:514:9: note: in expansion of macro 'dev_warn'
     514 |         dev_warn(dev, "timeout waiting for completion irq, queued: %d, busy %d, irq: %d, done: %d\n"
         |         ^~~~~~~~


vim +514 drivers/dma/mstar/mstar-msc313-bdma.c

   488	
   489	static void msc313_bdma_watchdog(struct timer_list *t)
   490	{
   491		struct msc313_bdma_chan *chan = from_timer(chan, t, watchdog);
   492		struct msc313_bdma_desc *desc = chan->inflight;
   493		unsigned int queued, busy, irq, done;
   494		unsigned int srcid, dstid, residue, src, dst;
   495		struct device *dev = chan->chan.device->dev;
   496		unsigned long flags;
   497	
   498		spin_lock_irqsave(&chan->lock, flags);
   499	
   500		regmap_field_read(chan->queued, &queued);
   501		regmap_field_read(chan->busy, &busy);
   502		regmap_field_read(chan->irq, &irq);
   503		regmap_field_read(chan->done, &done);
   504		regmap_field_read(chan->src, &srcid);
   505		regmap_field_read(chan->dst, &dstid);
   506		src = msc313_bdma_read_low_high_pair(chan->src_addr_l, chan->src_addr_h);
   507		dst = msc313_bdma_read_low_high_pair(chan->dst_addr_l, chan->dst_addr_h);
   508		residue = msc313_bdma_read_low_high_pair(chan->size_l, chan->size_h);
   509	
   510		/* stop the channel, unused in the vendor code :/ */
   511		regmap_field_force_write(chan->stop, 1);
   512		regmap_field_force_write(chan->stop, 0);
   513	
 > 514		dev_warn(dev, "timeout waiting for completion irq, queued: %d, busy %d, irq: %d, done: %d\n"
   515				"src 0x%x (id 0x%x), dst 0x%x (id 0x%x), residue 0x%x (from 0x%x)\n",
   516				queued, busy, irq, done,
   517				src, srcid, dst, dstid,
   518				residue, desc->len);
   519	
   520		msc313_bdma_moveinflighttocomplete(chan, false, residue);
   521	
   522		spin_unlock_irqrestore(&chan->lock, flags);
   523	
   524		tasklet_schedule(&chan->tasklet);
   525	}
   526	

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