ACPICA: Casting changes around acpi_physical_address/acpi_size.
authorBob Moore <robert.moore@intel.com>
Mon, 13 Apr 2015 03:49:54 +0000 (11:49 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 14 Apr 2015 12:51:53 +0000 (14:51 +0200)
ACPICA commit 46dc081e570b1363af1e368980201cbb65c4100f

Update for some recent changes, detected by MSVC and FreeBSD builds.

Link: https://github.com/acpica/acpica/commit/46dc081e
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/exregion.c

index 389a4121b2820d612262dea83982999f1fc6f5dc..f6c2f5499935c7dffc1c53655b7f1f45da0a7073 100644 (file)
@@ -165,8 +165,8 @@ acpi_ex_system_memory_space_handler(u32 function,
                 * one page, which is similar to the original code that used a 4k
                 * maximum window.
                 */
-               page_boundary_map_length =
-                   ACPI_ROUND_UP(address, ACPI_DEFAULT_PAGE_SIZE) - address;
+               page_boundary_map_length = (acpi_size)
+                   (ACPI_ROUND_UP(address, ACPI_DEFAULT_PAGE_SIZE) - address);
                if (page_boundary_map_length == 0) {
                        page_boundary_map_length = ACPI_DEFAULT_PAGE_SIZE;
                }