From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C40378F59 for ; Sun, 10 May 2026 01:30:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778376613; cv=none; b=TFubX1bCbFbpmfbHJbYHDuUGP91CGqAgLunIpHU2wBjslol7BH+8Tm9wI6S3NCV5ef2LJh5U56LeneuTi4vR/XE8aS+9zDNHj/ihRtG4M7aVlCMncc1XQKNahKkxY/ZNIrL39CKZk/9TQgVTlz3+yosja3aaQOXBM2hC+MxvyOY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778376613; c=relaxed/simple; bh=oRKoDO3nwJJTuY/rWEdWNUCR3TYApEBVdkhH4Yk0VxA=; h=Date:From:To:Cc:Subject:Message-ID; b=fKXttMS0r2XSkVi5asF+fUFYNuOSU5OmCy4P/nf6/rNwXzyAE/u+cQdRuZnYjhTnvnCyYnGHphgs/4Eg1ZSm0reqo3KL0MMhi2oc/mHUJ0PVFymoGcrkSsb7u0k+F+WqG1P6q4JDSEQotBPAVEi/ZASoDio4LR7wk6XyntIvgrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=b1fFV+J3; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="b1fFV+J3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778376612; x=1809912612; h=date:from:to:cc:subject:message-id; bh=oRKoDO3nwJJTuY/rWEdWNUCR3TYApEBVdkhH4Yk0VxA=; b=b1fFV+J3WjFcOoi2qdmdFIv/w/4yVUny+iWm06NMzA3mD6KtUOvFQQcH f9Zo45kAMuB0urtwKwPB5j8wvJvPPEqziNn/s+SUbtYPIOdQk9TJeSg9Y 7pGDBts5oGua5xRFO8Ii0Umq+n7FubUwKWVaZdn1sVdnzmH4p9oK1miNG 1cliPccYO8GHni6I4zKIamcnDjOmIrmX3MgEtNCwgMIfJtYdwgvx7AToH BfMggVL+OKoL3qN055QFDq0RIzJG2vV6eSsvrJL3yeDVGrntiCnoSlAlr wbi/6bwwjQg6Kop+f/4NYeF9WHO8do/r2qffYA4NU2sXO3Z3hIYFbTbRd Q==; X-CSE-ConnectionGUID: wOU8VMsBQAi3CRroKabTVA== X-CSE-MsgGUID: BTfGqPzQRpaaojBqspb3ew== X-IronPort-AV: E=McAfee;i="6800,10657,11781"; a="89896244" X-IronPort-AV: E=Sophos;i="6.23,225,1770624000"; d="scan'208";a="89896244" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2026 18:30:07 -0700 X-CSE-ConnectionGUID: sfcmJ+rFRV6+ls/KGP3eLA== X-CSE-MsgGUID: jQIVosuIS8K+/MlbmsVA9g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,225,1770624000"; d="scan'208";a="234050441" Received: from lkp-server01.sh.intel.com (HELO 82327192134e) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 09 May 2026 18:30:05 -0700 Received: from kbuild by 82327192134e with local (Exim 4.98.2) (envelope-from ) id 1wLszb-000000001cl-1McE; Sun, 10 May 2026 01:30:03 +0000 Date: Sun, 10 May 2026 09:29:32 +0800 From: kernel test robot To: Eileen Yoon Cc: oe-kbuild-all@lists.linux.dev, Janne Grunau Subject: [asahilinux:bits/240-isp 1/53] drivers/media/platform/apple/isp/isp-cam.c:378:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} Message-ID: <202605100925.tqPJuYmq-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: tree: https://github.com/AsahiLinux/linux bits/240-isp head: 50d4a0c32a10908320be6a9f3971221f726d4a20 commit: 45af4de5649cf1b84dd0076a4c77e3e3d550ba0d [1/53] media: apple: Add Apple ISP driver config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260510/202605100925.tqPJuYmq-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 11.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260510/202605100925.tqPJuYmq-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202605100925.tqPJuYmq-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from include/linux/pci.h:37, from include/media/media-device.h:17, from include/media/v4l2-device.h:12, from drivers/media/platform/apple/isp/isp-drv.h:13, from drivers/media/platform/apple/isp/isp-cam.h:7, from drivers/media/platform/apple/isp/isp-cam.c:6: drivers/media/platform/apple/isp/isp-cam.c: In function 'isp_ch_load_setfile': >> drivers/media/platform/apple/isp/isp-cam.c:378:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 378 | dev_err(isp->dev, "setfile too small (0x%lx/0x%zx)\n", fw->size, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:154:56: note: in expansion of macro 'dev_fmt' 154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/apple/isp/isp-cam.c:378:17: note: in expansion of macro 'dev_err' 378 | dev_err(isp->dev, "setfile too small (0x%lx/0x%zx)\n", fw->size, | ^~~~~~~ drivers/media/platform/apple/isp/isp-cam.c:378:59: note: format string is defined here 378 | dev_err(isp->dev, "setfile too small (0x%lx/0x%zx)\n", fw->size, | ~~^ | | | long unsigned int | %x -- In file included from include/linux/printk.h:620, from include/asm-generic/bug.h:31, from ./arch/nios2/include/generated/asm/bug.h:1, from include/linux/bug.h:5, from include/linux/instrumented.h:10, from include/linux/atomic/atomic-instrumented.h:17, from include/linux/atomic.h:82, from include/asm-generic/bitops/lock.h:5, from include/asm-generic/bitops.h:31, from ./arch/nios2/include/generated/asm/bitops.h:1, from include/linux/bitops.h:67, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nios2/include/generated/asm/div64.h:1, from include/linux/math.h:6, from include/linux/delay.h:12, from drivers/media/platform/apple/isp/isp-fw.c:4: drivers/media/platform/apple/isp/isp-fw.c: In function 'isp_fill_channel_info': >> drivers/media/platform/apple/isp/isp-drv.h:249:29: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 9 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 249 | dev_dbg((isp)->dev, "[%s] " fmt, __func__, ##__VA_ARGS__) | ^~~~~~~ include/linux/dynamic_debug.h:231:29: note: in definition of macro '__dynamic_func_call_cls' 231 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:261:9: note: in expansion of macro '_dynamic_func_call_cls' 261 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:284:9: note: in expansion of macro '_dynamic_func_call' 284 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:165:9: note: in expansion of macro 'dynamic_dev_dbg' 165 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:165:30: note: in expansion of macro 'dev_fmt' 165 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/apple/isp/isp-drv.h:249:9: note: in expansion of macro 'dev_dbg' 249 | dev_dbg((isp)->dev, "[%s] " fmt, __func__, ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/apple/isp/isp-fw.c:363:17: note: in expansion of macro 'isp_dbg' 363 | isp_dbg(isp, "chan: %s type: %d src: %d num: %d iova: 0x%llx\n", | ^~~~~~~ drivers/media/platform/apple/isp/isp-fw.c: In function 'isp_collect_gc_surface': drivers/media/platform/apple/isp/isp-drv.h:249:29: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 249 | dev_dbg((isp)->dev, "[%s] " fmt, __func__, ##__VA_ARGS__) | ^~~~~~~ include/linux/dynamic_debug.h:231:29: note: in definition of macro '__dynamic_func_call_cls' 231 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:261:9: note: in expansion of macro '_dynamic_func_call_cls' 261 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:284:9: note: in expansion of macro '_dynamic_func_call' 284 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:165:9: note: in expansion of macro 'dynamic_dev_dbg' 165 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:165:30: note: in expansion of macro 'dev_fmt' 165 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/apple/isp/isp-drv.h:249:9: note: in expansion of macro 'dev_dbg' 249 | dev_dbg((isp)->dev, "[%s] " fmt, __func__, ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/apple/isp/isp-fw.c:513:17: note: in expansion of macro 'isp_dbg' 513 | isp_dbg(isp, "freeing iova: 0x%llx size: 0x%llx virt: %pS\n", | ^~~~~~~ drivers/media/platform/apple/isp/isp-fw.c: At top level: drivers/media/platform/apple/isp/isp-fw.c:581:5: warning: no previous prototype for 'apple_isp_firmware_boot' [-Wmissing-prototypes] 581 | int apple_isp_firmware_boot(struct apple_isp *isp) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/apple/isp/isp-fw.c:602:6: warning: no previous prototype for 'apple_isp_firmware_shutdown' [-Wmissing-prototypes] 602 | void apple_isp_firmware_shutdown(struct apple_isp *isp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/device.h:15, from include/linux/iommu.h:11, from drivers/media/platform/apple/isp/isp-iommu.c:4: drivers/media/platform/apple/isp/isp-iommu.c: In function 'isp_surf_iommu_map': >> drivers/media/platform/apple/isp/isp-iommu.c:136:35: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 136 | dev_err(isp->dev, "failed to iommu_map sgt to iova 0x%llx\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:154:56: note: in expansion of macro 'dev_fmt' 154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/apple/isp/isp-iommu.c:136:17: note: in expansion of macro 'dev_err' 136 | dev_err(isp->dev, "failed to iommu_map sgt to iova 0x%llx\n", | ^~~~~~~ drivers/media/platform/apple/isp/isp-iommu.c:136:73: note: format string is defined here 136 | dev_err(isp->dev, "failed to iommu_map sgt to iova 0x%llx\n", | ~~~^ | | | long long unsigned int | %x In file included from include/linux/device.h:15, from include/linux/iommu.h:11, from drivers/media/platform/apple/isp/isp-iommu.c:4: drivers/media/platform/apple/isp/isp-iommu.c: In function '__isp_alloc_surface': drivers/media/platform/apple/isp/isp-iommu.c:182:25: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 182 | "failed to iommu_map size 0x%llx to iova 0x%llx\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:154:56: note: in expansion of macro 'dev_fmt' 154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/apple/isp/isp-iommu.c:181:17: note: in expansion of macro 'dev_err' 181 | dev_err(isp->dev, | ^~~~~~~ drivers/media/platform/apple/isp/isp-iommu.c:182:71: note: format string is defined here 182 | "failed to iommu_map size 0x%llx to iova 0x%llx\n", | ~~~^ | | | long long unsigned int | %x In file included from include/linux/device.h:15, from include/linux/iommu.h:11, from drivers/media/platform/apple/isp/isp-iommu.c:4: drivers/media/platform/apple/isp/isp-iommu.c: In function 'isp_alloc_surface_vmap': drivers/media/platform/apple/isp/isp-iommu.c:212:35: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 212 | dev_err(isp->dev, "failed to vmap iova 0x%llx - 0x%llx\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:154:56: note: in expansion of macro 'dev_fmt' 154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/apple/isp/isp-iommu.c:212:17: note: in expansion of macro 'dev_err' 212 | dev_err(isp->dev, "failed to vmap iova 0x%llx - 0x%llx\n", | ^~~~~~~ drivers/media/platform/apple/isp/isp-iommu.c:212:61: note: format string is defined here 212 | dev_err(isp->dev, "failed to vmap iova 0x%llx - 0x%llx\n", | ~~~^ | | | long long unsigned int | %x In file included from include/linux/device.h:15, from include/linux/iommu.h:11, from drivers/media/platform/apple/isp/isp-iommu.c:4: drivers/media/platform/apple/isp/isp-iommu.c: In function 'apple_isp_iommu_map_sgt': drivers/media/platform/apple/isp/isp-iommu.c:260:35: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 260 | dev_err(isp->dev, "failed to iommu_map sgt to iova 0x%llx\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:154:56: note: in expansion of macro 'dev_fmt' 154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/apple/isp/isp-iommu.c:260:17: note: in expansion of macro 'dev_err' 260 | dev_err(isp->dev, "failed to iommu_map sgt to iova 0x%llx\n", | ^~~~~~~ drivers/media/platform/apple/isp/isp-iommu.c:260:73: note: format string is defined here 260 | dev_err(isp->dev, "failed to iommu_map sgt to iova 0x%llx\n", | ~~~^ | | | long long unsigned int | %x vim +378 drivers/media/platform/apple/isp/isp-cam.c 361 362 static int isp_ch_load_setfile(struct apple_isp *isp, u32 ch) 363 { 364 struct isp_format *fmt = isp_get_format(isp, ch); 365 const struct isp_setfile *setfile = &isp_setfiles[fmt->id]; 366 const struct firmware *fw; 367 u32 magic; 368 int err; 369 370 err = request_firmware(&fw, setfile->path, isp->dev); 371 if (err) { 372 dev_err(isp->dev, "failed to request setfile '%s': %d\n", 373 setfile->path, err); 374 return err; 375 } 376 377 if (fw->size < setfile->size) { > 378 dev_err(isp->dev, "setfile too small (0x%lx/0x%zx)\n", fw->size, 379 setfile->size); 380 release_firmware(fw); 381 return -EINVAL; 382 } 383 384 magic = be32_to_cpup((__be32 *)fw->data); 385 if (magic != setfile->magic) { 386 dev_err(isp->dev, "setfile '%s' corrupted?\n", setfile->path); 387 release_firmware(fw); 388 return -EINVAL; 389 } 390 391 isp_iowrite(isp, isp->data_surf->iova, (void *)fw->data, setfile->size); 392 release_firmware(fw); 393 394 return isp_cmd_ch_set_file_load(isp, ch, isp->data_surf->iova, 395 setfile->size); 396 } 397 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki