All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/3] ACPI: bus: Constify stubs for CONFIG_ACPI=n case
@ 2021-06-04 16:50 Andy Shevchenko
  2021-06-04 16:50 ` [PATCH v3 2/3] ACPI: bus: Constify acpi_dma_supported() helper function Andy Shevchenko
  2021-06-04 16:50 ` [PATCH v3 3/3] device property: Unify access to of_node Andy Shevchenko
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Shevchenko @ 2021-06-04 16:50 UTC (permalink / raw)
  To: Rafael J. Wysocki, Andy Shevchenko, linux-acpi, linux-kernel, devel
  Cc: Rafael J. Wysocki, Len Brown, Greg Kroah-Hartman, Robert Moore,
	Erik Kaneda, kernel test robot

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 <lkp@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v3: no changes
v2: new fix
 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 c60745f657e9..40657f220f8b 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -765,7 +765,7 @@ static inline bool is_acpi_device_node(const 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;
 }
@@ -775,12 +775,12 @@ static inline bool is_acpi_data_node(const 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;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-07 12:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 16:50 [PATCH v3 1/3] ACPI: bus: Constify stubs for CONFIG_ACPI=n case Andy Shevchenko
2021-06-04 16:50 ` [PATCH v3 2/3] ACPI: bus: Constify acpi_dma_supported() helper function Andy Shevchenko
2021-06-04 16:50 ` [PATCH v3 3/3] device property: Unify access to of_node Andy Shevchenko
2021-06-07 12:45   ` Rafael J. Wysocki
2021-06-07 12:45     ` [Devel] " 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.