diff options
| author | Bob Moore <robert.moore@intel.com> | 2014-01-08 00:44:32 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-08 09:31:38 -0500 |
| commit | 5d4de9af84332490fb06c8785ae03d95eaa4e8f1 (patch) | |
| tree | d7073bfad84db85ef5167fd86ee4cc1a6eaeb39d | |
| parent | 20c40de0595e8683b56085c4c91be66734d06f5a (diff) | |
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: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
| -rw-r--r-- | drivers/acpi/acpica/psopinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/psopinfo.c b/drivers/acpi/acpica/psopinfo.c index d7bba3c7ce56..b0c9787dbe61 100644 --- a/drivers/acpi/acpica/psopinfo.c +++ b/drivers/acpi/acpica/psopinfo.c | |||
| @@ -71,7 +71,9 @@ static const u8 acpi_gbl_argument_count[] = | |||
| 71 | 71 | ||
| 72 | const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) | 72 | const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) |
| 73 | { | 73 | { |
| 74 | #ifdef ACPI_DEBUG_OUTPUT | ||
| 74 | const char *opcode_name = "Unknown AML opcode"; | 75 | const char *opcode_name = "Unknown AML opcode"; |
| 76 | #endif | ||
| 75 | 77 | ||
| 76 | ACPI_FUNCTION_NAME(ps_get_opcode_info); | 78 | ACPI_FUNCTION_NAME(ps_get_opcode_info); |
| 77 | 79 | ||
| @@ -94,7 +96,7 @@ const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) | |||
| 94 | return (&acpi_gbl_aml_op_info | 96 | return (&acpi_gbl_aml_op_info |
| 95 | [acpi_gbl_long_op_index[(u8)opcode]]); | 97 | [acpi_gbl_long_op_index[(u8)opcode]]); |
| 96 | } | 98 | } |
| 97 | #ifdef ACPI_ASL_COMPILER | 99 | #if defined ACPI_ASL_COMPILER && defined ACPI_DEBUG_OUTPUT |
| 98 | #include "asldefine.h" | 100 | #include "asldefine.h" |
| 99 | 101 | ||
| 100 | switch (opcode) { | 102 | switch (opcode) { |
