Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [asahilinux:bits/240-isp 1/53] drivers/media/platform/apple/isp/isp-ipc.c:228:4: warning: format specifies type 'unsigned long long' but the argument has type 'dma_addr_t' (aka 'unsigned int')
@ 2026-06-30 10:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-30 10:07 UTC (permalink / raw)
  To: Eileen Yoon; +Cc: llvm, oe-kbuild-all, Janne Grunau

tree:   https://github.com/AsahiLinux/linux bits/240-isp
head:   df907add385f43a49d493c59afd3762ae1598548
commit: 329bf83de183f0558c2e5bb6ba55da3f06a2c980 [1/53] media: apple: Add Apple ISP driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260630/202606301740.2J4S8vMX-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 6cc609bb250b21b47fc7d394b4019101e9983597)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260630/202606301740.2J4S8vMX-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/202606301740.2J4S8vMX-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/media/platform/apple/isp/isp-ipc.c:228:4: warning: format specifies type 'unsigned long long' but the argument has type 'dma_addr_t' (aka 'unsigned int') [-Wformat]
     227 |                 isp_err(isp, "failed to vmap iova=0x%llx size=0x%llx\n",
         |                                                     ~~~~
         |                                                     %x
     228 |                         surf->iova, surf->size);
         |                         ^~~~~~~~~~
   drivers/media/platform/apple/isp/isp-drv.h:253:47: note: expanded from macro 'isp_err'
     253 |         dev_err((isp)->dev, "[%s] " fmt, __func__, ##__VA_ARGS__)
         |                                     ~~~              ^~~~~~~~~~~
   include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
     154 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                                ~~~     ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                              ~~~    ^~~~~~~~~~~
   1 warning generated.


vim +228 drivers/media/platform/apple/isp/isp-ipc.c

   207	
   208	/* The kernel accesses exactly two dynamically allocated shared surfaces:
   209	 * 1) LOG: Surface for terminal logs. Optional, only enabled in debug builds.
   210	 * 2) STAT: Surface for BUFT2H rendered frame stat buffer. We isp_ioread() in
   211	 * the BUFT2H ISR below. Since the BUFT2H IRQ is triggered by the BUF_H2T
   212	 * doorbell, the STAT vmap must complete before the first buffer submission
   213	 * under VIDIOC_STREAMON(). The CISP_CMD_PRINT_ENABLE completion depends on the
   214	 * STAT buffer SHAREDMALLOC ISR, which is part of the firmware initialization
   215	 * sequence. We also call flush_workqueue(), so a fault should not occur.
   216	 */
   217	static void sm_malloc_deferred_worker(struct work_struct *work)
   218	{
   219		struct isp_sm_deferred_work *dwork =
   220			container_of(work, struct isp_sm_deferred_work, work);
   221		struct apple_isp *isp = dwork->isp;
   222		struct isp_surf *surf = dwork->surf;
   223		int err;
   224	
   225		err = isp_surf_vmap(isp, surf); /* Can't vmap in interrupt ctx */
   226		if (err < 0) {
   227			isp_err(isp, "failed to vmap iova=0x%llx size=0x%llx\n",
 > 228				surf->iova, surf->size);
   229			goto out;
   230		}
   231	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-30 10:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30 10:07 [asahilinux:bits/240-isp 1/53] drivers/media/platform/apple/isp/isp-ipc.c:228:4: warning: format specifies type 'unsigned long long' but the argument has type 'dma_addr_t' (aka 'unsigned int') kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox