ACPICA: Fix broken call depth tracing logic.
authorLv Zheng <lv.zheng@intel.com>
Wed, 19 Dec 2012 05:37:29 +0000 (05:37 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Jan 2013 11:36:18 +0000 (12:36 +0100)
This patch does not affect the generation of the Linux binary.
This patch decreases 26 lines of 20121018 divergence.diff.

The ACPICA uses a call depth tracing mechanism by wrapping the return
statements with return macros and marking the entrance with
ACPI_FUNCTION_TRACE_ macros. There are other ACPI_FUNCTION_ macros used
to mark the functions not using this tracing mechanism.

This patch fixes broken call depth tracing logic.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/exfldio.c
drivers/acpi/acpica/nsxfeval.c

index aa2ccfb7cb61218f7d8a4b7da30c36941d7ccca9..2c2146cfa6a16dfff7eb7022061584347bb6f1bf 100644 (file)
@@ -329,7 +329,6 @@ acpi_ex_access_region(union acpi_operand_object *obj_desc,
 static u8
 acpi_ex_register_overflow(union acpi_operand_object *obj_desc, u64 value)
 {
-       ACPI_FUNCTION_NAME(ex_register_overflow);
 
        if (obj_desc->common_field.bit_length >= ACPI_INTEGER_BIT_SIZE) {
                /*
index a5d8ccce10fdf5509bce54ce465c4e65e67cb070..ef29925d1620ab8f32f5bd8f185fa3b775f2ff17 100644 (file)
@@ -492,7 +492,7 @@ acpi_walk_namespace(acpi_object_type type,
         */
        status = acpi_ut_acquire_read_lock(&acpi_gbl_namespace_rw_lock);
        if (ACPI_FAILURE(status)) {
-               return status;
+               return_ACPI_STATUS(status);
        }
 
        /*
@@ -550,7 +550,7 @@ acpi_ns_get_device_callback(acpi_handle obj_handle,
 
        status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE);
        if (ACPI_FAILURE(status)) {
-               return_ACPI_STATUS(status);
+               return (status);
        }
 
        node = acpi_ns_validate_handle(obj_handle);