diff options
Diffstat (limited to 'drivers/acpi/utilities/utcopy.c')
-rw-r--r-- | drivers/acpi/utilities/utcopy.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/drivers/acpi/utilities/utcopy.c b/drivers/acpi/utilities/utcopy.c index 5442b32de611..df2d32096b72 100644 --- a/drivers/acpi/utilities/utcopy.c +++ b/drivers/acpi/utilities/utcopy.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -398,14 +398,17 @@ acpi_ut_copy_iobject_to_eobject(union acpi_operand_object *internal_object, | |||
398 | * Build a simple object (no nested objects) | 398 | * Build a simple object (no nested objects) |
399 | */ | 399 | */ |
400 | status = acpi_ut_copy_isimple_to_esimple(internal_object, | 400 | status = acpi_ut_copy_isimple_to_esimple(internal_object, |
401 | (union acpi_object *) | 401 | ACPI_CAST_PTR(union |
402 | ret_buffer->pointer, | 402 | acpi_object, |
403 | ((u8 *) ret_buffer-> | 403 | ret_buffer-> |
404 | pointer + | 404 | pointer), |
405 | ACPI_ROUND_UP_TO_NATIVE_WORD | 405 | ACPI_ADD_PTR(u8, |
406 | (sizeof | 406 | ret_buffer-> |
407 | (union | 407 | pointer, |
408 | acpi_object))), | 408 | ACPI_ROUND_UP_TO_NATIVE_WORD |
409 | (sizeof | ||
410 | (union | ||
411 | acpi_object))), | ||
409 | &ret_buffer->length); | 412 | &ret_buffer->length); |
410 | /* | 413 | /* |
411 | * build simple does not include the object size in the length | 414 | * build simple does not include the object size in the length |
@@ -603,8 +606,8 @@ acpi_ut_copy_eobject_to_iobject(union acpi_object *external_object, | |||
603 | /* | 606 | /* |
604 | * Packages as external input to control methods are not supported, | 607 | * Packages as external input to control methods are not supported, |
605 | */ | 608 | */ |
606 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 609 | ACPI_ERROR((AE_INFO, |
607 | "Packages as parameters not implemented!\n")); | 610 | "Packages as parameters not implemented!")); |
608 | 611 | ||
609 | return_ACPI_STATUS(AE_NOT_IMPLEMENTED); | 612 | return_ACPI_STATUS(AE_NOT_IMPLEMENTED); |
610 | } | 613 | } |
@@ -867,7 +870,7 @@ acpi_ut_copy_ipackage_to_ipackage(union acpi_operand_object *source_obj, | |||
867 | count + | 870 | count + |
868 | 1) * sizeof(void *)); | 871 | 1) * sizeof(void *)); |
869 | if (!dest_obj->package.elements) { | 872 | if (!dest_obj->package.elements) { |
870 | ACPI_REPORT_ERROR(("aml_build_copy_internal_package_object: Package allocation failure\n")); | 873 | ACPI_ERROR((AE_INFO, "Package allocation failure")); |
871 | return_ACPI_STATUS(AE_NO_MEMORY); | 874 | return_ACPI_STATUS(AE_NO_MEMORY); |
872 | } | 875 | } |
873 | 876 | ||