* [xilinx-xlnx:xlnx_rebase_v5.4 19/1767] drivers/mtd/nand/raw/arasan_nand.c:365:16: warning: right shift count >= width of type
@ 2021-10-05 14:07 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-05 14:07 UTC (permalink / raw)
To: Naga Sureshkumar Relli; +Cc: kbuild-all, linux-arm-kernel, Michal Simek
[-- Attachment #1: Type: text/plain, Size: 2504 bytes --]
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: 1ad9b65f0dbe2b3ecc22a498e75a48d8ee39bbda
commit: 1dea215e98f470c4fabe230cb5dcb648e3301fb9 [19/1767] mtd: rawnand: Add support for ARASAN NAND controller
config: i386-randconfig-a005-20211004 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/1dea215e98f470c4fabe230cb5dcb648e3301fb9
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.4
git checkout 1dea215e98f470c4fabe230cb5dcb648e3301fb9
# save the attached .config to linux build tree
make W=1 ARCH=i386
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/mtd/nand/raw/arasan_nand.c: In function 'anfc_rw_dma_op':
>> drivers/mtd/nand/raw/arasan_nand.c:365:16: warning: right shift count >= width of type [-Wshift-count-overflow]
365 | writel((paddr >> 32), nfc->base + DMA_ADDR1_OFST);
| ^~
vim +365 drivers/mtd/nand/raw/arasan_nand.c
337
338 static void anfc_rw_dma_op(struct mtd_info *mtd, u8 *buf, int len,
339 bool do_read, u32 prog, int pktcount, int pktsize)
340 {
341 dma_addr_t paddr;
342 struct nand_chip *chip = mtd_to_nand(mtd);
343 struct anfc_nand_controller *nfc = to_anfc(chip->controller);
344 struct anfc_nand_chip *achip = to_anfc_nand(chip);
345 u32 eccintr = 0, dir;
346
347 if (pktsize == 0)
348 pktsize = len;
349
350 anfc_setpktszcnt(nfc, pktsize, pktcount);
351
352 if (!achip->strength)
353 eccintr = MBIT_ERROR;
354
355 if (do_read)
356 dir = DMA_FROM_DEVICE;
357 else
358 dir = DMA_TO_DEVICE;
359 paddr = dma_map_single(nfc->dev, buf, len, dir);
360 if (dma_mapping_error(nfc->dev, paddr)) {
361 dev_err(nfc->dev, "Read buffer mapping error");
362 return;
363 }
364 writel(paddr, nfc->base + DMA_ADDR0_OFST);
> 365 writel((paddr >> 32), nfc->base + DMA_ADDR1_OFST);
366 anfc_enable_intrs(nfc, (XFER_COMPLETE | eccintr));
367 writel(prog, nfc->base + PROG_OFST);
368 anfc_wait_for_event(nfc);
369 dma_unmap_single(nfc->dev, paddr, len, dir);
370 }
371
---
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: 30124 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-05 14:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-05 14:07 [xilinx-xlnx:xlnx_rebase_v5.4 19/1767] drivers/mtd/nand/raw/arasan_nand.c:365:16: warning: right shift count >= width of type 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 NNTP newsgroup(s).