Re: [PATCH 4/7] w1: ds2433: introduce a configuration structure

From: kernel test robot
Date: Sat Nov 18 2023 - 01:33:55 EST


Hi,

kernel test robot noticed the following build errors:

[auto build test ERROR on 7475e51b87969e01a6812eac713a1c8310372e8a]

url: https://github.com/intel-lab-lkp/linux/commits/marc-ferland-gmail-com/w1-ds2433-add-support-for-registering-multiple-families/20231118-034145
base: 7475e51b87969e01a6812eac713a1c8310372e8a
patch link: https://lore.kernel.org/r/20231117192909.98944-4-marc.ferland%40sonatest.com
patch subject: [PATCH 4/7] w1: ds2433: introduce a configuration structure
config: hexagon-randconfig-001-20231118 (https://download.01.org/0day-ci/archive/20231118/202311181436.TyinUJiw-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231118/202311181436.TyinUJiw-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311181436.TyinUJiw-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/w1/slaves/w1_ds2433.c:269:21: error: initializer element is not a compile-time constant
269 | .size = config_f23.eeprom_size,
| ~~~~~~~~~~~^~~~~~~~~~~
1 error generated.


vim +269 drivers/w1/slaves/w1_ds2433.c

264
265 static struct bin_attribute bin_attr_f23_eeprom = {
266 .attr = { .name = "eeprom", .mode = 0644 },
267 .read = eeprom_read,
268 .write = eeprom_write,
> 269 .size = config_f23.eeprom_size,
270 };
271

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