Skip to content

Commit 9d2f57f

Browse files
Zhe Qiaorafaeljw
authored andcommitted
ACPICA: Change the compilation conditions
To prevent the risk of undefined variables. Link: acpica/acpica@9f86d4c9 Signed-off-by: Zhe Qiao <qiaozhe@iscas.ac.cn> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 2926d37 commit 9d2f57f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/acpi/acpica/psopinfo.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ static const u8 acpi_gbl_argument_count[] =
3434

3535
const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode)
3636
{
37+
#if defined ACPI_ASL_COMPILER && defined ACPI_DEBUG_OUTPUT
38+
const char *opcode_name = "Unknown AML opcode";
39+
#endif
3740

3841
ACPI_FUNCTION_NAME(ps_get_opcode_info);
3942

@@ -59,8 +62,6 @@ const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode)
5962
#if defined ACPI_ASL_COMPILER && defined ACPI_DEBUG_OUTPUT
6063
#include "asldefine.h"
6164

62-
const char *opcode_name = "Unknown AML opcode";
63-
6465
switch (opcode) {
6566
case AML_RAW_DATA_BYTE:
6667
opcode_name = "-Raw Data Byte-";

0 commit comments

Comments
 (0)