Skip to content

Commit

Permalink
ACPICA: Silence a -Wbad-function-cast warning when acpi_uintptr_t is …
Browse files Browse the repository at this point in the history
…'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 <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>
  • Loading branch information
Lv Zheng authored and Rafael J. Wysocki committed Jan 15, 2016
1 parent c8100dc commit c11e5dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/acpi/acpica/dbdisply.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c11e5dd

Please sign in to comment.