From: kernel test robot <lkp@intel.com>
To: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org,
Michal Simek <monstr@monstr.eu>
Subject: [xilinx-xlnx:xlnx_rebase_v5.4 19/1767] drivers/mtd/nand/raw/arasan_nand.c:365:16: warning: right shift count >= width of type
Date: Tue, 5 Oct 2021 22:07:06 +0800 [thread overview]
Message-ID: <202110052200.03kif3EC-lkp@intel.com> (raw)
[-- 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
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [xilinx-xlnx:xlnx_rebase_v5.4 19/1767] drivers/mtd/nand/raw/arasan_nand.c:365:16: warning: right shift count >= width of type
Date: Tue, 05 Oct 2021 22:07:06 +0800 [thread overview]
Message-ID: <202110052200.03kif3EC-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2571 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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30124 bytes --]
next reply other threads:[~2021-10-05 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-05 14:07 kernel test robot [this message]
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
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=202110052200.03kif3EC-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=monstr@monstr.eu \
--cc=naga.sureshkumar.relli@xilinx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.