[soc:board-remove-7.3 223/295] include/linux/spi/spi-mem.h:218:9: error: expected expression before '{' token

kernel test robot lkp at intel.com
Fri Sep 11 01:22:04 PDT 2026


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git board-remove-7.3
head:   cf983087c51a9c74c3d4d3b353eb811ae5030823
commit: 775a75095f86749e6b3f0b57e7fe40d03110453d [223/295] mtd: spi-nor: remove controller_ops support
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20260911/202609111051.jJL6JLa1-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260911/202609111051.jJL6JLa1-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609111051.jJL6JLa1-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/mtd/spi-nor.h:11,
                    from drivers/mtd/spi-nor/winbond.c:7:
   drivers/mtd/spi-nor/winbond.c: In function 'winbond_nor_select_die':
>> include/linux/spi/spi-mem.h:218:9: error: expected expression before '{' token
     218 |         {                                                       \
         |         ^
   drivers/mtd/spi-nor/winbond.c:22:9: note: in expansion of macro 'SPI_MEM_OP'
      22 |         SPI_MEM_OP(SPI_MEM_OP_CMD(WINBOND_NOR_OP_SELDIE, 0),            \
         |         ^~~~~~~~~~
   drivers/mtd/spi-nor/winbond.c:115:14: note: in expansion of macro 'WINBOND_NOR_SELDIE_OP'
     115 |         op = WINBOND_NOR_SELDIE_OP(nor->bouncebuf);
         |              ^~~~~~~~~~~~~~~~~~~~~
   drivers/mtd/spi-nor/winbond.c: In function 'winbond_nor_write_ear':
>> include/linux/spi/spi-mem.h:218:9: error: expected expression before '{' token
     218 |         {                                                       \
         |         ^
   drivers/mtd/spi-nor/winbond.c:16:9: note: in expansion of macro 'SPI_MEM_OP'
      16 |         SPI_MEM_OP(SPI_MEM_OP_CMD(WINBOND_NOR_OP_WREAR, 0),             \
         |         ^~~~~~~~~~
   drivers/mtd/spi-nor/winbond.c:409:14: note: in expansion of macro 'WINBOND_NOR_WREAR_OP'
     409 |         op = WINBOND_NOR_WREAR_OP(nor->bouncebuf);
         |              ^~~~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/mtd/spi-nor.h:11,
                    from winbond.c:7:
   winbond.c: In function 'winbond_nor_select_die':
>> include/linux/spi/spi-mem.h:218:9: error: expected expression before '{' token
     218 |         {                                                       \
         |         ^
   winbond.c:22:9: note: in expansion of macro 'SPI_MEM_OP'
      22 |         SPI_MEM_OP(SPI_MEM_OP_CMD(WINBOND_NOR_OP_SELDIE, 0),            \
         |         ^~~~~~~~~~
   winbond.c:115:14: note: in expansion of macro 'WINBOND_NOR_SELDIE_OP'
     115 |         op = WINBOND_NOR_SELDIE_OP(nor->bouncebuf);
         |              ^~~~~~~~~~~~~~~~~~~~~
   winbond.c: In function 'winbond_nor_write_ear':
>> include/linux/spi/spi-mem.h:218:9: error: expected expression before '{' token
     218 |         {                                                       \
         |         ^
   winbond.c:16:9: note: in expansion of macro 'SPI_MEM_OP'
      16 |         SPI_MEM_OP(SPI_MEM_OP_CMD(WINBOND_NOR_OP_WREAR, 0),             \
         |         ^~~~~~~~~~
   winbond.c:409:14: note: in expansion of macro 'WINBOND_NOR_WREAR_OP'
     409 |         op = WINBOND_NOR_WREAR_OP(nor->bouncebuf);
         |              ^~~~~~~~~~~~~~~~~~~~


vim +218 include/linux/spi/spi-mem.h

c36ff266dc82f4a Boris Brezillon 2018-04-26  216  
0fefeade90e74bc Miquel Raynal   2024-12-24  217  #define SPI_MEM_OP(__cmd, __addr, __dummy, __data, ...)		\
c36ff266dc82f4a Boris Brezillon 2018-04-26 @218  	{							\
c36ff266dc82f4a Boris Brezillon 2018-04-26  219  		.cmd = __cmd,					\
c36ff266dc82f4a Boris Brezillon 2018-04-26  220  		.addr = __addr,					\
c36ff266dc82f4a Boris Brezillon 2018-04-26  221  		.dummy = __dummy,				\
c36ff266dc82f4a Boris Brezillon 2018-04-26  222  		.data = __data,					\
0fefeade90e74bc Miquel Raynal   2024-12-24  223  		__VA_ARGS__					\
c36ff266dc82f4a Boris Brezillon 2018-04-26  224  	}
c36ff266dc82f4a Boris Brezillon 2018-04-26  225  

:::::: The code at line 218 was first introduced by commit
:::::: c36ff266dc82f4ae797a6f3513c6ffa344f7f1c7 spi: Extend the core to ease integration of SPI memory controllers

:::::: TO: Boris Brezillon <boris.brezillon at bootlin.com>
:::::: CC: Mark Brown <broonie at kernel.org>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the linux-arm-kernel mailing list