Hi Jorge, kernel test robot noticed the following build warnings: [auto build test WARNING on aac287ec80d71a7ab7e44c936a434625417c3e30] url: https://github.com/intel-lab-lkp/linux/commits/Jorge-Marques/iio-code-mark-iio_dev-as-const-in-iio_buffer_enabled/20250306-220719 base: aac287ec80d71a7ab7e44c936a434625417c3e30 patch link: https://lore.kernel.org/r/20250306-iio-driver-ad4052-v1-4-2badad30116c%40analog.com patch subject: [PATCH 4/4] iio: adc: add support for ad4052 config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250307/202503071916.STHJTSlp-lkp@xxxxxxxxx/config) compiler: sh4-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250307/202503071916.STHJTSlp-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/202503071916.STHJTSlp-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): >> drivers/iio/adc/ad4052.c:239:18: warning: 'ad4052_sample_rate_avail' defined but not used [-Wunused-const-variable=] 239 | static const int ad4052_sample_rate_avail[] = { | ^~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/iio/adc/ad4052.c:214:41: warning: 'ad4052_regmap_wr_table' defined but not used [-Wunused-const-variable=] 214 | static const struct regmap_access_table ad4052_regmap_wr_table = { | ^~~~~~~~~~~~~~~~~~~~~~ >> drivers/iio/adc/ad4052.c:201:41: warning: 'ad4052_regmap_rd_table' defined but not used [-Wunused-const-variable=] 201 | static const struct regmap_access_table ad4052_regmap_rd_table = { | ^~~~~~~~~~~~~~~~~~~~~~ vim +/ad4052_sample_rate_avail +239 drivers/iio/adc/ad4052.c 200 > 201 static const struct regmap_access_table ad4052_regmap_rd_table = { 202 .yes_ranges = ad4052_regmap_rd_ranges, 203 .n_yes_ranges = ARRAY_SIZE(ad4052_regmap_rd_ranges), 204 }; 205 206 static const struct regmap_range ad4052_regmap_wr_ranges[] = { 207 regmap_reg_range(AD4052_REG_INTERFACE_CONFIG_A, AD4052_REG_DEVICE_CONFIG), 208 regmap_reg_range(AD4052_REG_SCRATCH_PAD, AD4052_REG_SCRATCH_PAD), 209 regmap_reg_range(AD4052_REG_STREAM_MODE, AD4052_REG_INTERFACE_STATUS), 210 regmap_reg_range(AD4052_REG_MODE_SET, AD4052_REG_MON_VAL), 211 regmap_reg_range(AD4052_REG_FUSE_CRC, AD4052_REG_DEVICE_STATUS), 212 }; 213 > 214 static const struct regmap_access_table ad4052_regmap_wr_table = { 215 .yes_ranges = ad4052_regmap_wr_ranges, 216 .n_yes_ranges = ARRAY_SIZE(ad4052_regmap_wr_ranges), 217 }; 218 219 static const struct iio_event_spec ad4052_events[] = { 220 { 221 .type = IIO_EV_TYPE_THRESH, 222 .dir = IIO_EV_DIR_EITHER, 223 .mask_shared_by_all = BIT(IIO_EV_INFO_ENABLE) 224 }, 225 { 226 .type = IIO_EV_TYPE_THRESH, 227 .dir = IIO_EV_DIR_RISING, 228 .mask_shared_by_all = BIT(IIO_EV_INFO_VALUE) | 229 BIT(IIO_EV_INFO_HYSTERESIS) 230 }, 231 { 232 .type = IIO_EV_TYPE_THRESH, 233 .dir = IIO_EV_DIR_FALLING, 234 .mask_shared_by_all = BIT(IIO_EV_INFO_VALUE) | 235 BIT(IIO_EV_INFO_HYSTERESIS) 236 } 237 }; 238 > 239 static const int ad4052_sample_rate_avail[] = { 240 2000000, 1000000, 300000, 100000, 33300, 241 10000, 3000, 500, 333, 250, 200, 242 166, 140, 125, 111 243 }; 244 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki