Commit e0423edf authored by Lv Zheng's avatar Lv Zheng Committed by Rafael J. Wysocki

ACPICA: Unix: Cleanup to use ACPI_TO_INTEGER() to calc page offset.

ACPICA commit 9e2d8180f4d5e61949b17513bae8aff6412f62dd

The offset calculation needn't convert a pointer to a special integer type.
So this patch uses ACPI_TO_INTEGER() instead.

This patch only affects acpidump tool.

Link: https://github.com/acpica/acpica/commit/9e2d8180Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent f254e3c5
...@@ -146,6 +146,6 @@ void acpi_os_unmap_memory(void *where, acpi_size length) ...@@ -146,6 +146,6 @@ void acpi_os_unmap_memory(void *where, acpi_size length)
acpi_size page_size; acpi_size page_size;
page_size = acpi_os_get_page_size(); page_size = acpi_os_get_page_size();
offset = (acpi_physical_address) where % page_size; offset = ACPI_TO_INTEGER(where) % page_size;
munmap((u8 *)where - offset, (length + offset)); munmap((u8 *)where - offset, (length + offset));
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment