ACPI: utils: Make acpi_handle_path() not static
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 13 Feb 2024 13:46:05 +0000 (15:46 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 15 Feb 2024 20:06:06 +0000 (21:06 +0100)
acpi_handle_path() will soon be required for node name comparison
elsewhere in ACPI framework. Remove the static keyword and add the
prototype to include/linux/acpi.h.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/utils.c
include/linux/acpi.h

index abac5cc254774d2eb5d593068bb1bada6a2fde17..202234ba54bd93989aed1d43fb152e78ed1797b1 100644 (file)
@@ -559,7 +559,7 @@ EXPORT_SYMBOL(acpi_evaluate_ost);
  *
  * Caller must free the returned buffer
  */
-static char *acpi_handle_path(acpi_handle handle)
+char *acpi_handle_path(acpi_handle handle)
 {
        struct acpi_buffer buffer = {
                .length = ACPI_ALLOCATE_BUFFER,
index b7165e52b3c687bde0d295e7094cff66f5aebd48..a170c389dd746047943b0afdde2358e048662394 100644 (file)
@@ -1170,6 +1170,7 @@ static inline void acpi_ec_set_gpe_wake_mask(u8 action) {}
 #endif
 
 #ifdef CONFIG_ACPI
+char *acpi_handle_path(acpi_handle handle);
 __printf(3, 4)
 void acpi_handle_printk(const char *level, acpi_handle handle,
                        const char *fmt, ...);