lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202512090327.X5PXotX9-lkp@intel.com>
Date: Tue, 9 Dec 2025 03:43:41 +0800
From: kernel test robot <lkp@...el.com>
To: Ahmed Naseef <naseefkm@...il.com>
Cc: oe-kbuild-all@...ts.linux.dev, Ahmed Naseef <naseefkm@...il.com>,
	Miquel Raynal <miquel.raynal@...tlin.com>,
	Richard Weinberger <richard@....at>,
	Vignesh Raghavendra <vigneshr@...com>, linux-kernel@...r.kernel.org,
	linux-mtd@...ts.infradead.org
Subject: Re: [PATCH] mtd: spinand: add support for Dosilicon DS35Q1GA/DS35M1GA

Hi Ahmed,

kernel test robot noticed the following build errors:

[auto build test ERROR on mtd/nand/next]
[also build test ERROR on linus/master next-20251208]
[cannot apply to v6.18]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ahmed-Naseef/mtd-spinand-add-support-for-Dosilicon-DS35Q1GA-DS35M1GA/20251207-232019
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next
patch link:    https://lore.kernel.org/r/20251207150923.86328-1-naseefkm%40gmail.com
patch subject: [PATCH] mtd: spinand: add support for Dosilicon DS35Q1GA/DS35M1GA
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20251209/202512090327.X5PXotX9-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251209/202512090327.X5PXotX9-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512090327.X5PXotX9-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from drivers/mtd/nand/spi/dosilicon.c:8:
   drivers/mtd/nand/spi/dosilicon.c:13:17: error: implicit declaration of function 'SPINAND_PAGE_READ_FROM_CACHE_X4_OP'; did you mean 'SPINAND_PAGE_READ_FROM_CACHE_1S_1D_4D_OP'? [-Werror=implicit-function-declaration]
      13 |                 SPINAND_PAGE_READ_FROM_CACHE_X4_OP(0, 1, NULL, 0),
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
   drivers/mtd/nand/spi/dosilicon.c:14:17: error: implicit declaration of function 'SPINAND_PAGE_READ_FROM_CACHE_X2_OP'; did you mean 'SPINAND_PAGE_READ_FROM_CACHE_1S_2S_2S_OP'? [-Werror=implicit-function-declaration]
      14 |                 SPINAND_PAGE_READ_FROM_CACHE_X2_OP(0, 1, NULL, 0),
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
   drivers/mtd/nand/spi/dosilicon.c:15:17: error: implicit declaration of function 'SPINAND_PAGE_READ_FROM_CACHE_OP'; did you mean 'SPINAND_PAGE_READ_FROM_CACHE_1S_1D_4D_OP'? [-Werror=implicit-function-declaration]
      15 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:24: warning: missing braces around initializer [-Wmissing-braces]
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                        ^
   drivers/mtd/nand/spi/dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:46: error: initializer element is not constant
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   drivers/mtd/nand/spi/dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:46: note: (near initialization for 'read_cache_variants')
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   drivers/mtd/nand/spi/dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:32: warning: missing braces around initializer [-Wmissing-braces]
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                ^
   drivers/mtd/nand/spi/dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: error: initializer element is not constant
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   drivers/mtd/nand/spi/dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: note: (near initialization for 'read_cache_variants')
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   drivers/mtd/nand/spi/dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:388:49: warning: missing braces around initializer [-Wmissing-braces]
     388 |         const struct spinand_op_variants name = {                       \
         |                                                 ^
   drivers/mtd/nand/spi/dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   drivers/mtd/nand/spi/dosilicon.c:19:17: error: implicit declaration of function 'SPINAND_PROG_LOAD_X4'; did you mean 'SPINAND_CMD_PROG_LOAD_X4'? [-Werror=implicit-function-declaration]
      19 |                 SPINAND_PROG_LOAD_X4(true, 0, NULL, 0),
         |                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
   drivers/mtd/nand/spi/dosilicon.c:20:17: error: implicit declaration of function 'SPINAND_PROG_LOAD' [-Werror=implicit-function-declaration]
      20 |                 SPINAND_PROG_LOAD(true, 0, NULL, 0));
         |                 ^~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:24: warning: missing braces around initializer [-Wmissing-braces]
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                        ^
   drivers/mtd/nand/spi/dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:46: error: initializer element is not constant
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   drivers/mtd/nand/spi/dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:46: note: (near initialization for 'write_cache_variants')
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   drivers/mtd/nand/spi/dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:32: warning: missing braces around initializer [-Wmissing-braces]
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                ^
   drivers/mtd/nand/spi/dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: error: initializer element is not constant
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   drivers/mtd/nand/spi/dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: note: (near initialization for 'write_cache_variants')
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   drivers/mtd/nand/spi/dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:388:49: warning: missing braces around initializer [-Wmissing-braces]
     388 |         const struct spinand_op_variants name = {                       \
         |                                                 ^
   drivers/mtd/nand/spi/dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:24: warning: missing braces around initializer [-Wmissing-braces]
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                        ^
   drivers/mtd/nand/spi/dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:46: error: initializer element is not constant
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   drivers/mtd/nand/spi/dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:46: note: (near initialization for 'update_cache_variants')
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   drivers/mtd/nand/spi/dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:32: warning: missing braces around initializer [-Wmissing-braces]
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                ^
   drivers/mtd/nand/spi/dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: error: initializer element is not constant
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   drivers/mtd/nand/spi/dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: note: (near initialization for 'update_cache_variants')
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   drivers/mtd/nand/spi/dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:388:49: warning: missing braces around initializer [-Wmissing-braces]
     388 |         const struct spinand_op_variants name = {                       \
         |                                                 ^
   drivers/mtd/nand/spi/dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from dosilicon.c:8:
   dosilicon.c:13:17: error: implicit declaration of function 'SPINAND_PAGE_READ_FROM_CACHE_X4_OP'; did you mean 'SPINAND_PAGE_READ_FROM_CACHE_1S_1D_4D_OP'? [-Werror=implicit-function-declaration]
      13 |                 SPINAND_PAGE_READ_FROM_CACHE_X4_OP(0, 1, NULL, 0),
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
   dosilicon.c:14:17: error: implicit declaration of function 'SPINAND_PAGE_READ_FROM_CACHE_X2_OP'; did you mean 'SPINAND_PAGE_READ_FROM_CACHE_1S_2S_2S_OP'? [-Werror=implicit-function-declaration]
      14 |                 SPINAND_PAGE_READ_FROM_CACHE_X2_OP(0, 1, NULL, 0),
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
   dosilicon.c:15:17: error: implicit declaration of function 'SPINAND_PAGE_READ_FROM_CACHE_OP'; did you mean 'SPINAND_PAGE_READ_FROM_CACHE_1S_1D_4D_OP'? [-Werror=implicit-function-declaration]
      15 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:24: warning: missing braces around initializer [-Wmissing-braces]
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                        ^
   dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:46: error: initializer element is not constant
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:46: note: (near initialization for 'read_cache_variants')
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:32: warning: missing braces around initializer [-Wmissing-braces]
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                ^
   dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: error: initializer element is not constant
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: note: (near initialization for 'read_cache_variants')
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:388:49: warning: missing braces around initializer [-Wmissing-braces]
     388 |         const struct spinand_op_variants name = {                       \
         |                                                 ^
   dosilicon.c:12:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      12 | static SPINAND_OP_VARIANTS(read_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   dosilicon.c:19:17: error: implicit declaration of function 'SPINAND_PROG_LOAD_X4'; did you mean 'SPINAND_CMD_PROG_LOAD_X4'? [-Werror=implicit-function-declaration]
      19 |                 SPINAND_PROG_LOAD_X4(true, 0, NULL, 0),
         |                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
   dosilicon.c:20:17: error: implicit declaration of function 'SPINAND_PROG_LOAD' [-Werror=implicit-function-declaration]
      20 |                 SPINAND_PROG_LOAD(true, 0, NULL, 0));
         |                 ^~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                                ^~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:24: warning: missing braces around initializer [-Wmissing-braces]
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                        ^
   dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:46: error: initializer element is not constant
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:46: note: (near initialization for 'write_cache_variants')
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:32: warning: missing braces around initializer [-Wmissing-braces]
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                ^
   dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: error: initializer element is not constant
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: note: (near initialization for 'write_cache_variants')
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:388:49: warning: missing braces around initializer [-Wmissing-braces]
     388 |         const struct spinand_op_variants name = {                       \
         |                                                 ^
   dosilicon.c:18:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      18 | static SPINAND_OP_VARIANTS(write_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:24: warning: missing braces around initializer [-Wmissing-braces]
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                        ^
   dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
>> include/linux/mtd/spinand.h:389:46: error: initializer element is not constant
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:389:46: note: (near initialization for 'update_cache_variants')
     389 |                 .ops = (struct spi_mem_op[]) { __VA_ARGS__ },           \
         |                                              ^
   dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:32: warning: missing braces around initializer [-Wmissing-braces]
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                ^
   dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: error: initializer element is not constant
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:390:53: note: (near initialization for 'update_cache_variants')
     390 |                 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /  \
         |                                                     ^
   dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   include/linux/mtd/spinand.h:388:49: warning: missing braces around initializer [-Wmissing-braces]
     388 |         const struct spinand_op_variants name = {                       \
         |                                                 ^
   dosilicon.c:22:8: note: in expansion of macro 'SPINAND_OP_VARIANTS'
      22 | static SPINAND_OP_VARIANTS(update_cache_variants,
         |        ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


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

7529df4652482c Peter Pan 2018-06-22  386  
7529df4652482c Peter Pan 2018-06-22  387  #define SPINAND_OP_VARIANTS(name, ...)					\
7529df4652482c Peter Pan 2018-06-22  388  	const struct spinand_op_variants name = {			\
7529df4652482c Peter Pan 2018-06-22 @389  		.ops = (struct spi_mem_op[]) { __VA_ARGS__ },		\
7529df4652482c Peter Pan 2018-06-22  390  		.nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) /	\
7529df4652482c Peter Pan 2018-06-22  391  			sizeof(struct spi_mem_op),			\
7529df4652482c Peter Pan 2018-06-22  392  	}
7529df4652482c Peter Pan 2018-06-22  393  

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