tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 593ef1658ecf61d3619885bdbbcfffa3d1417891 commit: 18674dee3cd651279eb3d9ba789fe483ddfe1137 [13487/14048] spi: stm32-qspi: Add dirmap support config: powerpc64-randconfig-r003-20210420 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project ca8eef7e3da8f750d7c7aa004fe426d1d34787ea) 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 powerpc64 cross compiling tool for clang build # apt-get install binutils-powerpc64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=18674dee3cd651279eb3d9ba789fe483ddfe1137 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 18674dee3cd651279eb3d9ba789fe483ddfe1137 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc64 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:75: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] dev_dbg(qspi->dev, "%s len = 0x%x offs = 0x%llx buf = 0x%p\n", __func__, len, offs, buf); ~~ ^~~ %lx include/linux/dev_printk.h:123:39: note: expanded from macro 'dev_dbg' dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/dynamic_debug.h:162:19: note: expanded from macro 'dynamic_dev_dbg' dev, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/dynamic_debug.h:147:56: note: expanded from macro '_dynamic_func_call' __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/dynamic_debug.h:129:15: note: expanded from macro '__dynamic_func_call' func(&id, ##__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%x 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