[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0ivddzCoYFd4TauH3G83KxCWQK1NZSvn25oWt_iy0LOfQ@mail.gmail.com>
Date: Mon, 13 Feb 2023 19:40:51 +0100
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Saurabh Sengar <ssengar@...ux.microsoft.com>
Cc: robh+dt@...nel.org, krzysztof.kozlowski+dt@...aro.org,
kys@...rosoft.com, haiyangz@...rosoft.com, wei.liu@...nel.org,
decui@...rosoft.com, daniel.lezcano@...aro.org, tglx@...utronix.de,
virtualization@...ts.linux-foundation.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hyperv@...r.kernel.org, mikelley@...rosoft.com,
dphadke@...ux.microsoft.com, lenb@...nel.org, rafael@...nel.org,
linux-acpi@...r.kernel.org
Subject: Re: [PATCH v6 2/5] ACPI: bus: Add stub acpi_sleep_state_supported()
in non-ACPI cases
On Fri, Feb 10, 2023 at 10:34 AM Saurabh Sengar
<ssengar@...ux.microsoft.com> wrote:
>
> acpi_sleep_state_supported() is defined only when CONFIG_ACPI=y. The
> function is in acpi_bus.h, and acpi_bus.h can only be used in
> CONFIG_ACPI=y cases. Add the stub function to linux/acpi.h to make
> compilation successful for !CONFIG_ACPI cases.
>
> Signed-off-by: Saurabh Sengar <ssengar@...ux.microsoft.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
and please feel free to toute this patch whichever way is convenient.
Thanks!
> ---
> include/linux/acpi.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
> index efff750f326d..d331f76b0c19 100644
> --- a/include/linux/acpi.h
> +++ b/include/linux/acpi.h
> @@ -1075,6 +1075,11 @@ static inline u32 acpi_osc_ctx_get_cxl_control(struct acpi_osc_context *context)
> return 0;
> }
>
> +static inline bool acpi_sleep_state_supported(u8 sleep_state)
> +{
> + return false;
> +}
> +
> #endif /* !CONFIG_ACPI */
>
> #ifdef CONFIG_ACPI_HOTPLUG_IOAPIC
> --
> 2.34.1
>
Powered by blists - more mailing lists