On Fri, Sep 5, 2025 at 10:19 AM Huisong Li <lihuisong@huawei.com> wrote:
>
> If CONFIG_ACPI_PROCESSOR=n and CONFIG_ACPI_PROCESSOR_IDLE=n, we may
> encounter some compling warnings as the following link said.
> The acpi_processor_register/unregister_idle_driver() would not be
> used when CONFIG_ACPI_PROCESSOR_IDLE is n. So remove these empty
> function definition.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202508300519.tZQHY6HA-lkp@intel.com/
> Fixes: 7a8c994cbb2d ("ACPI: processor: idle: Optimize ACPI idle driver registration")
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> ---
> include/acpi/processor.h | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/include/acpi/processor.h b/include/acpi/processor.h
> index 360b673f05e5..ff864c1cee3a 100644
> --- a/include/acpi/processor.h
> +++ b/include/acpi/processor.h
> @@ -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 */
> --
Applied (with a rewritten changelog) as 6.18 material, thanks!