Skip to content

Commit 04626c3

Browse files
committed
char:ipmi: Fix a not-used variable on a non-ACPI system
Put some code into APCI ifdefs to avoid a not-used variable warning. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202412222349.R7qW7Q2t-lkp@intel.com/ Signed-off-by: Corey Minyard <corey@minyard.net>
1 parent 7868b3a commit 04626c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/char/ipmi/ipmb_dev_int.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,13 @@ static const struct i2c_device_id ipmb_id[] = {
358358
};
359359
MODULE_DEVICE_TABLE(i2c, ipmb_id);
360360

361+
#ifdef CONFIG_ACPI
361362
static const struct acpi_device_id acpi_ipmb_id[] = {
362363
{ "IPMB0001", 0 },
363364
{},
364365
};
365366
MODULE_DEVICE_TABLE(acpi, acpi_ipmb_id);
367+
#endif
366368

367369
static struct i2c_driver ipmb_driver = {
368370
.driver = {

0 commit comments

Comments
 (0)