From: Lv Zheng Date: Fri, 15 Jan 2016 00:17:11 +0000 (+0800) Subject: ACPICA: Silence a -Wbad-function-cast warning when acpi_uintptr_t is 'uintptr_t' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c11e5dd3eadf3abcddcc509605eb24c20c03fc6d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ACPICA: Silence a -Wbad-function-cast warning when acpi_uintptr_t is 'uintptr_t' 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 Signed-off-by: Lv Zheng [ rjw: Changelog ] Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpica/dbdisply.c b/drivers/acpi/acpica/dbdisply.c index f10c158424f3..502bb587f112 100644 --- a/drivers/acpi/acpica/dbdisply.c +++ b/drivers/acpi/acpica/dbdisply.c @@ -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)) {