Commit 9d2f57fe authored by Zhe Qiao's avatar Zhe Qiao Committed by Rafael J. Wysocki
Browse files

ACPICA: Change the compilation conditions

To prevent the risk of undefined variables.

Link: https://github.com/acpica/acpica/commit/9f86d4c9


Signed-off-by: default avatarZhe Qiao <qiaozhe@iscas.ac.cn>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 2926d375
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -34,6 +34,9 @@ static const u8 acpi_gbl_argument_count[] =

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

	ACPI_FUNCTION_NAME(ps_get_opcode_info);

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

	const char *opcode_name = "Unknown AML opcode";

	switch (opcode) {
	case AML_RAW_DATA_BYTE:
		opcode_name = "-Raw Data Byte-";