Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [soc:board-remove-7.3 223/295] include/linux/spi/spi-mem.h:218:9: error: expected expression before '{' token
@ 2026-09-11  8:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-11  8:22 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: oe-kbuild-all, linux-arm-kernel, arm

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@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@bootlin.com>
:::::: CC: Mark Brown <broonie@kernel.org>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11  8:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-11  8:22 [soc:board-remove-7.3 223/295] include/linux/spi/spi-mem.h:218:9: error: expected expression before '{' token kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox