提交 c11e5dd3 编写于 作者: L Lv Zheng 提交者: Rafael J. Wysocki

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: NSascha Wildner <saw@online.de>
Signed-off-by: NLv Zheng <lv.zheng@intel.com>
[ rjw: Changelog ]
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 c8100dc4
...@@ -599,12 +599,14 @@ void acpi_db_display_calling_tree(void) ...@@ -599,12 +599,14 @@ void acpi_db_display_calling_tree(void)
void acpi_db_display_object_type(char *object_arg) void acpi_db_display_object_type(char *object_arg)
{ {
acpi_size arg;
acpi_handle handle; acpi_handle handle;
struct acpi_device_info *info; struct acpi_device_info *info;
acpi_status status; acpi_status status;
u32 i; 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); status = acpi_get_object_info(handle, &info);
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册