diff options
| author | Lv Zheng <lv.zheng@intel.com> | 2014-01-08 00:43:23 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-08 09:31:36 -0500 |
| commit | bb3fec146c8561441db058db07b3fbdd7fe7e1df (patch) | |
| tree | 4ec8e389084149ebf95831cef14de002dddb5055 /include/acpi | |
| parent | 5af2b6351b3cc0dadd6888928005a61f2667c80d (diff) | |
ACPICA: Remove unused ACPI_FREE_BUFFER macro. No functional change.
This macro is no longer used by ACPICA and it is not public.
Also update comments related to the use of ACPI_ALLOCATE_BUFFER and
the use of acpi_os_free (kfree is equivalent and prefered in the
kernel) to free the buffer.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
| -rw-r--r-- | include/acpi/actypes.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 809b1a0fee7f..68a3ada689c9 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
| @@ -928,8 +928,8 @@ struct acpi_object_list { | |||
| 928 | * Miscellaneous common Data Structures used by the interfaces | 928 | * Miscellaneous common Data Structures used by the interfaces |
| 929 | */ | 929 | */ |
| 930 | #define ACPI_NO_BUFFER 0 | 930 | #define ACPI_NO_BUFFER 0 |
| 931 | #define ACPI_ALLOCATE_BUFFER (acpi_size) (-1) | 931 | #define ACPI_ALLOCATE_BUFFER (acpi_size) (-1) /* Let ACPICA allocate buffer */ |
| 932 | #define ACPI_ALLOCATE_LOCAL_BUFFER (acpi_size) (-2) | 932 | #define ACPI_ALLOCATE_LOCAL_BUFFER (acpi_size) (-2) /* For internal use only (enables tracking) */ |
| 933 | 933 | ||
| 934 | struct acpi_buffer { | 934 | struct acpi_buffer { |
| 935 | acpi_size length; /* Length in bytes of the buffer */ | 935 | acpi_size length; /* Length in bytes of the buffer */ |
| @@ -937,14 +937,6 @@ struct acpi_buffer { | |||
| 937 | }; | 937 | }; |
| 938 | 938 | ||
| 939 | /* | 939 | /* |
| 940 | * Free a buffer created in an struct acpi_buffer via ACPI_ALLOCATE_BUFFER. | ||
| 941 | * Note: We use acpi_os_free here because acpi_os_allocate was used to allocate | ||
| 942 | * the buffer. This purposefully bypasses the internal allocation tracking | ||
| 943 | * mechanism (if it is enabled). | ||
| 944 | */ | ||
| 945 | #define ACPI_FREE_BUFFER(b) acpi_os_free((b).pointer) | ||
| 946 | |||
| 947 | /* | ||
| 948 | * name_type for acpi_get_name | 940 | * name_type for acpi_get_name |
| 949 | */ | 941 | */ |
| 950 | #define ACPI_FULL_PATHNAME 0 | 942 | #define ACPI_FULL_PATHNAME 0 |
