From: kernel test robot <lkp@intel.com>
To: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 7696/8213] drivers/bus/mhi/ep/main.c:519:22: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'}
Date: Sun, 17 Dec 2023 16:07:52 +0800 [thread overview]
Message-ID: <202312171537.W9d6tX7p-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 17cb8a20bde66a520a2ca7aad1063e1ce7382240
commit: e59bba2cc6c746942c7c2d83ebcd9b92ae0a1aca [7696/8213] bus: mhi: ep: Add support for async DMA write operation
config: arm-randconfig-r081-20231214 (https://download.01.org/0day-ci/archive/20231217/202312171537.W9d6tX7p-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312171537.W9d6tX7p-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/202312171537.W9d6tX7p-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/mhi.h:9,
from include/linux/mhi_ep.h:10,
from drivers/bus/mhi/ep/main.c:15:
drivers/bus/mhi/ep/main.c: In function 'mhi_ep_skb_completion':
>> drivers/bus/mhi/ep/main.c:519:22: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
519 | dev_dbg(dev, "Sending completion for ring (%d) rd_offset: %ld\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:129:41: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:163:45: note: in expansion of macro 'dev_fmt'
163 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
| ^~~~~~~
drivers/bus/mhi/ep/main.c:519:9: note: in expansion of macro 'dev_dbg'
519 | dev_dbg(dev, "Sending completion for ring (%d) rd_offset: %ld\n",
| ^~~~~~~
drivers/bus/mhi/ep/main.c:519:69: note: format string is defined here
519 | dev_dbg(dev, "Sending completion for ring (%d) rd_offset: %ld\n",
| ~~^
| |
| long int
| %d
drivers/bus/mhi/ep/main.c: In function 'mhi_ep_queue_skb':
drivers/bus/mhi/ep/main.c:600:30: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
600 | dev_dbg(dev, "rd_offset at the end of queue_skb: %ld\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:129:41: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:163:45: note: in expansion of macro 'dev_fmt'
163 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
| ^~~~~~~
drivers/bus/mhi/ep/main.c:600:17: note: in expansion of macro 'dev_dbg'
600 | dev_dbg(dev, "rd_offset at the end of queue_skb: %ld\n",
| ^~~~~~~
drivers/bus/mhi/ep/main.c:600:68: note: format string is defined here
600 | dev_dbg(dev, "rd_offset at the end of queue_skb: %ld\n",
| ~~^
| |
| long int
| %d
vim +519 drivers/bus/mhi/ep/main.c
499
500 static void mhi_ep_skb_completion(struct mhi_ep_buf_info *buf_info)
501 {
502 struct mhi_ep_device *mhi_dev = buf_info->mhi_dev;
503 struct mhi_ep_cntrl *mhi_cntrl = mhi_dev->mhi_cntrl;
504 struct mhi_ep_chan *mhi_chan = mhi_dev->dl_chan;
505 struct mhi_ep_ring *ring = &mhi_cntrl->mhi_chan[mhi_chan->chan].ring;
506 struct mhi_ring_element *el = &ring->ring_cache[ring->rd_offset];
507 struct device *dev = &mhi_dev->dev;
508 struct mhi_result result = {};
509 int ret;
510
511 if (mhi_chan->xfer_cb) {
512 result.buf_addr = buf_info->cb_buf;
513 result.dir = mhi_chan->dir;
514 result.bytes_xferd = buf_info->size;
515
516 mhi_chan->xfer_cb(mhi_dev, &result);
517 }
518
> 519 dev_dbg(dev, "Sending completion for ring (%d) rd_offset: %ld\n",
520 ring->er_index, ring->rd_offset);
521 ret = mhi_ep_send_completion_event(mhi_cntrl, ring, el, buf_info->size,
522 buf_info->code);
523 if (ret) {
524 dev_err(dev, "Error sending transfer completion event\n");
525 return;
526 }
527
528 mhi_ep_ring_inc_index(ring);
529 }
530
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-12-17 8:08 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=202312171537.W9d6tX7p-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-mm@kvack.org \
--cc=manivannan.sadhasivam@linaro.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