Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c11e5dd3 authored by Lv Zheng's avatar Lv Zheng Committed by Rafael J. Wysocki
Browse files

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: default avatarSascha Wildner <saw@online.de>
Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
[ rjw: Changelog ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent c8100dc4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)) {