Skip to content

Commit

Permalink
ACPICA: Conditionally define a local variable that is used for debug …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Jan 8, 2014
1 parent 20c40de commit 5d4de9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/acpi/acpica/psopinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ static const u8 acpi_gbl_argument_count[] =

const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode)
{
#ifdef ACPI_DEBUG_OUTPUT
const char *opcode_name = "Unknown AML opcode";
#endif

ACPI_FUNCTION_NAME(ps_get_opcode_info);

Expand All @@ -94,7 +96,7 @@ const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode)
return (&acpi_gbl_aml_op_info
[acpi_gbl_long_op_index[(u8)opcode]]);
}
#ifdef ACPI_ASL_COMPILER
#if defined ACPI_ASL_COMPILER && defined ACPI_DEBUG_OUTPUT
#include "asldefine.h"

switch (opcode) {
Expand Down

0 comments on commit 5d4de9a

Please sign in to comment.