[xlnx:xlnx_rebase_v5.10 724/1745] drivers/spi/spi-mem.c:19:17: error: 'SPINOR_OP_BE_4K' undeclared

kernel test robot lkp at intel.com
Thu Jun 3 10:51:02 PDT 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head:   cd1a972ed275ace731d851a8c88f575456262e75
commit: 5d37ab2cf69a5d4367f49fca798d78e4be66a43b [724/1745] spi: Update ZynqMP and Versal QSPI controller driver
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-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
        # https://github.com/Xilinx/linux-xlnx/commit/5d37ab2cf69a5d4367f49fca798d78e4be66a43b
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.10
        git checkout 5d37ab2cf69a5d4367f49fca798d78e4be66a43b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

Note: the xlnx/xlnx_rebase_v5.10 HEAD cd1a972ed275ace731d851a8c88f575456262e75 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/spi/spi-mem.c: In function 'update_stripe':
>> drivers/spi/spi-mem.c:19:17: error: 'SPINOR_OP_BE_4K' undeclared (first use in this function)
      19 |  if (opcode ==  SPINOR_OP_BE_4K ||
         |                 ^~~~~~~~~~~~~~~
   drivers/spi/spi-mem.c:19:17: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/spi/spi-mem.c:20:17: error: 'SPINOR_OP_BE_32K' undeclared (first use in this function)
      20 |      opcode ==  SPINOR_OP_BE_32K ||
         |                 ^~~~~~~~~~~~~~~~
>> drivers/spi/spi-mem.c:21:17: error: 'SPINOR_OP_CHIP_ERASE' undeclared (first use in this function)
      21 |      opcode ==  SPINOR_OP_CHIP_ERASE ||
         |                 ^~~~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-mem.c:22:17: error: 'SPINOR_OP_SE' undeclared (first use in this function)
      22 |      opcode ==  SPINOR_OP_SE ||
         |                 ^~~~~~~~~~~~
>> drivers/spi/spi-mem.c:23:17: error: 'SPINOR_OP_BE_32K_4B' undeclared (first use in this function)
      23 |      opcode ==  SPINOR_OP_BE_32K_4B ||
         |                 ^~~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-mem.c:24:17: error: 'SPINOR_OP_SE_4B' undeclared (first use in this function)
      24 |      opcode ==  SPINOR_OP_SE_4B ||
         |                 ^~~~~~~~~~~~~~~
>> drivers/spi/spi-mem.c:25:16: error: 'SPINOR_OP_BE_4K_4B' undeclared (first use in this function)
      25 |      opcode == SPINOR_OP_BE_4K_4B ||
         |                ^~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-mem.c:26:17: error: 'SPINOR_OP_WRSR' undeclared (first use in this function)
      26 |      opcode ==  SPINOR_OP_WRSR ||
         |                 ^~~~~~~~~~~~~~
>> drivers/spi/spi-mem.c:27:17: error: 'SPINOR_OP_WREAR' undeclared (first use in this function)
      27 |      opcode ==  SPINOR_OP_WREAR ||
         |                 ^~~~~~~~~~~~~~~
>> drivers/spi/spi-mem.c:28:17: error: 'SPINOR_OP_BRWR' undeclared (first use in this function)
      28 |      opcode ==  SPINOR_OP_BRWR ||
         |                 ^~~~~~~~~~~~~~
>> drivers/spi/spi-mem.c:29:17: error: 'SPINOR_OP_WRSR2' undeclared (first use in this function)
      29 |      opcode ==  SPINOR_OP_WRSR2)
         |                 ^~~~~~~~~~~~~~~
   drivers/spi/spi-mem.c: In function 'spi_mem_exec_op':
>> drivers/spi/spi-mem.c:389:17: error: 'struct spi_transfer' has no member named 'stripe'
     389 |   xfers[xferpos].stripe = update_stripe(op->cmd.opcode);
         |                 ^


vim +/SPINOR_OP_BE_4K +19 drivers/spi/spi-mem.c

    16	
    17	bool update_stripe(const u8 opcode)
    18	{
  > 19		if (opcode ==  SPINOR_OP_BE_4K ||
  > 20		    opcode ==  SPINOR_OP_BE_32K ||
  > 21		    opcode ==  SPINOR_OP_CHIP_ERASE ||
  > 22		    opcode ==  SPINOR_OP_SE ||
  > 23		    opcode ==  SPINOR_OP_BE_32K_4B ||
  > 24		    opcode ==  SPINOR_OP_SE_4B ||
  > 25		    opcode == SPINOR_OP_BE_4K_4B ||
  > 26		    opcode ==  SPINOR_OP_WRSR ||
  > 27		    opcode ==  SPINOR_OP_WREAR ||
  > 28		    opcode ==  SPINOR_OP_BRWR ||
  > 29		    opcode ==  SPINOR_OP_WRSR2)
    30			return false;
    31	
    32		return true;
    33	}
    34	EXPORT_SYMBOL(update_stripe);
    35	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 53837 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210604/913336f0/attachment-0001.gz>


More information about the linux-arm-kernel mailing list