Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Eileen Yoon <eyn@gmx.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Janne Grunau <j@jannau.net>
Subject: [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')
Date: Tue, 30 Jun 2026 18:07:39 +0800	[thread overview]
Message-ID: <202606301740.2J4S8vMX-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-06-30 10:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202606301740.2J4S8vMX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=eyn@gmx.com \
    --cc=j@jannau.net \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox