Skip to contentSkip to conversation

ACPI / property: fix compile error for acpi_node_get_property_reference() when CONFIG_ACPI=n

PATCH In review Hanjun Guo 2 participants 2 messages Dec 2, 2015 ACPI

lore
Share & tools
lore

Hanjun Guo

author
#0 lore raw

PATCH 1/1 ACPI / property: fix compile error for acpi_node_get_property_reference() when CONFIG_ACPI=n

From: Hanjun Guo <[email protected]>

In commit 60ba032ed76e ("ACPI / property: Drop size_prop from acpi_dev_get_property_reference()"), the argument "const char *cells_name" was dropped, but forgot to update the stub function in no-ACPI case, it will lead to compile error when CONFIG_ACPI=n, easliy remove "const char *cells_name" to fix it.

---
 include/linux/acpi.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/acpi.h +2 -2
index 93811dc..7c603e4 100644
@@ -872,8 +872,8 @@ static inline int acpi_dev_get_property(struct acpi_device *adev,
 }
 
 static inline int acpi_node_get_property_reference(struct fwnode_handle *fwnode,
-				const char *name, const char *cells_name,
-				size_t index, struct acpi_reference_args *args)
+				const char *name, size_t index,
+				struct acpi_reference_args *args)
 {
 	return -ENXIO;
 }
Signature · 1 line
1.7.12.4
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Hanjun Guo

From: Hanjun Guo <[email protected]>

In commit 60ba032ed76e ("ACPI / property: Drop size_prop from acpi_dev_get_property_reference()"), the argument "const char *cells_name" was dropped, but forgot to update the stub function in no-ACPI case, it will lead to compile error when CONFIG_ACPI=n, easliy remove "const char *cells_name" to fix it.