[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0joTcDG86wroXG=a5jdCiKLGBdQ21XVNcNp==SBx77L8w@mail.gmail.com>
Date: Fri, 5 Sep 2025 21:59:48 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Huisong Li <lihuisong@...wei.com>
Cc: rafael@...nel.org, lenb@...nel.org, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org, linuxarm@...wei.com,
jonathan.cameron@...wei.com, zhanjie9@...ilicon.com, zhenglifeng1@...wei.com,
yubowen8@...wei.com
Subject: Re: [PATCH v2 1/3] ACPI: processor: Fix function defined but not used warning
On Fri, Sep 5, 2025 at 10:19 AM Huisong Li <lihuisong@...wei.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@...el.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@...wei.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!
Powered by blists - more mailing lists