ACPICA: Disassembler: Add warnings for unresolved control methods
authorBob Moore <robert.moore@intel.com>
Fri, 8 Mar 2013 09:23:39 +0000 (09:23 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 11 Mar 2013 23:45:05 +0000 (00:45 +0100)
Flags the case where external control methods are unresolved,
meaning that the disassembler had no idea how many arguments to
parse for the method invocation.

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>
drivers/acpi/acpica/acglobal.h
drivers/acpi/acpica/aclocal.h
drivers/acpi/acpica/utglobal.c

index feaa5d5ef579fce8480f067649ca5c937e0932fb..833fbc5be2d61c4a6ab7fa97fc1504cf6a7ac334 100644 (file)
@@ -417,6 +417,8 @@ ACPI_EXTERN u8 ACPI_INIT_GLOBAL(acpi_gbl_ignore_noop_operator, FALSE);
 
 ACPI_EXTERN u8 acpi_gbl_db_opt_disasm;
 ACPI_EXTERN u8 acpi_gbl_db_opt_verbose;
+ACPI_EXTERN u8 acpi_gbl_num_external_methods;
+ACPI_EXTERN u32 acpi_gbl_resolved_external_methods;
 ACPI_EXTERN struct acpi_external_list *acpi_gbl_external_list;
 ACPI_EXTERN struct acpi_external_file *acpi_gbl_external_file_list;
 #endif
index 9d45f976a31e8f22d2781fdf0ea95a10782fa357..636658ffc9b19a4d8178139111baf4c40dbd5c8e 100644 (file)
@@ -1052,6 +1052,7 @@ struct acpi_external_list {
        u16 length;
        u8 type;
        u8 flags;
+       u8 resolved;
 };
 
 /* Values for Flags field above */
index ffecf4b4f0ddad70f243811cd7697b931f7e9142..f736448a8606755e1400e197a02bc0674fd597b3 100644 (file)
@@ -359,6 +359,8 @@ acpi_status acpi_ut_init_globals(void)
 
 #ifdef ACPI_DISASSEMBLER
        acpi_gbl_external_list = NULL;
+       acpi_gbl_num_external_methods = 0;
+       acpi_gbl_resolved_external_methods = 0;
 #endif
 
 #ifdef ACPI_DEBUG_OUTPUT