* [linux-next:master 13371/14231] drivers/spi/spi-stm32-qspi.c:481:76: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int')
@ 2021-04-21 18:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-21 18:44 UTC (permalink / raw)
To: Patrice Chotard
Cc: kbuild-all, clang-built-linux, Linux Memory Management List, Mark Brown
[-- Attachment #1: Type: text/plain, Size: 3575 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b74523885a715463203d4ccc3cf8c85952d3701a
commit: 1b8a7d4282c038b3846f2485d86cb990c55c38d9 [13371/14231] spi: stm32-qspi: Fix compilation warning in ARM64
config: mips-randconfig-r031-20210421 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d87b9b81ccb95217181ce75515c6c68bbb408ca4)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=1b8a7d4282c038b3846f2485d86cb990c55c38d9
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 1b8a7d4282c038b3846f2485d86cb990c55c38d9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips
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/spi/spi-stm32-qspi.c:481:76: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
dev_dbg(qspi->dev, "%s len = 0x%lx offs = 0x%llx buf = 0x%p\n", __func__, len, offs, buf);
~~~ ^~~
%x
include/linux/dev_printk.h:131:47: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
1 warning generated.
vim +481 drivers/spi/spi-stm32-qspi.c
460
461 static ssize_t stm32_qspi_dirmap_read(struct spi_mem_dirmap_desc *desc,
462 u64 offs, size_t len, void *buf)
463 {
464 struct stm32_qspi *qspi = spi_controller_get_devdata(desc->mem->spi->master);
465 struct spi_mem_op op;
466 u32 addr_max;
467 int ret;
468
469 ret = pm_runtime_get_sync(qspi->dev);
470 if (ret < 0) {
471 pm_runtime_put_noidle(qspi->dev);
472 return ret;
473 }
474
475 mutex_lock(&qspi->lock);
476 /* make a local copy of desc op_tmpl and complete dirmap rdesc
477 * spi_mem_op template with offs, len and *buf in order to get
478 * all needed transfer information into struct spi_mem_op
479 */
480 memcpy(&op, &desc->info.op_tmpl, sizeof(struct spi_mem_op));
> 481 dev_dbg(qspi->dev, "%s len = 0x%lx offs = 0x%llx buf = 0x%p\n", __func__, len, offs, buf);
482
483 op.data.nbytes = len;
484 op.addr.val = desc->info.offset + offs;
485 op.data.buf.in = buf;
486
487 addr_max = op.addr.val + op.data.nbytes + 1;
488 if (addr_max < qspi->mm_size && op.addr.buswidth)
489 qspi->fmode = CCR_FMODE_MM;
490 else
491 qspi->fmode = CCR_FMODE_INDR;
492
493 ret = stm32_qspi_send(desc->mem, &op);
494 mutex_unlock(&qspi->lock);
495
496 pm_runtime_mark_last_busy(qspi->dev);
497 pm_runtime_put_autosuspend(qspi->dev);
498
499 return ret ?: len;
500 }
501
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39090 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-21 18:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 18:44 [linux-next:master 13371/14231] drivers/spi/spi-stm32-qspi.c:481:76: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox