Re: [PATCH 2/3] iio: light: add AMS TCS3400 RGB and RGB-IR color sensor driver
From: kernel test robot
Date: Tue Jan 20 2026 - 05:06:57 EST
Hi Petr,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 46fe65a2c28ecf5df1a7475aba1f08ccf4c0ac1b]
url: https://github.com/intel-lab-lkp/linux/commits/Petr-Hodina-via-B4-Relay/doc-add-Device-Tree-binding-for-AMS-TCS3400-light-sensor/20260120-012240
base: 46fe65a2c28ecf5df1a7475aba1f08ccf4c0ac1b
patch link: https://lore.kernel.org/r/20260119-tsc3400-v1-2-82a65c5417aa%40protonmail.com
patch subject: [PATCH 2/3] iio: light: add AMS TCS3400 RGB and RGB-IR color sensor driver
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260120/202601201721.SsgdtZmN-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601201721.SsgdtZmN-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/202601201721.SsgdtZmN-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> drivers/iio/light/tcs3400.c:82:18: warning: 'tcs3400_gains' defined but not used [-Wunused-const-variable=]
82 | static const int tcs3400_gains[] = {1, 4, 16, 64};
| ^~~~~~~~~~~~~
vim +/tcs3400_gains +82 drivers/iio/light/tcs3400.c
81
> 82 static const int tcs3400_gains[] = {1, 4, 16, 64};
83
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki