tree:
https://github.com/miquelraynal/linux-0day.git perso/nand-next/flags
head: c5212e24213cba25bcc57e3bbe0781f3e9d83611
commit: 5b2d31e2ed6c6ddd94a27c4d4694a1a2046c7fc2 [94/102] fixup! migrate nand_uses_dma to
nand controller options
config: h8300-randconfig-r003-20200512 (attached as .config)
compiler: h8300-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 5b2d31e2ed6c6ddd94a27c4d4694a1a2046c7fc2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/mtd/nand/raw/brcmnand/brcmnand.c: In function 'brcmnand_attach_chip':
> drivers/mtd/nand/raw/brcmnand/brcmnand.c:2580:18: error: invalid
type argument of '->' (have 'struct nand_controller')
2580 |
ctrl->controller->flags |= NAND_CONTROLLER_USES_DMA;
| ^~
vim +2580 drivers/mtd/nand/raw/brcmnand/brcmnand.c
2566
2567 static int brcmnand_attach_chip(struct nand_chip *chip)
2568 {
2569 struct mtd_info *mtd = nand_to_mtd(chip);
2570 struct brcmnand_host *host = nand_get_controller_data(chip);
2571 struct brcmnand_controller *ctrl = host->ctrl;
2572 int ret;
2573
2574 chip->options |= NAND_NO_SUBPAGE_WRITE;
2575 /*
2576 * Avoid (for instance) kmap()'d buffers from JFFS2, which we can't DMA
2577 * to/from, and have nand_base pass us a bounce buffer instead, as
2578 * needed.
2579 */
2580 ctrl->controller->flags |= NAND_CONTROLLER_USES_DMA;
2581
2582 if (chip->bbt_options & NAND_BBT_USE_FLASH)
2583 chip->bbt_options |= NAND_BBT_NO_OOB;
2584
2585 if (brcmnand_setup_dev(host))
2586 return -ENXIO;
2587
2588 chip->ecc.size = host->hwcfg.sector_size_1k ? 1024 : 512;
2589
2590 /* only use our internal HW threshold */
2591 mtd->bitflip_threshold = 1;
2592
2593 ret = brcmstb_choose_ecc_layout(host);
2594
2595 return ret;
2596 }
2597
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org