Skip to content

Commit 5020d05

Browse files
LiHuiSong1rafaeljw
authored andcommitted
ACPI: processor: Remove unused empty stubs of some functions
Empty stubs are defined in processor.h for some functions provided by the ACPI processor idle driver, but those functions are only used in the main ACPI processor driver which requires the ACPI processor idle driver to be present (selecting CONFIG_ACPI_PROCESSOR causes CONFIG_ACPI_PROCESSOR_IDLE to be selected too automatically). This means that the empty stubs in question are not really necessary and if both CONFIG_ACPI_PROCESSOR and CONFIG_ACPI_PROCESSOR_IDLE are unset, the compiler complains that they are defined, but not used. Drop them to get rid of the compiler warning. Signed-off-by: Huisong Li <lihuisong@huawei.com> Link: https://patch.msgid.link/20250911112408.1668431-2-lihuisong@huawei.com [ rjw: Subject and changelog rewrite ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 2167bb9 commit 5020d05

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

include/acpi/processor.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -425,26 +425,6 @@ int acpi_processor_power_state_has_changed(struct acpi_processor *pr);
425425
int acpi_processor_hotplug(struct acpi_processor *pr);
426426
void acpi_processor_register_idle_driver(void);
427427
void acpi_processor_unregister_idle_driver(void);
428-
#else
429-
static inline int acpi_processor_power_init(struct acpi_processor *pr)
430-
{
431-
return -ENODEV;
432-
}
433-
434-
static inline int acpi_processor_power_exit(struct acpi_processor *pr)
435-
{
436-
return -ENODEV;
437-
}
438-
439-
static inline int acpi_processor_power_state_has_changed(struct acpi_processor *pr)
440-
{
441-
return -ENODEV;
442-
}
443-
444-
static inline int acpi_processor_hotplug(struct acpi_processor *pr)
445-
{
446-
return -ENODEV;
447-
}
448428
#endif /* CONFIG_ACPI_PROCESSOR_IDLE */
449429

450430
/* in processor_thermal.c */

0 commit comments

Comments
 (0)