From: Bob Moore <robert.moore@xxxxxxxxx> drivers/acpi/executer/exconfig.c:99: warning: cast to pointer from integer of different size Signed-off-by: Bob Moore <robert.moore@xxxxxxxxx> Signed-off-by: Len Brown <len.brown@xxxxxxxxx> --- drivers/acpi/executer/exconfig.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/executer/exconfig.c b/drivers/acpi/executer/exconfig.c index dc62bfe..641ed8e 100644 --- a/drivers/acpi/executer/exconfig.c +++ b/drivers/acpi/executer/exconfig.c @@ -96,7 +96,7 @@ acpi_ex_add_table(u32 table_index, /* Install the new table into the local data structures */ - obj_desc->reference.object = ACPI_CAST_PTR(void, table_index); + obj_desc->reference.object = ACPI_TO_POINTER(table_index); /* Add the table to the namespace */ @@ -359,6 +359,7 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc, ACPI_MEMCPY(table_desc.pointer, obj_desc->buffer.pointer, length); + table_desc.address = ACPI_TO_INTEGER (table_desc.pointer); table_desc.length = length; table_desc.flags = ACPI_TABLE_ORIGIN_ALLOCATED; break; -- 1.5.6 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html