Skip to contentSkip to conversation

drivers/mtd/nand/raw/meson_nand.c:244:59: error: initializer element is not a compile-time constant

PATCH kernel test robot 3 participants 3 messages Jul 28, 2023

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next
head:   6680d8b67921fc732a59792dec6d3f94c031451c
commit: 0e1db39336d8be4ddeb9f0d99720056f3ff41310 [31/32] mtd: rawnand: meson: support for 512B ECC step size
config: x86_64-buildonly-randconfig-r003-20230727 (https://download.01.org/0day-ci/archive/20230728/[email protected]/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230728/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> drivers/mtd/nand/raw/meson_nand.c:244:59: error: initializer element is not a compile-time constant
   static const struct nand_ecc_step_info axg_stepinfo[] = { axg_stepinfo_1024, axg_stepinfo_512 };
                                                             ^~~~~~~~~~~~~~~~~

1 error generated.

vim +244 drivers/mtd/nand/raw/meson_nand.c

243

 > 244	static const struct nand_ecc_step_info axg_stepinfo[] = { axg_stepinfo_1024, axg_stepinfo_512 };

245

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw

Hi Arseniy,

[email protected] wrote on Fri, 28 Jul 2023 10:57:07 +0800:

Quoted 15 lines
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next
head:   6680d8b67921fc732a59792dec6d3f94c031451c
commit: 0e1db39336d8be4ddeb9f0d99720056f3ff41310 [31/32] mtd: rawnand: meson: support for 512B ECC step size
config: x86_64-buildonly-randconfig-r003-20230727 (https://download.01.org/0day-ci/archive/20230728/[email protected]/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230728/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

drivers/mtd/nand/raw/meson_nand.c:244:59: error: initializer element is not a compile-time constant

Quoted 9 lines
   static const struct nand_ecc_step_info axg_stepinfo[] = { axg_stepinfo_1024, axg_stepinfo_512 };
                                                             ^~~~~~~~~~~~~~~~~

1 error generated.

vim +244 drivers/mtd/nand/raw/meson_nand.c

   243	
Quoted 1 line

244 static const struct nand_ecc_step_info axg_stepinfo[] = { axg_stepinfo_1024, axg_stepinfo_512 };

Could you have a look?

Thanks,
Miquèl

#2 lore raw
Quoted 24 lines · Miquel Raynal

Hi Arseniy,

[email protected] wrote on Fri, 28 Jul 2023 10:57:07 +0800:

Quoted 20 lines
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next
head:   6680d8b67921fc732a59792dec6d3f94c031451c
commit: 0e1db39336d8be4ddeb9f0d99720056f3ff41310 [31/32] mtd: rawnand: meson: support for 512B ECC step size
config: x86_64-buildonly-randconfig-r003-20230727 (https://download.01.org/0day-ci/archive/20230728/[email protected]/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230728/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

drivers/mtd/nand/raw/meson_nand.c:244:59: error: initializer element is not a compile-time constant

   static const struct nand_ecc_step_info axg_stepinfo[] = { axg_stepinfo_1024, axg_stepinfo_512 };
                                                             ^~~~~~~~~~~~~~~~~

1 error generated.

Quoted 6 lines
Quoted 4 lines

vim +244 drivers/mtd/nand/raw/meson_nand.c

   243	
Quoted 1 line

244 static const struct nand_ecc_step_info axg_stepinfo[] = { axg_stepinfo_1024, axg_stepinfo_512 };

Could you have a look?

Hello Miquel,

Sure, I'll send fix today/tommorow!

Thanks, Arseniy

Quoted 3 lines

Thanks,
Miquèl