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@xxxxxxxxx> 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@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip