drivers/iio/imu/fxos8700_spi.c:34:36: warning: 'fxos8700_acpi_match' defined but not used

From: kernel test robot
Date: Thu Nov 23 2023 - 02:17:37 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9b6de136b5f0158c60844f85286a593cb70fb364
commit: 84e5ddd5c46ea3bf0cad670da32028994cad5936 iio: imu: Add support for the FXOS8700 IMU
date: 4 years, 1 month ago
config: x86_64-buildonly-randconfig-001-20231012 (https://download.01.org/0day-ci/archive/20231123/202311231427.vEQAuxvI-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231123/202311231427.vEQAuxvI-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/202311231427.vEQAuxvI-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/iio/imu/fxos8700_spi.c:34:36: warning: 'fxos8700_acpi_match' defined but not used [-Wunused-const-variable=]
34 | static const struct acpi_device_id fxos8700_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~


vim +/fxos8700_acpi_match +34 drivers/iio/imu/fxos8700_spi.c

33
> 34 static const struct acpi_device_id fxos8700_acpi_match[] = {
35 {"FXOS8700", 0},
36 { }
37 };
38 MODULE_DEVICE_TABLE(acpi, fxos8700_acpi_match);
39

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