From: kernel test robot <lkp@intel.com>
To: Jingbao Qiu <qiujingbao.dlmu@gmail.com>,
broonie@kernel.org, robh@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
unicorn_wang@outlook.com, inochiama@outlook.com,
paul.walmsley@sifive.com, palmer@dabbelt.com,
aou@eecs.berkeley.edu
Cc: oe-kbuild-all@lists.linux.dev, dlan@gentoo.org,
linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
Jingbao Qiu <qiujingbao.dlmu@gmail.com>
Subject: Re: [PATCH v1 2/2] spi: add support for sophgo spi-nor controller
Date: Tue, 30 Apr 2024 18:31:40 +0800 [thread overview]
Message-ID: <202404301801.fGGuCYoT-lkp@intel.com> (raw)
In-Reply-To: <20240427075426.662671-3-qiujingbao.dlmu@gmail.com>
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
prev parent reply other threads:[~2024-04-30 10:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-27 7:54 [PATCH v1 0/2] riscv: sophgo: add spi nor support for cv1800 series Jingbao Qiu
2024-04-27 7:54 ` [PATCH v1 1/2] dt-bindings: mtd: add sophgo spi-nor-controller Jingbao Qiu
2024-04-29 6:18 ` Krzysztof Kozlowski
2024-04-29 6:41 ` Jingbao Qiu
2024-04-29 6:43 ` Krzysztof Kozlowski
2024-04-29 9:25 ` Jingbao Qiu
2024-04-30 11:13 ` Michael Walle
2024-04-30 12:56 ` Jingbao Qiu
2024-04-27 7:54 ` [PATCH v1 2/2] spi: add support for sophgo spi-nor controller Jingbao Qiu
2024-04-30 10:31 ` kernel test robot [this message]
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=202404301801.fGGuCYoT-lkp@intel.com \
--to=lkp@intel.com \
--cc=aou@eecs.berkeley.edu \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=inochiama@outlook.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-spi@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=qiujingbao.dlmu@gmail.com \
--cc=robh@kernel.org \
--cc=unicorn_wang@outlook.com \
/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;
as well as URLs for NNTP newsgroup(s).