ACPI / property: fix compile error for acpi_node_get_property_reference() when CONFIG_ACPI=n
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
@@ -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
Quoted 10 lines · Hanjun Guo
From: Hanjun Guo <[email protected]>
In commit
60ba032ed76e("ACPI / property: Dropsize_propfromacpi_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 whenCONFIG_ACPI=n, easliy remove "const char*cells_name" to fix it.Reported-by Kejian Yan <[email protected]>Signed-off-by Hanjun Guo <[email protected]>