tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: ce53feb85da0d335885fe5d5aa0a0deaca233b54
commit: 93069b13df55a43b3fea04cdbe3903b1c357f4ae [50/55] CHROMIUM: iio: cros_ec_light: Add
FIFO support for RGB sensor
config:
arm64-chromiumos-qualcomm-customedconfig-chrome-os:chromeos-4.19:ce53feb85da0d335885fe5d5aa0a0deaca233b54
(attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 93069b13df55a43b3fea04cdbe3903b1c357f4ae
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/iio/light/cros_ec_light_prox.c: In function
'cros_ec_light_push_data_rgb':
> drivers/iio/light/cros_ec_light_prox.c:346:16: error: variable
'scan_mask' set but not used [-Werror=unused-but-set-variable]
346 |
unsigned long scan_mask;
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +/scan_mask +346 drivers/iio/light/cros_ec_light_prox.c
338
339 static int cros_ec_light_push_data_rgb(
340 struct iio_dev *indio_dev,
341 s16 *data,
342 s64 timestamp)
343 {
344 struct cros_ec_sensors_core_state *st = iio_priv(indio_dev);
345 s16 *out;
346 unsigned long scan_mask;
347 unsigned int i;
348
349 if (!st || !indio_dev->active_scan_mask)
350 return 0;
351
352 scan_mask = *(indio_dev->active_scan_mask);
353 /*
354 * Send all data needed.
355 */
356 out = (s16 *)st->samples;
357 for_each_set_bit(i,
358 indio_dev->active_scan_mask,
359 indio_dev->masklength) {
360 if (i > 0)
361 *out = data[i - 1];
362 out++;
363 }
364 iio_push_to_buffers_with_timestamp(indio_dev, st->samples, timestamp);
365 return 0;
366 }
367
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org