Skip to content

Commit 5506544

Browse files
admlckrafaeljw
authored andcommitted
ACPICA: Avoid warning for Dump Functions
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: acpica/acpica@6031b34b Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent dd067af commit 5506544

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/acpi/acpica/rsdump.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ static void acpi_rs_dump_address_common(union acpi_resource_data *resource);
4848
static void
4949
acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table);
5050

51+
#ifdef ACPI_DEBUGGER
5152
/*******************************************************************************
5253
*
5354
* FUNCTION: acpi_rs_dump_resource_list
@@ -160,6 +161,7 @@ void acpi_rs_dump_irq_list(u8 *route_table)
160161
prt_element, prt_element->length);
161162
}
162163
}
164+
#endif
163165

164166
/*******************************************************************************
165167
*

0 commit comments

Comments
 (0)