mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Alison Schofield <alison.schofield@intel.com>,
	Ben Cheatham <benjamin.cheatham@amd.com>,
	Jonathan Cameron <jonathan.cameron@huawei.com>
Subject: drivers/cxl/core/region.c:753:36: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int')
Date: Sat, 13 Dec 2025 06:29:49 +0800	[thread overview]
Message-ID: <202512130601.qHhuGV9q-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   187d0801404f415f22c0b31531982c7ea97fa341
commit: d6602e25819dea2c239972e98e09ba5db4aebd22 cxl/region: Add support to indicate region has extended linear cache
date:   6 weeks ago
config: i386-randconfig-r123-20251212 (https://download.01.org/0day-ci/archive/20251213/202512130601.qHhuGV9q-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512130601.qHhuGV9q-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/202512130601.qHhuGV9q-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/cxl/core/region.c:753:36: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat]
     753 |         return sysfs_emit(buf, "%#llx\n", p->cache_size);
         |                                 ~~~~~     ^~~~~~~~~~~~~
         |                                 %#x
   1 warning generated.


vim +753 drivers/cxl/core/region.c

   741	
   742	static ssize_t extended_linear_cache_size_show(struct device *dev,
   743						       struct device_attribute *attr,
   744						       char *buf)
   745	{
   746		struct cxl_region *cxlr = to_cxl_region(dev);
   747		struct cxl_region_params *p = &cxlr->params;
   748		ssize_t rc;
   749	
   750		ACQUIRE(rwsem_read_intr, rwsem)(&cxl_rwsem.region);
   751		if ((rc = ACQUIRE_ERR(rwsem_read_intr, &rwsem)))
   752			return rc;
 > 753		return sysfs_emit(buf, "%#llx\n", p->cache_size);
   754	}
   755	static DEVICE_ATTR_RO(extended_linear_cache_size);
   756	

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

                 reply	other threads:[~2025-12-12 22:30 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=202512130601.qHhuGV9q-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alison.schofield@intel.com \
    --cc=benjamin.cheatham@amd.com \
    --cc=dave.jiang@intel.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®