Re: [PATCH v6 7/9] iio: imu: inv_icm45600: add SPI driver for inv_icm45600 driver
From: kernel test robot
Date: Wed Sep 24 2025 - 20:36:01 EST
Hi Remi,
kernel test robot noticed the following build errors:
[auto build test ERROR on 411e8b72c181e4f49352c12ced0fd8426eb683aa]
url: https://github.com/intel-lab-lkp/linux/commits/Remi-Buisson-via-B4-Relay/dt-bindings-iio-imu-Add-inv_icm45600/20250924-172614
base: 411e8b72c181e4f49352c12ced0fd8426eb683aa
patch link: https://lore.kernel.org/r/20250924-add_newport_driver-v6-7-76687b9d8a6e%40tdk.com
patch subject: [PATCH v6 7/9] iio: imu: inv_icm45600: add SPI driver for inv_icm45600 driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250925/202509250829.OYI9IbAs-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250925/202509250829.OYI9IbAs-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/202509250829.OYI9IbAs-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
>> drivers/iio/imu/inv_icm45600/inv_icm45600_spi.c:24:5: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
24 | FIELD_PREP(INV_ICM45600_DRIVE_CONFIG0_SPI_MASK,
| ^
1 error generated.
vim +/FIELD_PREP +24 drivers/iio/imu/inv_icm45600/inv_icm45600_spi.c
18
19 static int inv_icm45600_spi_bus_setup(struct inv_icm45600_state *st)
20 {
21 /* Set slew rates for SPI. */
22 return regmap_update_bits(st->map, INV_ICM45600_REG_DRIVE_CONFIG0,
23 INV_ICM45600_DRIVE_CONFIG0_SPI_MASK,
> 24 FIELD_PREP(INV_ICM45600_DRIVE_CONFIG0_SPI_MASK,
25 INV_ICM45600_SPI_SLEW_RATE_5NS));
26 }
27
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki