From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [cxl:preview 48/60] drivers/cxl/core/region.c:119:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'}
Date: Thu, 27 Jan 2022 17:44:09 +0800 [thread overview]
Message-ID: <202201271653.C879dFKr-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2768 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: 41c2d219a2c8e14de644f4e953e0c57402c3e884
commit: 99fd0afb6e1b21f8de1179f39f491347b6f3f04d [48/60] cxl/region: Introduce concept of region configuration
config: csky-randconfig-p002-20220126 (https://download.01.org/0day-ci/archive/20220127/202201271653.C879dFKr-lkp(a)intel.com/config)
compiler: csky-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=99fd0afb6e1b21f8de1179f39f491347b6f3f04d
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout 99fd0afb6e1b21f8de1179f39f491347b6f3f04d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/cxl/core/region.c: In function 'offset_show':
>> drivers/cxl/core/region.c:119:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
119 | return sysfs_emit(buf, "%#llx\n",
| ~~~~^
| |
| long long unsigned int
| %#x
120 | cxld->platform_res.start - cxlr->res->start);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| resource_size_t {aka unsigned int}
vim +119 drivers/cxl/core/region.c
109
110 static ssize_t offset_show(struct device *dev, struct device_attribute *attr,
111 char *buf)
112 {
113 struct cxl_decoder *cxld = to_cxl_decoder(dev->parent);
114 struct cxl_region *cxlr = to_cxl_region(dev);
115
116 if (!cxlr->res)
117 return sysfs_emit(buf, "\n");
118
> 119 return sysfs_emit(buf, "%#llx\n",
120 cxld->platform_res.start - cxlr->res->start);
121 }
122 static DEVICE_ATTR_RO(offset);
123
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Ben Widawsky <ben.widawsky@intel.com>
Cc: kbuild-all@lists.01.org,
Alison Schofield <alison.schofield@intel.com>,
Vishal Verma <vishal.l.verma@intel.com>,
Ira Weiny <ira.weiny@intel.com>,
Ben Widawsky <ben.widawsky@intel.com>,
Dan Williams <dan.j.williams@intel.com>,
linux-kernel@vger.kernel.org
Subject: [cxl:preview 48/60] drivers/cxl/core/region.c:119:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'}
Date: Thu, 27 Jan 2022 17:44:09 +0800 [thread overview]
Message-ID: <202201271653.C879dFKr-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: 41c2d219a2c8e14de644f4e953e0c57402c3e884
commit: 99fd0afb6e1b21f8de1179f39f491347b6f3f04d [48/60] cxl/region: Introduce concept of region configuration
config: csky-randconfig-p002-20220126 (https://download.01.org/0day-ci/archive/20220127/202201271653.C879dFKr-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=99fd0afb6e1b21f8de1179f39f491347b6f3f04d
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout 99fd0afb6e1b21f8de1179f39f491347b6f3f04d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/cxl/core/region.c: In function 'offset_show':
>> drivers/cxl/core/region.c:119:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
119 | return sysfs_emit(buf, "%#llx\n",
| ~~~~^
| |
| long long unsigned int
| %#x
120 | cxld->platform_res.start - cxlr->res->start);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| resource_size_t {aka unsigned int}
vim +119 drivers/cxl/core/region.c
109
110 static ssize_t offset_show(struct device *dev, struct device_attribute *attr,
111 char *buf)
112 {
113 struct cxl_decoder *cxld = to_cxl_decoder(dev->parent);
114 struct cxl_region *cxlr = to_cxl_region(dev);
115
116 if (!cxlr->res)
117 return sysfs_emit(buf, "\n");
118
> 119 return sysfs_emit(buf, "%#llx\n",
120 cxld->platform_res.start - cxlr->res->start);
121 }
122 static DEVICE_ATTR_RO(offset);
123
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next reply other threads:[~2022-01-27 9:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-27 9:44 kernel test robot [this message]
2022-01-27 9:44 ` [cxl:preview 48/60] drivers/cxl/core/region.c:119:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} kernel test robot
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=202201271653.C879dFKr-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.