From: kernel test robot <lkp@intel.com>
To: Phil Elwell <phil@raspberrypi.com>
Cc: oe-kbuild-all@lists.linux.dev,
Dave Stevenson <dave.stevenson@raspberrypi.com>
Subject: [jmondi:pispbe/media-staging/be-upstream 13/143] drivers/mfd/rp1.c:86:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t' {aka 'unsigned int'}
Date: Fri, 8 Mar 2024 11:26:33 +0800 [thread overview]
Message-ID: <202403081141.RBCJV2NF-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jmondi/linux.git pispbe/media-staging/be-upstream
head: b7b928a1ff80dc548d6f5c1b8c00b2082212e38e
commit: fb7bbdfe393a7f6a69e780c5b4b4284ad97c81b8 [13/143] mfd: Add rp1 driver
config: microblaze-allmodconfig (https://download.01.org/0day-ci/archive/20240308/202403081141.RBCJV2NF-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240308/202403081141.RBCJV2NF-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/202403081141.RBCJV2NF-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/dma-mapping.h:8,
from include/linux/skbuff.h:28,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from drivers/mfd/rp1.c:11:
drivers/mfd/rp1.c: In function 'dump_bar':
>> drivers/mfd/rp1.c:86:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
86 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\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:150:58: note: in expansion of macro 'dev_fmt'
150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/mfd/rp1.c:85:9: note: in expansion of macro 'dev_info'
85 | dev_info(&pdev->dev,
| ^~~~~~~~
drivers/mfd/rp1.c:86:34: note: format string is defined here
86 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n",
| ~~~^
| |
| long long unsigned int
| %x
drivers/mfd/rp1.c:86:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
86 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\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:150:58: note: in expansion of macro 'dev_fmt'
150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/mfd/rp1.c:85:9: note: in expansion of macro 'dev_info'
85 | dev_info(&pdev->dev,
| ^~~~~~~~
drivers/mfd/rp1.c:86:48: note: format string is defined here
86 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n",
| ~~~^
| |
| long long unsigned int
| %x
drivers/mfd/rp1.c:86:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
86 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\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:150:58: note: in expansion of macro 'dev_fmt'
150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/mfd/rp1.c:85:9: note: in expansion of macro 'dev_info'
85 | dev_info(&pdev->dev,
| ^~~~~~~~
drivers/mfd/rp1.c:86:60: note: format string is defined here
86 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n",
| ~~~^
| |
| long long unsigned int
| %x
vim +86 drivers/mfd/rp1.c
82
83 static void dump_bar(struct pci_dev *pdev, unsigned int bar)
84 {
85 dev_info(&pdev->dev,
> 86 "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n",
87 bar,
88 pci_resource_len(pdev, bar),
89 pci_resource_start(pdev, bar),
90 pci_resource_end(pdev, bar),
91 pci_resource_flags(pdev, bar));
92 }
93
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-03-08 3:27 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=202403081141.RBCJV2NF-lkp@intel.com \
--to=lkp@intel.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=phil@raspberrypi.com \
/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.