diff options
author | Bob Moore <robert.moore@intel.com> | 2008-04-10 11:06:40 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-22 14:29:27 -0400 |
commit | b7f9f04228eae2cf5adc2ffeb494d4970a8dd8a5 (patch) | |
tree | 729bc503991a07c0706737ba0cfdd1ab639a8252 /drivers/acpi/executer | |
parent | 1d18c05825c3f2b8933a7fc7f7528881e98deb04 (diff) |
ACPICA: Cosmetic changes only, no functional changes
Lint changes, fix compiler warnings, etc.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/executer')
-rw-r--r-- | drivers/acpi/executer/exconfig.c | 10 | ||||
-rw-r--r-- | drivers/acpi/executer/exdump.c | 10 | ||||
-rw-r--r-- | drivers/acpi/executer/exfldio.c | 3 | ||||
-rw-r--r-- | drivers/acpi/executer/exregion.c | 8 | ||||
-rw-r--r-- | drivers/acpi/executer/exstore.c | 6 | ||||
-rw-r--r-- | drivers/acpi/executer/exsystem.c | 1 | ||||
-rw-r--r-- | drivers/acpi/executer/exutils.c | 1 |
7 files changed, 24 insertions, 15 deletions
diff --git a/drivers/acpi/executer/exconfig.c b/drivers/acpi/executer/exconfig.c index 3370aad3ee14..52b1e95837fa 100644 --- a/drivers/acpi/executer/exconfig.c +++ b/drivers/acpi/executer/exconfig.c | |||
@@ -45,7 +45,6 @@ | |||
45 | #include <acpi/acinterp.h> | 45 | #include <acpi/acinterp.h> |
46 | #include <acpi/amlcode.h> | 46 | #include <acpi/amlcode.h> |
47 | #include <acpi/acnamesp.h> | 47 | #include <acpi/acnamesp.h> |
48 | #include <acpi/acevents.h> | ||
49 | #include <acpi/actables.h> | 48 | #include <acpi/actables.h> |
50 | #include <acpi/acdispat.h> | 49 | #include <acpi/acdispat.h> |
51 | 50 | ||
@@ -341,9 +340,10 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc, | |||
341 | 340 | ||
342 | /* Validate checksum here. It won't get validated in tb_add_table */ | 341 | /* Validate checksum here. It won't get validated in tb_add_table */ |
343 | 342 | ||
344 | status = acpi_tb_verify_checksum((struct acpi_table_header *) | 343 | status = |
345 | obj_desc->buffer.pointer, | 344 | acpi_tb_verify_checksum(ACPI_CAST_PTR |
346 | length); | 345 | (struct acpi_table_header, |
346 | obj_desc->buffer.pointer), length); | ||
347 | if (ACPI_FAILURE(status)) { | 347 | if (ACPI_FAILURE(status)) { |
348 | return_ACPI_STATUS(status); | 348 | return_ACPI_STATUS(status); |
349 | } | 349 | } |
@@ -468,7 +468,7 @@ acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle) | |||
468 | * (Offset contains the table_id) | 468 | * (Offset contains the table_id) |
469 | */ | 469 | */ |
470 | acpi_tb_delete_namespace_by_owner(table_index); | 470 | acpi_tb_delete_namespace_by_owner(table_index); |
471 | acpi_tb_release_owner_id(table_index); | 471 | (void)acpi_tb_release_owner_id(table_index); |
472 | 472 | ||
473 | acpi_tb_set_table_loaded_flag(table_index, FALSE); | 473 | acpi_tb_set_table_loaded_flag(table_index, FALSE); |
474 | 474 | ||
diff --git a/drivers/acpi/executer/exdump.c b/drivers/acpi/executer/exdump.c index fcb1da0d1de7..e48d91634295 100644 --- a/drivers/acpi/executer/exdump.c +++ b/drivers/acpi/executer/exdump.c | |||
@@ -506,6 +506,12 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth) | |||
506 | obj_desc->reference.object); | 506 | obj_desc->reference.object); |
507 | break; | 507 | break; |
508 | 508 | ||
509 | case AML_LOAD_OP: | ||
510 | |||
511 | acpi_os_printf("Reference: [DdbHandle] TableIndex %p\n", | ||
512 | obj_desc->reference.object); | ||
513 | break; | ||
514 | |||
509 | case AML_REF_OF_OP: | 515 | case AML_REF_OF_OP: |
510 | 516 | ||
511 | acpi_os_printf("Reference: (RefOf) %p\n", | 517 | acpi_os_printf("Reference: (RefOf) %p\n", |
@@ -631,8 +637,8 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth) | |||
631 | acpi_os_printf("\n"); | 637 | acpi_os_printf("\n"); |
632 | } else { | 638 | } else { |
633 | acpi_os_printf(" base %8.8X%8.8X Length %X\n", | 639 | acpi_os_printf(" base %8.8X%8.8X Length %X\n", |
634 | ACPI_FORMAT_UINT64(obj_desc->region. | 640 | ACPI_FORMAT_NATIVE_UINT(obj_desc->region. |
635 | address), | 641 | address), |
636 | obj_desc->region.length); | 642 | obj_desc->region.length); |
637 | } | 643 | } |
638 | break; | 644 | break; |
diff --git a/drivers/acpi/executer/exfldio.c b/drivers/acpi/executer/exfldio.c index 65a48b6170ee..1ece1c3fc375 100644 --- a/drivers/acpi/executer/exfldio.c +++ b/drivers/acpi/executer/exfldio.c | |||
@@ -263,7 +263,8 @@ acpi_ex_access_region(union acpi_operand_object *obj_desc, | |||
263 | rgn_desc->region.space_id, | 263 | rgn_desc->region.space_id, |
264 | obj_desc->common_field.access_byte_width, | 264 | obj_desc->common_field.access_byte_width, |
265 | obj_desc->common_field.base_byte_offset, | 265 | obj_desc->common_field.base_byte_offset, |
266 | field_datum_byte_offset, (void *)address)); | 266 | field_datum_byte_offset, ACPI_CAST_PTR(void, |
267 | address))); | ||
267 | 268 | ||
268 | /* Invoke the appropriate address_space/op_region handler */ | 269 | /* Invoke the appropriate address_space/op_region handler */ |
269 | 270 | ||
diff --git a/drivers/acpi/executer/exregion.c b/drivers/acpi/executer/exregion.c index 3f51b7e84a17..cbc67884454f 100644 --- a/drivers/acpi/executer/exregion.c +++ b/drivers/acpi/executer/exregion.c | |||
@@ -160,7 +160,7 @@ acpi_ex_system_memory_space_handler(u32 function, | |||
160 | if (!mem_info->mapped_logical_address) { | 160 | if (!mem_info->mapped_logical_address) { |
161 | ACPI_ERROR((AE_INFO, | 161 | ACPI_ERROR((AE_INFO, |
162 | "Could not map memory at %8.8X%8.8X, size %X", | 162 | "Could not map memory at %8.8X%8.8X, size %X", |
163 | ACPI_FORMAT_UINT64(address), | 163 | ACPI_FORMAT_NATIVE_UINT(address), |
164 | (u32) window_size)); | 164 | (u32) window_size)); |
165 | mem_info->mapped_length = 0; | 165 | mem_info->mapped_length = 0; |
166 | return_ACPI_STATUS(AE_NO_MEMORY); | 166 | return_ACPI_STATUS(AE_NO_MEMORY); |
@@ -182,7 +182,8 @@ acpi_ex_system_memory_space_handler(u32 function, | |||
182 | 182 | ||
183 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 183 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
184 | "System-Memory (width %d) R/W %d Address=%8.8X%8.8X\n", | 184 | "System-Memory (width %d) R/W %d Address=%8.8X%8.8X\n", |
185 | bit_width, function, ACPI_FORMAT_UINT64(address))); | 185 | bit_width, function, |
186 | ACPI_FORMAT_NATIVE_UINT(address))); | ||
186 | 187 | ||
187 | /* | 188 | /* |
188 | * Perform the memory read or write | 189 | * Perform the memory read or write |
@@ -284,7 +285,8 @@ acpi_ex_system_io_space_handler(u32 function, | |||
284 | 285 | ||
285 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 286 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
286 | "System-IO (width %d) R/W %d Address=%8.8X%8.8X\n", | 287 | "System-IO (width %d) R/W %d Address=%8.8X%8.8X\n", |
287 | bit_width, function, ACPI_FORMAT_UINT64(address))); | 288 | bit_width, function, |
289 | ACPI_FORMAT_NATIVE_UINT(address))); | ||
288 | 290 | ||
289 | /* Decode the function parameter */ | 291 | /* Decode the function parameter */ |
290 | 292 | ||
diff --git a/drivers/acpi/executer/exstore.c b/drivers/acpi/executer/exstore.c index d860f9c6172c..2408122cb3b2 100644 --- a/drivers/acpi/executer/exstore.c +++ b/drivers/acpi/executer/exstore.c | |||
@@ -189,7 +189,7 @@ acpi_ex_do_debug_object(union acpi_operand_object *source_desc, | |||
189 | 189 | ||
190 | if (source_desc->reference.opcode == AML_LOAD_OP) { /* Load and load_table */ | 190 | if (source_desc->reference.opcode == AML_LOAD_OP) { /* Load and load_table */ |
191 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_DEBUG_OBJECT, | 191 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_DEBUG_OBJECT, |
192 | " Table OwnerId %X\n", | 192 | " Table OwnerId %p\n", |
193 | source_desc->reference.object)); | 193 | source_desc->reference.object)); |
194 | break; | 194 | break; |
195 | } | 195 | } |
@@ -213,7 +213,9 @@ acpi_ex_do_debug_object(union acpi_operand_object *source_desc, | |||
213 | (source_desc->reference.node) != | 213 | (source_desc->reference.node) != |
214 | ACPI_DESC_TYPE_NAMED) { | 214 | ACPI_DESC_TYPE_NAMED) { |
215 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_DEBUG_OBJECT, | 215 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_DEBUG_OBJECT, |
216 | " %p - Not a valid namespace node\n")); | 216 | " %p - Not a valid namespace node\n", |
217 | source_desc->reference. | ||
218 | node)); | ||
217 | } else { | 219 | } else { |
218 | acpi_ex_do_debug_object((source_desc->reference. | 220 | acpi_ex_do_debug_object((source_desc->reference. |
219 | node)->object, | 221 | node)->object, |
diff --git a/drivers/acpi/executer/exsystem.c b/drivers/acpi/executer/exsystem.c index 9460baff3032..a20a974f7fac 100644 --- a/drivers/acpi/executer/exsystem.c +++ b/drivers/acpi/executer/exsystem.c | |||
@@ -44,7 +44,6 @@ | |||
44 | 44 | ||
45 | #include <acpi/acpi.h> | 45 | #include <acpi/acpi.h> |
46 | #include <acpi/acinterp.h> | 46 | #include <acpi/acinterp.h> |
47 | #include <acpi/acevents.h> | ||
48 | 47 | ||
49 | #define _COMPONENT ACPI_EXECUTER | 48 | #define _COMPONENT ACPI_EXECUTER |
50 | ACPI_MODULE_NAME("exsystem") | 49 | ACPI_MODULE_NAME("exsystem") |
diff --git a/drivers/acpi/executer/exutils.c b/drivers/acpi/executer/exutils.c index fd543ee547ae..1b93f4dded4c 100644 --- a/drivers/acpi/executer/exutils.c +++ b/drivers/acpi/executer/exutils.c | |||
@@ -61,7 +61,6 @@ | |||
61 | #include <acpi/acpi.h> | 61 | #include <acpi/acpi.h> |
62 | #include <acpi/acinterp.h> | 62 | #include <acpi/acinterp.h> |
63 | #include <acpi/amlcode.h> | 63 | #include <acpi/amlcode.h> |
64 | #include <acpi/acevents.h> | ||
65 | 64 | ||
66 | #define _COMPONENT ACPI_EXECUTER | 65 | #define _COMPONENT ACPI_EXECUTER |
67 | ACPI_MODULE_NAME("exutils") | 66 | ACPI_MODULE_NAME("exutils") |