Re: [PATCH v1 1/1] iio: light: opt4001: Re-use generic struct s32_fract

From: kernel test robot

Date: Sun Oct 25 2026 - 16:42:10 EST


Hi Andy,

kernel test robot noticed the following build errors:

[auto build test ERROR on jic23-iio/togreg]
[also build test ERROR on linus/master v7.3 next-20261023]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/iio-light-opt4001-Re-use-generic-struct-s32_fract/20261023-110802
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20261023090802.1957593-1-andriy.shevchenko%40linux.intel.com
patch subject: [PATCH v1 1/1] iio: light: opt4001: Re-use generic struct s32_fract
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20261026/202610260406.ghXhpqoZ-lkp@xxxxxxxxx/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 186e70f4e6a1521991d2340d3d49b23b1beff11f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261026/202610260406.ghXhpqoZ-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/202610260406.ghXhpqoZ-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/iio/light/opt4001.c:90:2: error: expected expression
90 | ,ratio = { .numerator = 4375, .denominator = 10000000 },
| ^
>> drivers/iio/light/opt4001.c:90:3: error: use of undeclared identifier 'ratio'
90 | ,ratio = { .numerator = 4375, .denominator = 10000000 },
| ^~~~~
drivers/iio/light/opt4001.c:90:11: error: expected expression
90 | ,ratio = { .numerator = 4375, .denominator = 10000000 },
| ^
drivers/iio/light/opt4001.c:95:2: error: expected expression
95 | ,ratio = { .numerator = 3125, .denominator = 10000000 },
| ^
drivers/iio/light/opt4001.c:95:3: error: use of undeclared identifier 'ratio'
95 | ,ratio = { .numerator = 3125, .denominator = 10000000 },
| ^~~~~
drivers/iio/light/opt4001.c:95:11: error: expected expression
95 | ,ratio = { .numerator = 3125, .denominator = 10000000 },
| ^
6 errors generated.


vim +90 drivers/iio/light/opt4001.c

88
89 static const struct opt4001_chip_info opt4001_sot_5x3_info = {
> 90 ,ratio = { .numerator = 4375, .denominator = 10000000 },
91 .name = "opt4001-sot-5x3"
92 };
93

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