]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ACPICA: Silence a -Wbad-function-cast warning when acpi_uintptr_t is 'uintptr_t'
authorLv Zheng <lv.zheng@intel.com>
Fri, 15 Jan 2016 00:17:11 +0000 (08:17 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Jan 2016 21:22:05 +0000 (22:22 +0100)
Do not pass the return value of strtoul() to the ACPI_TO_POINTER()
macro to avoid a -Wbad-function-cast warning.

Signed-off-by: Sascha Wildner <saw@online.de>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
[ rjw: Changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/dbdisply.c

index f10c158424f3a4d222f62dee4dede465ef81a9d1..502bb587f1128a8a2e37194aed9e581be29f3f99 100644 (file)
@@ -599,12 +599,14 @@ void acpi_db_display_calling_tree(void)
 
 void acpi_db_display_object_type(char *object_arg)
 {
+       acpi_size arg;
        acpi_handle handle;
        struct acpi_device_info *info;
        acpi_status status;
        u32 i;
 
-       handle = ACPI_TO_POINTER(strtoul(object_arg, NULL, 16));
+       arg = strtoul(object_arg, NULL, 16);
+       handle = ACPI_TO_POINTER(arg);
 
        status = acpi_get_object_info(handle, &info);
        if (ACPI_FAILURE(status)) {