mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-03 07:35:34 -04:00
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>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
5af2b6351b
commit
bb3fec146c
@@ -928,22 +928,14 @@ struct acpi_object_list {
|
||||
* Miscellaneous common Data Structures used by the interfaces
|
||||
*/
|
||||
#define ACPI_NO_BUFFER 0
|
||||
#define ACPI_ALLOCATE_BUFFER (acpi_size) (-1)
|
||||
#define ACPI_ALLOCATE_LOCAL_BUFFER (acpi_size) (-2)
|
||||
#define ACPI_ALLOCATE_BUFFER (acpi_size) (-1) /* Let ACPICA allocate buffer */
|
||||
#define ACPI_ALLOCATE_LOCAL_BUFFER (acpi_size) (-2) /* For internal use only (enables tracking) */
|
||||
|
||||
struct acpi_buffer {
|
||||
acpi_size length; /* Length in bytes of the buffer */
|
||||
void *pointer; /* pointer to buffer */
|
||||
};
|
||||
|
||||
/*
|
||||
* Free a buffer created in an struct acpi_buffer via ACPI_ALLOCATE_BUFFER.
|
||||
* Note: We use acpi_os_free here because acpi_os_allocate was used to allocate
|
||||
* the buffer. This purposefully bypasses the internal allocation tracking
|
||||
* mechanism (if it is enabled).
|
||||
*/
|
||||
#define ACPI_FREE_BUFFER(b) acpi_os_free((b).pointer)
|
||||
|
||||
/*
|
||||
* name_type for acpi_get_name
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user