]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPICA: Avoid warning for Dump Functions
authorAdam Lackorzynski <adam@l4re.org>
Tue, 7 May 2024 19:28:26 +0000 (21:28 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 29 Aug 2024 17:04:22 +0000 (19:04 +0200)
ACPICA commit 6031b34b5dbabfaaebe80e57e8e415790b51d285

Only include the functions acpi_rs_dump_resource_list
and acpi_rs_dump_irq_list() if ACPI_DEBUGGER is defined, as
specified in the header.

This avoids the compiler warning by adding the ifdef for ACPI_DEBUGGER.

Link: https://github.com/acpica/acpica/commit/6031b34b
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/rsdump.c

index 611bc71c193f97c93a3776bd021d3b79f87e3411..5b7d7074ce4fdc9bbfc6f4c65ad32e3fb0032aff 100644 (file)
@@ -48,6 +48,7 @@ static void acpi_rs_dump_address_common(union acpi_resource_data *resource);
 static void
 acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table);
 
+#ifdef ACPI_DEBUGGER
 /*******************************************************************************
  *
  * FUNCTION:    acpi_rs_dump_resource_list
@@ -160,6 +161,7 @@ void acpi_rs_dump_irq_list(u8 *route_table)
                                           prt_element, prt_element->length);
        }
 }
+#endif
 
 /*******************************************************************************
  *