drivers/char/ipmi/ipmb_dev_int.c:344:36: warning: 'acpi_ipmb_id' defined but not used

From: kernel test robot
Date: Sun Dec 22 2024 - 10:28:27 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 48f506ad0b683d3e7e794efa60c5785c4fdc86fa
commit: 51bd6f291583684f495ea498984dfc22049d7fd2 Add support for IPMB driver
date: 6 years ago
config: sparc-randconfig-001-20241212 (https://download.01.org/0day-ci/archive/20241222/202412222349.R7qW7Q2t-lkp@xxxxxxxxx/config)
compiler: sparc-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241222/202412222349.R7qW7Q2t-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/202412222349.R7qW7Q2t-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/char/ipmi/ipmb_dev_int.c:344:36: warning: 'acpi_ipmb_id' defined but not used [-Wunused-const-variable=]
344 | static const struct acpi_device_id acpi_ipmb_id[] = {
| ^~~~~~~~~~~~


vim +/acpi_ipmb_id +344 drivers/char/ipmi/ipmb_dev_int.c

343
> 344 static const struct acpi_device_id acpi_ipmb_id[] = {
345 { "IPMB0001", 0 },
346 {},
347 };
348 MODULE_DEVICE_TABLE(acpi, acpi_ipmb_id);
349

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