* Re: [PATCH v1 2/2] spi: add support for sophgo spi-nor controller
[not found] <20240427075426.662671-3-qiujingbao.dlmu@gmail.com>
@ 2024-04-30 10:31 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-30 10:31 UTC (permalink / raw
To: Jingbao Qiu, broonie, robh, krzysztof.kozlowski+dt, conor+dt,
unicorn_wang, inochiama, paul.walmsley, palmer, aou
Cc: oe-kbuild-all, dlan, linux-spi, devicetree, linux-kernel,
linux-riscv, Jingbao Qiu
Hi Jingbao,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 4cece764965020c22cff7665b18a012006359095]
url: https://github.com/intel-lab-lkp/linux/commits/Jingbao-Qiu/dt-bindings-mtd-add-sophgo-spi-nor-controller/20240427-155533
base: 4cece764965020c22cff7665b18a012006359095
patch link: https://lore.kernel.org/r/20240427075426.662671-3-qiujingbao.dlmu%40gmail.com
patch subject: [PATCH v1 2/2] spi: add support for sophgo spi-nor controller
config: powerpc-randconfig-r111-20240430 (https://download.01.org/0day-ci/archive/20240430/202404301801.fGGuCYoT-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20240430/202404301801.fGGuCYoT-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/202404301801.fGGuCYoT-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/spi/spi-sophgo-cv1800.c:259:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr @@ got restricted __be32 [usertype] @@
drivers/spi/spi-sophgo-cv1800.c:259:22: sparse: expected unsigned int [usertype] addr
drivers/spi/spi-sophgo-cv1800.c:259:22: sparse: got restricted __be32 [usertype]
vim +259 drivers/spi/spi-sophgo-cv1800.c
244
245 static int sophgo_nor_port_trans(struct sophgo_nor *spif,
246 const struct spi_mem_op *op)
247 {
248 const uint8_t *dout = NULL;
249 uint8_t *din = NULL;
250 uint32_t addr;
251
252 sophgo_nor_config_port(spif, 1);
253
254 if (op->cmd.nbytes)
255 sophgo_nor_xfer(spif, (uint8_t *)&op->cmd.opcode, NULL,
256 op->cmd.nbytes, op->cmd.buswidth);
257
258 if (op->addr.nbytes) {
> 259 addr = cpu_to_be32(op->addr.val);
260 sophgo_nor_xfer(spif, (uint8_t *)&addr, NULL, op->addr.nbytes,
261 op->addr.buswidth);
262 }
263
264 if (op->data.dir == SPI_MEM_DATA_IN)
265 din = op->data.buf.in;
266 else if (op->data.dir == SPI_MEM_DATA_OUT)
267 dout = op->data.buf.out;
268
269 sophgo_nor_xfer(spif, dout, din, op->data.nbytes, op->data.buswidth);
270
271 sophgo_nor_config_port(spif, 0);
272
273 return 0;
274 }
275
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-30 10:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240427075426.662671-3-qiujingbao.dlmu@gmail.com>
2024-04-30 10:31 ` [PATCH v1 2/2] spi: add support for sophgo spi-nor controller 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).