[xilinx-xlnx:xlnx_rebase_v5.4 842/1768] drivers/spi/spi-mem.c:18:6: sparse: sparse: symbol 'update_stripe' was not declared. Should it be static?
kernel test robot
lkp at intel.com
Fri Dec 17 08:19:03 PST 2021
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: abafefebd1f1e040eef74e4ab571ea08bf745641
commit: 3780469dd372e934445de2fbb5e8cf6e712b9b99 [842/1768] spi: Add Zynq QSPI controller driver
config: i386-randconfig-s002-20211216 (https://download.01.org/0day-ci/archive/20211218/202112180027.pfNQ2O7x-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/Xilinx/linux-xlnx/commit/3780469dd372e934445de2fbb5e8cf6e712b9b99
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.4
git checkout 3780469dd372e934445de2fbb5e8cf6e712b9b99
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpio/ drivers/spi/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/spi/spi-mem.c: note: in included file (through include/linux/mtd/spi-nor.h):
>> include/linux/mtd/cfi.h:62:2: sparse: sparse: No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
>> drivers/spi/spi-mem.c:18:6: sparse: sparse: symbol 'update_stripe' was not declared. Should it be static?
vim +/update_stripe +18 drivers/spi/spi-mem.c
17
> 18 bool update_stripe(const u8 opcode)
19 {
20 if (opcode == SPINOR_OP_BE_4K ||
21 opcode == SPINOR_OP_BE_32K ||
22 opcode == SPINOR_OP_CHIP_ERASE ||
23 opcode == SPINOR_OP_SE ||
24 opcode == SPINOR_OP_BE_32K_4B ||
25 opcode == SPINOR_OP_SE_4B ||
26 opcode == SPINOR_OP_BE_4K_4B ||
27 opcode == SPINOR_OP_WRSR ||
28 opcode == SPINOR_OP_WREAR ||
29 opcode == SPINOR_OP_BRWR ||
30 opcode == SPINOR_OP_WRSR2)
31 return false;
32
33 return true;
34 }
35
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
More information about the linux-arm-kernel
mailing list