Re: [PATCH v4 3/3] iio: adc: add support for PAC1711

From: kernel test robot

Date: Thu Oct 08 2026 - 12:51:33 EST


Hi Ariana,

kernel test robot noticed the following build warnings:

[auto build test WARNING on cee9395acd8043be0644b25c34bfa86623f2b935]

url: https://github.com/intel-lab-lkp/linux/commits/Ariana-Lazar/iio-core-add-IIO_CHARGE-channel-type/20261007-174153
base: cee9395acd8043be0644b25c34bfa86623f2b935
patch link: https://lore.kernel.org/r/20261007-pac1711-v4-3-6ef34d7a7947%40microchip.com
patch subject: [PATCH v4 3/3] iio: adc: add support for PAC1711
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20261009/202610090029.8WKWgYLF-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261009/202610090029.8WKWgYLF-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/202610090029.8WKWgYLF-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/iio/adc/pac1711.c:134:51: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073667551616' to '-42000000' [-Woverflow]
134 | [PAC1711_FULL_RANGE_BIPOLAR] = { -PAC1711_VBUS_FSR_UV, PAC1711_VBUS_FSR_UV },
| ^
drivers/iio/adc/pac1711.c:135:51: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073688551616' to '-21000000' [-Woverflow]
135 | [PAC1711_HALF_RANGE_BIPOLAR] = { -PAC1711_VBUS_FSR_HALF_UV,
| ^
drivers/iio/adc/pac1711.c:140:51: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073700551616' to '-9000000' [-Woverflow]
140 | [PAC1711_FULL_RANGE_BIPOLAR] = { -PAC1721_VBUS_FSR_UV, PAC1721_VBUS_FSR_UV },
| ^
drivers/iio/adc/pac1711.c:141:51: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073705051616' to '-4500000' [-Woverflow]
141 | [PAC1711_HALF_RANGE_BIPOLAR] = { -PAC1721_VBUS_FSR_HALF_UV,
| ^
drivers/iio/adc/pac1711.c:148:42: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073709451616' to '-100000' [-Woverflow]
148 | [PAC1711_FULL_RANGE_BIPOLAR] = { -PAC1711_VSENSE_FSR_UV, PAC1711_VSENSE_FSR_UV },
| ^
drivers/iio/adc/pac1711.c:149:42: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073709501616' to '-50000' [-Woverflow]
149 | [PAC1711_HALF_RANGE_BIPOLAR] = { -PAC1711_VSENSE_FSR_HALF_UV, PAC1711_VSENSE_FSR_HALF_UV },
| ^


vim +134 drivers/iio/adc/pac1711.c

130
131 static const int pac1711_vbus_range_tbl[2][3][2] = {
132 [PAC1711_VOLTAGE_RANGE_IDX] = {
133 [PAC1711_FULL_RANGE_UNIPOLAR] = { 0, PAC1711_VBUS_FSR_UV },
> 134 [PAC1711_FULL_RANGE_BIPOLAR] = { -PAC1711_VBUS_FSR_UV, PAC1711_VBUS_FSR_UV },
135 [PAC1711_HALF_RANGE_BIPOLAR] = { -PAC1711_VBUS_FSR_HALF_UV,
136 PAC1711_VBUS_FSR_HALF_UV },
137 },
138 [PAC1721_VOLTAGE_RANGE_IDX] = {
139 [PAC1711_FULL_RANGE_UNIPOLAR] = { 0, PAC1721_VBUS_FSR_UV },
140 [PAC1711_FULL_RANGE_BIPOLAR] = { -PAC1721_VBUS_FSR_UV, PAC1721_VBUS_FSR_UV },
141 [PAC1711_HALF_RANGE_BIPOLAR] = { -PAC1721_VBUS_FSR_HALF_UV,
142 PAC1721_VBUS_FSR_HALF_UV },
143 },
144 };
145

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