提交 27c481f3 编写于 作者: L Lv Zheng 提交者: Rafael J. Wysocki

ACPICA: Resources: Correct conditional compilation definitions.

ACPICA commit f92a08512b0b35dce4a7fc6a73216674a3c2541b

Some conditional compilation definitions are wrong across header and source
files. This patch corrects them for the resources component.

NOTE that a further patch in this patchset cleans up all ACPI_EXEC_APP,
converting them into ACPI_DEBUGGER, including part of this change.

Link: https://github.com/acpica/acpica/commit/f92a0851Reported-by: NRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: NLv Zheng <lv.zheng@intel.com>
Signed-off-by: NBob Moore <robert.moore@intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 6306bf88
...@@ -301,9 +301,11 @@ acpi_rs_set_resource_length(acpi_rsdesc_size total_length, ...@@ -301,9 +301,11 @@ acpi_rs_set_resource_length(acpi_rsdesc_size total_length,
/* /*
* rsdump * rsdump
*/ */
#ifdef ACPI_EXEC_APP
void acpi_rs_dump_resource_list(struct acpi_resource *resource); void acpi_rs_dump_resource_list(struct acpi_resource *resource);
void acpi_rs_dump_irq_list(u8 *route_table); void acpi_rs_dump_irq_list(u8 *route_table);
#endif
/* /*
* Resource conversion tables * Resource conversion tables
......
...@@ -355,6 +355,7 @@ static void acpi_rs_dump_address_common(union acpi_resource_data *resource) ...@@ -355,6 +355,7 @@ static void acpi_rs_dump_address_common(union acpi_resource_data *resource)
acpi_rs_dump_descriptor(resource, acpi_rs_dump_general_flags); acpi_rs_dump_descriptor(resource, acpi_rs_dump_general_flags);
} }
#ifdef ACPI_EXEC_APP
/******************************************************************************* /*******************************************************************************
* *
* FUNCTION: acpi_rs_dump_resource_list * FUNCTION: acpi_rs_dump_resource_list
...@@ -464,6 +465,7 @@ void acpi_rs_dump_irq_list(u8 *route_table) ...@@ -464,6 +465,7 @@ void acpi_rs_dump_irq_list(u8 *route_table)
prt_element, prt_element->length); prt_element, prt_element->length);
} }
} }
#endif
/******************************************************************************* /*******************************************************************************
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册