Skip to content

Commit 9d68320

Browse files
LiHuiSong1rafaeljw
authored andcommitted
ACPI: processor: idle: Fix function defined but not used warning
If CONFIG_ACPI_PROCESSOR_IDLE=n, acpi_processor_register_idle_driver() and acpi_processor_unregister_idle_driver() are never used and the empty stubs of them are not needed. Moreover, they cause the compiler to complain [1], so remove them. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202508300519.tZQHY6HA-lkp@intel.com/ [1] Fixes: 7a8c994 ("ACPI: processor: idle: Optimize ACPI idle driver registration") Signed-off-by: Huisong Li <lihuisong@huawei.com> Link: https://patch.msgid.link/20250905081900.663869-2-lihuisong@huawei.com [ rjw: Changelog rewrite ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent e4c628e commit 9d68320

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

include/acpi/processor.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,6 @@ static inline int acpi_processor_hotplug(struct acpi_processor *pr)
445445
{
446446
return -ENODEV;
447447
}
448-
static inline void acpi_processor_register_idle_driver(void)
449-
{
450-
}
451-
static inline void acpi_processor_unregister_idle_driver(void)
452-
{
453-
}
454448
#endif /* CONFIG_ACPI_PROCESSOR_IDLE */
455449

456450
/* in processor_thermal.c */

0 commit comments

Comments
 (0)