tree:
git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git
lr/nand/cafe-nand-exec-op-debug
head: ca82ff45fe30d46aad41d713abb8f8d381a8264f
commit: efacd4bb2a456361df1453d096550ef1dd0d6fc4 [65/104] mtd: rawnand: atmel: Convert the
driver to exec_op()
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout efacd4bb2a456361df1453d096550ef1dd0d6fc4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/mtd/nand/raw/atmel/nand-controller.c: In function
'atmel_smc_nand_exec_op':
> drivers/mtd/nand/raw/atmel/nand-controller.c:787:32: warning:
variable 'nc' set but not used [-Wunused-but-set-variable]
787 | struct
atmel_nand_controller *nc;
| ^~
vim +/nc +787 drivers/mtd/nand/raw/atmel/nand-controller.c
782
783 static int atmel_smc_nand_exec_op(struct atmel_nand *nand,
784 const struct nand_operation *op,
785 bool check_only)
786 {
787 struct atmel_nand_controller *nc;
788 unsigned int i;
789 int ret = 0;
790
791 if (check_only)
792 return 0;
793
794 nc = to_nand_controller(nand->base.controller);
795 atmel_nand_select_target(nand, op->cs);
796 gpiod_set_value(nand->activecs->csgpio, 0);
797 for (i = 0; i < op->ninstrs; i++) {
798 ret = atmel_smc_nand_exec_instr(nand, &op->instrs[i]);
799 if (ret)
800 break;
801 }
802 gpiod_set_value(nand->activecs->csgpio, 1);
803
804 return ret;
805 }
806
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org