diff options
author | Bob Moore <robert.moore@intel.com> | 2009-04-22 09:13:48 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-05-27 08:30:49 +0400 |
commit | ba9c3f550e5792fbce2bbd7a429bf6f6d1f45fda (patch) | |
tree | a3fce6f5acfb7112dc5baa9d86c1c8b383f4dd2d /drivers/acpi/acpica/rsxface.c | |
parent | e4c1ebfc65c125b1289144f5815715f238367683 (diff) | |
download | linux-ba9c3f550e5792fbce2bbd7a429bf6f6d1f45fda.tar.xz |
ACPICA: Fix miscellaneous warnings under gcc 4+
Some possible warnings with gcc 4+, especially with extended warnings
enabled
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/rsxface.c')
-rw-r--r-- | drivers/acpi/acpica/rsxface.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/rsxface.c b/drivers/acpi/acpica/rsxface.c index 69a2aa5b5d83..395212bcd19b 100644 --- a/drivers/acpi/acpica/rsxface.c +++ b/drivers/acpi/acpica/rsxface.c @@ -338,13 +338,17 @@ acpi_resource_to_address64(struct acpi_resource *resource, switch (resource->type) { case ACPI_RESOURCE_TYPE_ADDRESS16: - address16 = (struct acpi_resource_address16 *)&resource->data; + address16 = + ACPI_CAST_PTR(struct acpi_resource_address16, + &resource->data); ACPI_COPY_ADDRESS(out, address16); break; case ACPI_RESOURCE_TYPE_ADDRESS32: - address32 = (struct acpi_resource_address32 *)&resource->data; + address32 = + ACPI_CAST_PTR(struct acpi_resource_address32, + &resource->data); ACPI_COPY_ADDRESS(out, address32); break; |