diff options
author | Bob Moore <robert.moore@intel.com> | 2009-04-22 07:13:48 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-05-27 06:30:49 +0200 |
commit | ba9c3f550e5792fbce2bbd7a429bf6f6d1f45fda (patch) | |
tree | a3fce6f5acfb7112dc5baa9d86c1c8b383f4dd2d /drivers/acpi/acpica/dswstate.c | |
parent | ACPICA: Miscellaneous lint changes (diff) | |
download | linux-ba9c3f550e5792fbce2bbd7a429bf6f6d1f45fda.tar.xz linux-ba9c3f550e5792fbce2bbd7a429bf6f6d1f45fda.zip |
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/dswstate.c')
-rw-r--r-- | drivers/acpi/acpica/dswstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/dswstate.c b/drivers/acpi/acpica/dswstate.c index 40f92bf7dce5..e46c821cf572 100644 --- a/drivers/acpi/acpica/dswstate.c +++ b/drivers/acpi/acpica/dswstate.c @@ -102,7 +102,7 @@ acpi_ds_result_pop(union acpi_operand_object **object, /* Return object of the top element and clean that top element result stack */ walk_state->result_count--; - index = walk_state->result_count % ACPI_RESULTS_FRAME_OBJ_NUM; + index = (u32)walk_state->result_count % ACPI_RESULTS_FRAME_OBJ_NUM; *object = state->results.obj_desc[index]; if (!*object) { @@ -186,7 +186,7 @@ acpi_ds_result_push(union acpi_operand_object * object, /* Assign the address of object to the top free element of result stack */ - index = walk_state->result_count % ACPI_RESULTS_FRAME_OBJ_NUM; + index = (u32)walk_state->result_count % ACPI_RESULTS_FRAME_OBJ_NUM; state->results.obj_desc[index] = object; walk_state->result_count++; |