mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
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 <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ [1]
Fixes: 7a8c994cbb ("ACPI: processor: idle: Optimize ACPI idle driver registration")
Signed-off-by: Huisong Li <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Changelog rewrite ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
1 parent
e4c628e91c
commit
9d68320b2b
1 file changed
-6
@@ -445,12 +445,6 @@ static inline int acpi_processor_hotplug(struct acpi_processor *pr)
|
||||
{
|
||||
return -ENODEV;
|
||||
}
|
||||
static inline void acpi_processor_register_idle_driver(void)
|
||||
{
|
||||
}
|
||||
static inline void acpi_processor_unregister_idle_driver(void)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_ACPI_PROCESSOR_IDLE */
|
||||
|
||||
/* in processor_thermal.c */
|
||||
|
||||
Reference in new issue
Block a user