All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christian Ehrhardt <christian.ehrhardt@codasip.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Thu, 21 May 2026 21:39:33 +0800	[thread overview]
Message-ID: <202605212105.bKD3IeWI-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-05-21 13:40 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=202605212105.bKD3IeWI-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=christian.ehrhardt@codasip.com \
    --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 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.