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 - 06:33:09 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: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20260120/202601201908.GaxFkE6t-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601201908.GaxFkE6t-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/202601201908.GaxFkE6t-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/iio/light/tcs3400.c:82:18: warning: unused variable 'tcs3400_gains' [-Wunused-const-variable]
82 | static const int tcs3400_gains[] = {1, 4, 16, 64};
| ^~~~~~~~~~~~~
1 warning generated.


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