Skip to content

Commit 1269b6d

Browse files
Sakari Ailusrafaeljw
authored andcommitted
ACPI: utils: Make acpi_handle_path() not static
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>
1 parent 841c351 commit 1269b6d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/acpi/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ EXPORT_SYMBOL(acpi_evaluate_ost);
559559
*
560560
* Caller must free the returned buffer
561561
*/
562-
static char *acpi_handle_path(acpi_handle handle)
562+
char *acpi_handle_path(acpi_handle handle)
563563
{
564564
struct acpi_buffer buffer = {
565565
.length = ACPI_ALLOCATE_BUFFER,

include/linux/acpi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,7 @@ static inline void acpi_ec_set_gpe_wake_mask(u8 action) {}
11701170
#endif
11711171

11721172
#ifdef CONFIG_ACPI
1173+
char *acpi_handle_path(acpi_handle handle);
11731174
__printf(3, 4)
11741175
void acpi_handle_printk(const char *level, acpi_handle handle,
11751176
const char *fmt, ...);

0 commit comments

Comments
 (0)