From: Kejian Yan
acpi_evaluate_dsm() will be used to handle the _DSM method in ACPI case.
It will be compiled in non-ACPI case, but the function is in acpi_bus.h
and acpi_bus.h can only be used in ACPI case, so this patch add the stub
function to linux/acpi.h to make compiled successfully in non-ACPI cases.
Cc: Rafael J. Wysocki
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
Signed-off-by: David S. Miller
Git-commit: 4ae399241adba66ad72e5973a1004f37ffbe67cd
Patch-mainline: v4.8-rc1
Signed-off-by: Matwey V. Kornilov
---
include/linux/acpi.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 17bd39bec610..c19af1d8970a 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -638,6 +638,14 @@ static inline bool acpi_driver_match_device(struct device *dev,
return false;
}
+static inline union acpi_object *acpi_evaluate_dsm(acpi_handle handle,
+ const u8 *uuid,
+ int rev, int func,
+ union acpi_object *argv4)
+{
+ return NULL;
+}
+
static inline int acpi_device_uevent_modalias(struct device *dev,
struct kobj_uevent_env *env)
{
--
2.12.0
--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org