All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: include/linux/mtd/spinand.h:70:6: error: implicit declaration of function '__VA_OPT__'; did you mean '__SSP__'?
Date: Tue, 18 Mar 2025 13:36:14 +0800	[thread overview]
Message-ID: <202503181330.YcDXGy7F-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fc444ada131001812c5d10b380837238c9cf7c8c
commit: 7ce0d16d5802bfde4209e52ee8ad644ca1eab423 mtd: spinand: Add an optional frequency to read from cache macros
date:   9 weeks ago
config: xtensa-randconfig-002-20250318 (https://download.01.org/0day-ci/archive/20250318/202503181330.YcDXGy7F-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250318/202503181330.YcDXGy7F-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/202503181330.YcDXGy7F-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/mtd/nand/spi/xtx.c:10:0:
>> include/linux/mtd/spinand.h:70:6: error: implicit declaration of function '__VA_OPT__'; did you mean '__SSP__'? [-Werror=implicit-function-declaration]
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
         ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   drivers/mtd/nand/spi/xtx.c:31:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/spi/spi-mem.h:113:2: error: expected expression before '.' token
     .max_freq = __freq
     ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:70:17: note: in expansion of macro 'SPI_MEM_OP_MAX_FREQ'
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
                    ^~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/xtx.c:31:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/mtd/nand/spi/alliancememory.c:8:0:
>> include/linux/mtd/spinand.h:70:6: error: implicit declaration of function '__VA_OPT__'; did you mean '__SSP__'? [-Werror=implicit-function-declaration]
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
         ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   drivers/mtd/nand/spi/alliancememory.c:25:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/spi/spi-mem.h:113:2: error: expected expression before '.' token
     .max_freq = __freq
     ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:70:17: note: in expansion of macro 'SPI_MEM_OP_MAX_FREQ'
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
                    ^~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/alliancememory.c:25:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/mtd/nand/spi/esmt.c:10:0:
>> include/linux/mtd/spinand.h:70:6: error: implicit declaration of function '__VA_OPT__'; did you mean '__SSP__'? [-Werror=implicit-function-declaration]
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
         ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   drivers/mtd/nand/spi/esmt.c:19:7: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
          SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/spi/spi-mem.h:113:2: error: expected expression before '.' token
     .max_freq = __freq
     ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:70:17: note: in expansion of macro 'SPI_MEM_OP_MAX_FREQ'
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
                    ^~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/esmt.c:19:7: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
          SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/mtd/nand/spi/skyhigh.c:11:0:
   include/linux/stddef.h:8:14: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
    #define NULL ((void *)0)
                 ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:69:6: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
         SPI_MEM_OP_DATA_IN(len, buf, 1),   \
         ^~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:47: note: in expansion of macro 'NULL'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
                                                  ^~~~
   include/linux/stddef.h:8:14: note: (near initialization for '(anonymous)[4].data.nbytes')
    #define NULL ((void *)0)
                 ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:69:6: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
         SPI_MEM_OP_DATA_IN(len, buf, 1),   \
         ^~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:47: note: in expansion of macro 'NULL'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
                                                  ^~~~
   drivers/mtd/nand/spi/skyhigh.c:24:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
                                               ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:69:6: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
         SPI_MEM_OP_DATA_IN(len, buf, 1),   \
         ^~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:44: note: (near initialization for '(anonymous)[4].data.buf.in')
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
                                               ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:69:6: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
         SPI_MEM_OP_DATA_IN(len, buf, 1),   \
         ^~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/mtd/spinand.h:70:6: error: implicit declaration of function '__VA_OPT__'; did you mean '__SSP__'? [-Werror=implicit-function-declaration]
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
         ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/spi/spi-mem.h:113:2: error: expected expression before '.' token
     .max_freq = __freq
     ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:70:17: note: in expansion of macro 'SPI_MEM_OP_MAX_FREQ'
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
                    ^~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stddef.h:8:14: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
    #define NULL ((void *)0)
                 ^
   include/linux/mtd/spinand.h:308:41: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
                                            ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:69:6: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
         SPI_MEM_OP_DATA_IN(len, buf, 1),   \
         ^~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:47: note: in expansion of macro 'NULL'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
                                                  ^~~~
   include/linux/stddef.h:8:14: note: (near initialization for '(anonymous)[4].data.nbytes')
    #define NULL ((void *)0)
                 ^
   include/linux/mtd/spinand.h:308:41: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
                                            ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:69:6: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
         SPI_MEM_OP_DATA_IN(len, buf, 1),   \
         ^~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:47: note: in expansion of macro 'NULL'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
                                                  ^~~~
   drivers/mtd/nand/spi/skyhigh.c:24:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
                                               ^
   include/linux/mtd/spinand.h:308:41: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
                                            ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:69:6: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
         SPI_MEM_OP_DATA_IN(len, buf, 1),   \
         ^~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:44: note: (near initialization for '(anonymous)[4].data.buf.in')
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
                                               ^
   include/linux/mtd/spinand.h:308:41: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
                                            ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:69:6: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
         SPI_MEM_OP_DATA_IN(len, buf, 1),   \
         ^~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/spi/spi-mem.h:113:2: error: expected expression before '.' token
     .max_freq = __freq
     ^
   include/linux/mtd/spinand.h:308:41: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
                                            ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:70:17: note: in expansion of macro 'SPI_MEM_OP_MAX_FREQ'
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
                    ^~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/skyhigh.c:24:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/mtd/nand/spi/foresee.c:10:0:
>> include/linux/mtd/spinand.h:70:6: error: implicit declaration of function '__VA_OPT__'; did you mean '__SSP__'? [-Werror=implicit-function-declaration]
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
         ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   drivers/mtd/nand/spi/foresee.c:18:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/spi/spi-mem.h:113:2: error: expected expression before '.' token
     .max_freq = __freq
     ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:70:17: note: in expansion of macro 'SPI_MEM_OP_MAX_FREQ'
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
                    ^~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/foresee.c:18:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/mtd/nand/spi/winbond.c:12:0:
>> include/linux/mtd/spinand.h:70:6: error: implicit declaration of function '__VA_OPT__'; did you mean '__SSP__'? [-Werror=implicit-function-declaration]
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
         ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   drivers/mtd/nand/spi/winbond.c:26:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/spi/spi-mem.h:113:2: error: expected expression before '.' token
     .max_freq = __freq
     ^
   include/linux/mtd/spinand.h:307:34: note: in definition of macro 'SPINAND_OP_VARIANTS'
      .ops = (struct spi_mem_op[]) { __VA_ARGS__ },  \
                                     ^~~~~~~~~~~
   include/linux/mtd/spinand.h:66:2: note: in expansion of macro 'SPI_MEM_OP'
     SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),    \
     ^~~~~~~~~~
   include/linux/mtd/spinand.h:70:17: note: in expansion of macro 'SPI_MEM_OP_MAX_FREQ'
         __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
                    ^~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/winbond.c:26:3: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
      SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
