提交 5d4de9af 编写于 作者: B Bob Moore 提交者: Rafael J. Wysocki

ACPICA: Conditionally define a local variable that is used for debug only.

This patch improves the relationship between the opcode debugging
information and CONFIG_ACPI_DEBUG enablement.
Signed-off-by: NBob Moore <robert.moore@intel.com>
Signed-off-by: NLv Zheng <lv.zheng@intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 20c40de0
...@@ -71,7 +71,9 @@ static const u8 acpi_gbl_argument_count[] = ...@@ -71,7 +71,9 @@ static const u8 acpi_gbl_argument_count[] =
const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode)
{ {
#ifdef ACPI_DEBUG_OUTPUT
const char *opcode_name = "Unknown AML opcode"; const char *opcode_name = "Unknown AML opcode";
#endif
ACPI_FUNCTION_NAME(ps_get_opcode_info); ACPI_FUNCTION_NAME(ps_get_opcode_info);
...@@ -94,7 +96,7 @@ const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) ...@@ -94,7 +96,7 @@ const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode)
return (&acpi_gbl_aml_op_info return (&acpi_gbl_aml_op_info
[acpi_gbl_long_op_index[(u8)opcode]]); [acpi_gbl_long_op_index[(u8)opcode]]);
} }
#ifdef ACPI_ASL_COMPILER #if defined ACPI_ASL_COMPILER && defined ACPI_DEBUG_OUTPUT
#include "asldefine.h" #include "asldefine.h"
switch (opcode) { switch (opcode) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册