Re: [PATCH 3/5] iio: imu: icm20948: add support for gyroscope
From: kernel test robot
Date: Sun Aug 31 2025 - 19:10:32 EST
Hi Bharadwaj,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 8742b2d8935f476449ef37e263bc4da3295c7b58]
url: https://github.com/intel-lab-lkp/linux/commits/Bharadwaj-Raju/dt-bindings-iio-imu-Add-ICM-20948/20250831-024726
base: 8742b2d8935f476449ef37e263bc4da3295c7b58
patch link: https://lore.kernel.org/r/20250831-icm20948-v1-3-1fe560a38de4%40gmail.com
patch subject: [PATCH 3/5] iio: imu: icm20948: add support for gyroscope
config: arm-randconfig-r123-20250901 (https://download.01.org/0day-ci/archive/20250901/202509010654.5oiN6YTZ-lkp@xxxxxxxxx/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project ac23f7465eedd0dd565ffb201f573e7a69695fa3)
reproduce: (https://download.01.org/0day-ci/archive/20250901/202509010654.5oiN6YTZ-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/202509010654.5oiN6YTZ-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> drivers/iio/imu/inv_icm20948/inv_icm20948_gyro.c:21:12: sparse: sparse: Initializer entry defined twice
drivers/iio/imu/inv_icm20948/inv_icm20948_gyro.c:24:12: sparse: also defined here
vim +21 drivers/iio/imu/inv_icm20948/inv_icm20948_gyro.c
11
12 /* IIO int + nano format */
13 static const int inv_icm20948_gyro_scale[] = {
14 /* 250 dps == 0.000133158 rad/s per LSB */
15 [2 * INV_ICM20948_GYRO_FS_250] = 0,
16 [2 * INV_ICM20948_GYRO_FS_250 + 1] = 133158,
17 /* 500 dps == 0.000266316 rad/s per LSB */
18 [2 * INV_ICM20948_GYRO_FS_500] = 0,
19 [2 * INV_ICM20948_GYRO_FS_500 + 1] = 266316,
20 /* 1000 dps == 0.000532632 rad/s per LSB */
> 21 [2 * INV_ICM20948_GYRO_FS_1000] = 0,
22 [2 * INV_ICM20948_GYRO_FS_1000 + 1] = 532632,
23 /* 2000 dps == 0.001065264 rad/s per LSB */
24 [2 * INV_ICM20948_GYRO_FS_1000] = 0,
25 [2 * INV_ICM20948_GYRO_FS_1000 + 1] = 1065264,
26 };
27
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki