Re: [PATCH v2 7/7] iio: pressure bmp280: Move bmp085 interrupt to new configuration

kernel test robot
2024-07-26T10:41:51Z

Hi Vasileios,

kernel test robot noticed the following build errors:

[auto build test ERROR on 47ee461357f9da5a35d5f43527b7804a6a5744cb]

url: https://github.com/intel-lab-lkp/linux/commits/Vasileios-Amoiridis/iio-pressure-bmp280-Use-bulk-read-for-humidity-calibration-data/20240726-071712
base: 47ee461357f9da5a35d5f43527b7804a6a5744cb
patch link: https://lore.kernel.org/r/20240725231039.614536-8-vassilisamir%40gmail.com
patch subject: [PATCH v2 7/7] iio: pressure bmp280: Move bmp085 interrupt to new configuration
config: i386-buildonly-randconfig-005-20240726 (https://download.01.org/0day-ci/archive/20240726/202407261832.zSKjAoTj-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240726/202407261832.zSKjAoTj-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/202407261832.zSKjAoTj-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/iio/pressure/bmp280-core.c:3146:12: error: initializer element is not constant
.id_reg = bmp180_chip_info.id_reg,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3146:12: note: (near initialization for 'bmp085_chip_info.id_reg')
drivers/iio/pressure/bmp280-core.c:3147:13: error: initializer element is not constant
.chip_id = bmp180_chip_info.chip_id,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3147:13: note: (near initialization for 'bmp085_chip_info.chip_id')
drivers/iio/pressure/bmp280-core.c:3148:17: error: initializer element is not constant
.num_chip_id = bmp180_chip_info.num_chip_id,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3148:17: note: (near initialization for 'bmp085_chip_info.num_chip_id')
drivers/iio/pressure/bmp280-core.c:3149:19: error: initializer element is not constant
.regmap_config = bmp180_chip_info.regmap_config,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3149:19: note: (near initialization for 'bmp085_chip_info.regmap_config')
drivers/iio/pressure/bmp280-core.c:3150:19: error: initializer element is not constant
.start_up_time = bmp180_chip_info.start_up_time,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3150:19: note: (near initialization for 'bmp085_chip_info.start_up_time')
drivers/iio/pressure/bmp280-core.c:3151:14: error: initializer element is not constant
.channels = bmp180_chip_info.channels,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3151:14: note: (near initialization for 'bmp085_chip_info.channels')
drivers/iio/pressure/bmp280-core.c:3152:18: error: initializer element is not constant
.num_channels = bmp180_chip_info.num_channels,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3152:18: note: (near initialization for 'bmp085_chip_info.num_channels')
drivers/iio/pressure/bmp280-core.c:3153:22: error: initializer element is not constant
.avail_scan_masks = bmp180_chip_info.avail_scan_masks,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3153:22: note: (near initialization for 'bmp085_chip_info.avail_scan_masks')
drivers/iio/pressure/bmp280-core.c:3155:29: error: initializer element is not constant
.oversampling_temp_avail = bmp180_chip_info.oversampling_temp_avail,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3155:29: note: (near initialization for 'bmp085_chip_info.oversampling_temp_avail')
drivers/iio/pressure/bmp280-core.c:3157:3: error: initializer element is not constant
bmp180_chip_info.num_oversampling_temp_avail,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3157:3: note: (near initialization for 'bmp085_chip_info.num_oversampling_temp_avail')
drivers/iio/pressure/bmp280-core.c:3158:31: error: initializer element is not constant
.oversampling_temp_default = bmp180_chip_info.oversampling_temp_default,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3158:31: note: (near initialization for 'bmp085_chip_info.oversampling_temp_default')
drivers/iio/pressure/bmp280-core.c:3160:30: error: initializer element is not constant
.oversampling_press_avail = bmp180_chip_info.oversampling_press_avail,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3160:30: note: (near initialization for 'bmp085_chip_info.oversampling_press_avail')
drivers/iio/pressure/bmp280-core.c:3162:3: error: initializer element is not constant
bmp180_chip_info.num_oversampling_press_avail,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3162:3: note: (near initialization for 'bmp085_chip_info.num_oversampling_press_avail')
drivers/iio/pressure/bmp280-core.c:3164:3: error: initializer element is not constant
bmp180_chip_info.oversampling_press_default,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3164:3: note: (near initialization for 'bmp085_chip_info.oversampling_press_default')
drivers/iio/pressure/bmp280-core.c:3166:17: error: initializer element is not constant
.temp_coeffs = bmp180_chip_info.temp_coeffs,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3166:17: note: (near initialization for 'bmp085_chip_info.temp_coeffs')
drivers/iio/pressure/bmp280-core.c:3167:22: error: initializer element is not constant
.temp_coeffs_type = bmp180_chip_info.temp_coeffs_type,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3167:22: note: (near initialization for 'bmp085_chip_info.temp_coeffs_type')
drivers/iio/pressure/bmp280-core.c:3168:18: error: initializer element is not constant
.press_coeffs = bmp180_chip_info.press_coeffs,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3168:18: note: (near initialization for 'bmp085_chip_info.press_coeffs')
drivers/iio/pressure/bmp280-core.c:3169:23: error: initializer element is not constant
.press_coeffs_type = bmp180_chip_info.press_coeffs_type,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3169:23: note: (near initialization for 'bmp085_chip_info.press_coeffs_type')
drivers/iio/pressure/bmp280-core.c:3171:17: error: initializer element is not constant
.chip_config = bmp180_chip_info.chip_config,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3171:17: note: (near initialization for 'bmp085_chip_info.chip_config')
drivers/iio/pressure/bmp280-core.c:3172:15: error: initializer element is not constant
.read_temp = bmp180_chip_info.read_temp,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3172:15: note: (near initialization for 'bmp085_chip_info.read_temp')
drivers/iio/pressure/bmp280-core.c:3173:16: error: initializer element is not constant
.read_press = bmp180_chip_info.read_press,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3173:16: note: (near initialization for 'bmp085_chip_info.read_press')
drivers/iio/pressure/bmp280-core.c:3174:16: error: initializer element is not constant
.read_calib = bmp180_chip_info.read_calib,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3174:16: note: (near initialization for 'bmp085_chip_info.read_calib')
drivers/iio/pressure/bmp280-core.c:3175:14: error: initializer element is not constant
.set_mode = bmp180_chip_info.set_mode,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3175:14: note: (near initialization for 'bmp085_chip_info.set_mode')
drivers/iio/pressure/bmp280-core.c:3176:15: error: initializer element is not constant
.wait_conv = bmp180_chip_info.wait_conv,
^~~~~~~~~~~~~~~~
drivers/iio/pressure/bmp280-core.c:3176:15: note: (near initialization for 'bmp085_chip_info.wait_conv')

vim +3146 drivers/iio/pressure/bmp280-core.c

3144
3145 const struct bmp280_chip_info bmp085_chip_info = {
> 3146 .id_reg = bmp180_chip_info.id_reg,
3147 .chip_id = bmp180_chip_info.chip_id,
3148 .num_chip_id = bmp180_chip_info.num_chip_id,
3149 .regmap_config = bmp180_chip_info.regmap_config,
3150 .start_up_time = bmp180_chip_info.start_up_time,
3151 .channels = bmp180_chip_info.channels,
3152 .num_channels = bmp180_chip_info.num_channels,
3153 .avail_scan_masks = bmp180_chip_info.avail_scan_masks,
3154
3155 .oversampling_temp_avail = bmp180_chip_info.oversampling_temp_avail,
3156 .num_oversampling_temp_avail =
3157 bmp180_chip_info.num_oversampling_temp_avail,
3158 .oversampling_temp_default = bmp180_chip_info.oversampling_temp_default,
3159
3160 .oversampling_press_avail = bmp180_chip_info.oversampling_press_avail,
3161 .num_oversampling_press_avail =
3162 bmp180_chip_info.num_oversampling_press_avail,
3163 .oversampling_press_default =
3164 bmp180_chip_info.oversampling_press_default,
3165
3166 .temp_coeffs = bmp180_chip_info.temp_coeffs,
3167 .temp_coeffs_type = bmp180_chip_info.temp_coeffs_type,
3168 .press_coeffs = bmp180_chip_info.press_coeffs,
3169 .press_coeffs_type = bmp180_chip_info.press_coeffs_type,
3170
3171 .chip_config = bmp180_chip_info.chip_config,
3172 .read_temp = bmp180_chip_info.read_temp,
3173 .read_press = bmp180_chip_info.read_press,
3174 .read_calib = bmp180_chip_info.read_calib,
3175 .set_mode = bmp180_chip_info.set_mode,
3176 .wait_conv = bmp180_chip_info.wait_conv,
3177
3178 .trigger_probe = bmp085_trigger_probe,
3179 .trigger_handler = bmp180_trigger_handler,
3180 };
3181 EXPORT_SYMBOL_NS(bmp085_chip_info, IIO_BMP280);
3182

--
0-DAY CI Kernel Test Service