From e2f2cb41c3644155909bb11dcbbf0f87408b7312 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Sat, 18 Apr 2026 16:07:04 -0700 Subject: [PATCH] ACPI: property: Constify stubs for CONFIG_ACPI=n case commit 5c1a72a0fbe1b02c3ce0537f85f92ea935e0beec upstream. There is a few stubs that left untouched during constification of the fwnode related APIs. Constify three more stubs here. Fixes: 8b9d6802583a ("ACPI: Constify acpi_bus helper functions, switch to macros") Reported-by: kernel test robot Signed-off-by: Andy Shevchenko [ rjw: Subject edit ] Signed-off-by: Rafael J. Wysocki Signed-off-by: Nathan Chancellor Signed-off-by: Sasha Levin Signed-off-by: Ulrich Hecht --- include/linux/acpi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 1a37748766b7..02e54a377177 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -680,7 +680,7 @@ static inline bool is_acpi_device_node(struct fwnode_handle *fwnode) return false; } -static inline struct acpi_device *to_acpi_device_node(struct fwnode_handle *fwnode) +static inline struct acpi_device *to_acpi_device_node(const struct fwnode_handle *fwnode) { return NULL; } @@ -690,12 +690,12 @@ static inline bool is_acpi_data_node(struct fwnode_handle *fwnode) return false; } -static inline struct acpi_data_node *to_acpi_data_node(struct fwnode_handle *fwnode) +static inline struct acpi_data_node *to_acpi_data_node(const struct fwnode_handle *fwnode) { return NULL; } -static inline bool acpi_data_node_match(struct fwnode_handle *fwnode, +static inline bool acpi_data_node_match(const struct fwnode_handle *fwnode, const char *name) { return false;