* [monstr-microblaze:for-miquel-v5.6 5/12] drivers/mtd/nand/raw/arasan_nand.c:365:2: note: in expansion of macro 'writel'
@ 2020-04-10 15:19 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-10 15:19 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3533 bytes --]
tree: git://git.monstr.eu/linux-2.6-microblaze for-miquel-v5.6
head: d07e8ed65eab21863dddeeaf04b94721e65a3457
commit: e234c78a9823c4744812a972bde26ba9c5f32d1a [5/12] mtd: rawnand: Add support for ARASAN NAND controller
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout e234c78a9823c4744812a972bde26ba9c5f32d1a
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from drivers/mtd/nand/raw/arasan_nand.c:12:
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);
| ^~
arch/sh/include/asm/io.h:32:77: note: in definition of macro '__raw_writel'
32 | #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = (v))
| ^
>> arch/sh/include/asm/io.h:47:62: note: in expansion of macro 'ioswabl'
47 | #define writel_relaxed(v,c) ((void)__raw_writel((__force u32)ioswabl(v),c))
| ^~~~~~~
>> arch/sh/include/asm/io.h:57:32: note: in expansion of macro 'writel_relaxed'
57 | #define writel(v,a) ({ wmb(); writel_relaxed((v),(a)); })
| ^~~~~~~~~~~~~~
>> drivers/mtd/nand/raw/arasan_nand.c:365:2: note: in expansion of macro 'writel'
365 | writel((paddr >> 32), nfc->base + DMA_ADDR1_OFST);
| ^~~~~~
vim +/writel +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: 54598 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-10 15:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-10 15:19 [monstr-microblaze:for-miquel-v5.6 5/12] drivers/mtd/nand/raw/arasan_nand.c:365:2: note: in expansion of macro 'writel' kbuild test robot
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.