..


vim +70 include/linux/mtd/spinand.h

    18	
    19	/**
    20	 * Standard SPI NAND flash operations
    21	 */
    22	
    23	#define SPINAND_RESET_OP						\
    24		SPI_MEM_OP(SPI_MEM_OP_CMD(0xff, 1),				\
    25			   SPI_MEM_OP_NO_ADDR,					\
    26			   SPI_MEM_OP_NO_DUMMY,					\
    27			   SPI_MEM_OP_NO_DATA)
    28	
    29	#define SPINAND_WR_EN_DIS_OP(enable)					\
    30		SPI_MEM_OP(SPI_MEM_OP_CMD((enable) ? 0x06 : 0x04, 1),		\
    31			   SPI_MEM_OP_NO_ADDR,					\
    32			   SPI_MEM_OP_NO_DUMMY,					\
    33			   SPI_MEM_OP_NO_DATA)
    34	
    35	#define SPINAND_READID_OP(naddr, ndummy, buf, len)			\
    36		SPI_MEM_OP(SPI_MEM_OP_CMD(0x9f, 1),				\
    37			   SPI_MEM_OP_ADDR(naddr, 0, 1),			\
    38			   SPI_MEM_OP_DUMMY(ndummy, 1),				\
    39			   SPI_MEM_OP_DATA_IN(len, buf, 1))
    40	
    41	#define SPINAND_SET_FEATURE_OP(reg, valptr)				\
    42		SPI_MEM_OP(SPI_MEM_OP_CMD(0x1f, 1),				\
    43			   SPI_MEM_OP_ADDR(1, reg, 1),				\
    44			   SPI_MEM_OP_NO_DUMMY,					\
    45			   SPI_MEM_OP_DATA_OUT(1, valptr, 1))
    46	
    47	#define SPINAND_GET_FEATURE_OP(reg, valptr)				\
    48		SPI_MEM_OP(SPI_MEM_OP_CMD(0x0f, 1),				\
    49			   SPI_MEM_OP_ADDR(1, reg, 1),				\
    50			   SPI_MEM_OP_NO_DUMMY,					\
    51			   SPI_MEM_OP_DATA_IN(1, valptr, 1))
    52	
    53	#define SPINAND_BLK_ERASE_OP(addr)					\
    54		SPI_MEM_OP(SPI_MEM_OP_CMD(0xd8, 1),				\
    55			   SPI_MEM_OP_ADDR(3, addr, 1),				\
    56			   SPI_MEM_OP_NO_DUMMY,					\
    57			   SPI_MEM_OP_NO_DATA)
    58	
    59	#define SPINAND_PAGE_READ_OP(addr)					\
    60		SPI_MEM_OP(SPI_MEM_OP_CMD(0x13, 1),				\
    61			   SPI_MEM_OP_ADDR(3, addr, 1),				\
    62			   SPI_MEM_OP_NO_DUMMY,					\
    63			   SPI_MEM_OP_NO_DATA)
    64	
    65	#define SPINAND_PAGE_READ_FROM_CACHE_OP(addr, ndummy, buf, len, ...) \
    66		SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),				\
    67			   SPI_MEM_OP_ADDR(2, addr, 1),				\
    68			   SPI_MEM_OP_DUMMY(ndummy, 1),				\
    69			   SPI_MEM_OP_DATA_IN(len, buf, 1),			\
  > 70			   __VA_OPT__(SPI_MEM_OP_MAX_FREQ(__VA_ARGS__)))
    71	

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

                 reply	other threads:[~2025-03-18  5:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202503181330.YcDXGy7F-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.