Skip to content

Commit 339651b

Browse files
jrtc27rafaeljw
authored andcommitted
ACPICA: Macros: Remove ACPI_PHYSADDR_TO_PTR
ACPICA commit 52abebd410945ec55afb4dd8b7150e8a39b5c960 This macro was only ever used when stuffing pointers into physical addresses and trying to later reconstruct the pointer, which is implementation-defined as to whether that can be done. Now that all such operations are gone, the macro is unused, and should be removed to avoid such practices being reintroduced. Link: acpica/acpica@52abebd4 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 5d6e596 commit 339651b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

include/acpi/actypes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@ typedef u64 acpi_integer;
509509
#define ACPI_TO_POINTER(i) ACPI_CAST_PTR (void, (acpi_size) (i))
510510
#define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) 0)
511511
#define ACPI_OFFSET(d, f) ACPI_PTR_DIFF (&(((d *) 0)->f), (void *) 0)
512-
#define ACPI_PHYSADDR_TO_PTR(i) ACPI_TO_POINTER(i)
513512
#define ACPI_PTR_TO_PHYSADDR(i) ACPI_TO_INTEGER(i)
514513

515514
/* Optimizations for 4-character (32-bit) acpi_name manipulation */

0 commit comments

Comments
 (0)