]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: processor: Remove unused empty stubs of some functions
authorHuisong Li <lihuisong@huawei.com>
Tue, 23 Dec 2025 10:09:10 +0000 (18:09 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 9 Jan 2026 21:38:22 +0000 (22:38 +0100)
commit8ada9e11b3fc5d9e21c3a45c6c136944f7b28a14
tree2552109020c07530f85324447c45b8c2f6091ae4
parent13ebeef6a1b9c4e5c9789f835cc4ec34873f0bb1
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>
Tested-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20251223100914.2407069-3-lihuisong@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/processor.h