* [PATCH] ACPI: add stub acpi_create_platform_device() for !CONFIG_ACPI
@ 2020-12-31 11:35 Shawn Guo
2021-01-07 16:44 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Shawn Guo @ 2020-12-31 11:35 UTC (permalink / raw)
To: Rafael J . Wysocki, Len Brown; +Cc: linux-acpi, linux-kernel, Shawn Guo
It adds a stub acpi_create_platform_device() for !CONFIG_ACPI build, so
that caller doesn't have to deal with !CONFIG_ACPI build issue.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
This fixes an build issue reported by kernel test robot as below.
https://lore.kernel.org/linux-arm-msm/20201230124925.19260-1-shawn.guo@linaro.org/T/#u
include/linux/acpi.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 2630c2e953f7..053bf05fb1f7 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -885,6 +885,13 @@ static inline int acpi_device_modalias(struct device *dev,
return -ENODEV;
}
+static inline struct platform_device *
+acpi_create_platform_device(struct acpi_device *adev,
+ struct property_entry *properties)
+{
+ return NULL;
+}
+
static inline bool acpi_dma_supported(struct acpi_device *adev)
{
return false;
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ACPI: add stub acpi_create_platform_device() for !CONFIG_ACPI
2020-12-31 11:35 [PATCH] ACPI: add stub acpi_create_platform_device() for !CONFIG_ACPI Shawn Guo
@ 2021-01-07 16:44 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-01-07 16:44 UTC (permalink / raw)
To: Shawn Guo
Cc: Rafael J . Wysocki, Len Brown, ACPI Devel Maling List,
Linux Kernel Mailing List
On Thu, Dec 31, 2020 at 12:36 PM Shawn Guo <shawn.guo@linaro.org> wrote:
>
> It adds a stub acpi_create_platform_device() for !CONFIG_ACPI build, so
> that caller doesn't have to deal with !CONFIG_ACPI build issue.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
> This fixes an build issue reported by kernel test robot as below.
>
> https://lore.kernel.org/linux-arm-msm/20201230124925.19260-1-shawn.guo@linaro.org/T/#u
>
> include/linux/acpi.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
> index 2630c2e953f7..053bf05fb1f7 100644
> --- a/include/linux/acpi.h
> +++ b/include/linux/acpi.h
> @@ -885,6 +885,13 @@ static inline int acpi_device_modalias(struct device *dev,
> return -ENODEV;
> }
>
> +static inline struct platform_device *
> +acpi_create_platform_device(struct acpi_device *adev,
> + struct property_entry *properties)
> +{
> + return NULL;
> +}
> +
> static inline bool acpi_dma_supported(struct acpi_device *adev)
> {
> return false;
> --
Applied as 5.11-rc material, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-07 16:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-31 11:35 [PATCH] ACPI: add stub acpi_create_platform_device() for !CONFIG_ACPI Shawn Guo
2021-01-07 16:44 ` Rafael J. Wysocki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.