All of lore.kernel.org
 help / color / mirror / Atom feed
* [scosu-sched:topic/mmap-cap-prot-wip/v6.18 52/1130] drivers/counter/counter-sysfs.c:711:34: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'unsigned long'
@ 2026-05-21 13:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-21 13:39 UTC (permalink / raw)
  To: Christian Ehrhardt; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/scosu/linux-sched topic/mmap-cap-prot-wip/v6.18
head:   f69a5a9d9fee15edde28429e23a4c749a59937bd
commit: b83eb705701d2a1b492af6ef6e8fa2c403b55cef [52/1130] cheri: Apply automatic FixCapFormat clang-tidy changes
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260521/202605212105.bKD3IeWI-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260521/202605212105.bKD3IeWI-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/202605212105.bKD3IeWI-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/counter/counter-sysfs.c:711:34: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'unsigned long' [-Wformat]
     711 |         return sysfs_emit(buf, "%zu\n", (unsigned long)id);
         |                                 ~~~     ^~~~~~~~~~~~~~~~~
         |                                 %lu
   1 warning generated.


vim +711 drivers/counter/counter-sysfs.c

   705	
   706	static ssize_t counter_comp_id_show(struct device *dev,
   707					    struct device_attribute *attr, char *buf)
   708	{
   709		const uintptr_t id = (uintptr_t)to_counter_attribute(attr)->comp.priv;
   710	
 > 711		return sysfs_emit(buf, "%zu\n", (unsigned long)id);
   712	}
   713	

--
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-05-21 13:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-21 13:39 [scosu-sched:topic/mmap-cap-prot-wip/v6.18 52/1130] drivers/counter/counter-sysfs.c:711:34: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'unsigned long' kernel test robot

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.