diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpica/dswload2.c | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/dswstate.c | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/evxfgpe.c | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/exdebug.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/exmutex.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/exoparg6.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/hwpci.c | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/nsnames.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/nsxfeval.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/rslist.c | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/tbinstal.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/tbutils.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/tbxface.c | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/tbxfroot.c | 1 | ||||
-rw-r--r-- | drivers/acpi/acpica/utdebug.c | 1 | ||||
-rw-r--r-- | drivers/acpi/acpica/utmutex.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/uttrack.c | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/utxface.c | 3 |
18 files changed, 27 insertions, 22 deletions
diff --git a/drivers/acpi/acpica/dswload2.c b/drivers/acpi/acpica/dswload2.c index 89c0114210c0..379835748357 100644 --- a/drivers/acpi/acpica/dswload2.c +++ b/drivers/acpi/acpica/dswload2.c | |||
@@ -254,7 +254,7 @@ acpi_ds_load2_begin_op(struct acpi_walk_state *walk_state, | |||
254 | acpi_ut_get_type_name(node->type), | 254 | acpi_ut_get_type_name(node->type), |
255 | acpi_ut_get_node_name(node))); | 255 | acpi_ut_get_node_name(node))); |
256 | 256 | ||
257 | return (AE_AML_OPERAND_TYPE); | 257 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); |
258 | } | 258 | } |
259 | break; | 259 | break; |
260 | 260 | ||
@@ -602,7 +602,7 @@ acpi_status acpi_ds_load2_end_op(struct acpi_walk_state *walk_state) | |||
602 | region_space, | 602 | region_space, |
603 | walk_state); | 603 | walk_state); |
604 | if (ACPI_FAILURE(status)) { | 604 | if (ACPI_FAILURE(status)) { |
605 | return (status); | 605 | return_ACPI_STATUS(status); |
606 | } | 606 | } |
607 | 607 | ||
608 | acpi_ex_exit_interpreter(); | 608 | acpi_ex_exit_interpreter(); |
diff --git a/drivers/acpi/acpica/dswstate.c b/drivers/acpi/acpica/dswstate.c index 9bb7fa45e240..8e6267980aaf 100644 --- a/drivers/acpi/acpica/dswstate.c +++ b/drivers/acpi/acpica/dswstate.c | |||
@@ -708,13 +708,13 @@ void acpi_ds_delete_walk_state(struct acpi_walk_state *walk_state) | |||
708 | ACPI_FUNCTION_TRACE_PTR(ds_delete_walk_state, walk_state); | 708 | ACPI_FUNCTION_TRACE_PTR(ds_delete_walk_state, walk_state); |
709 | 709 | ||
710 | if (!walk_state) { | 710 | if (!walk_state) { |
711 | return; | 711 | return_VOID; |
712 | } | 712 | } |
713 | 713 | ||
714 | if (walk_state->descriptor_type != ACPI_DESC_TYPE_WALK) { | 714 | if (walk_state->descriptor_type != ACPI_DESC_TYPE_WALK) { |
715 | ACPI_ERROR((AE_INFO, "%p is not a valid walk state", | 715 | ACPI_ERROR((AE_INFO, "%p is not a valid walk state", |
716 | walk_state)); | 716 | walk_state)); |
717 | return; | 717 | return_VOID; |
718 | } | 718 | } |
719 | 719 | ||
720 | /* There should not be any open scopes */ | 720 | /* There should not be any open scopes */ |
diff --git a/drivers/acpi/acpica/evxfgpe.c b/drivers/acpi/acpica/evxfgpe.c index d36f99739376..3f30e753b652 100644 --- a/drivers/acpi/acpica/evxfgpe.c +++ b/drivers/acpi/acpica/evxfgpe.c | |||
@@ -569,7 +569,7 @@ acpi_install_gpe_block(acpi_handle gpe_device, | |||
569 | 569 | ||
570 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); | 570 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); |
571 | if (ACPI_FAILURE(status)) { | 571 | if (ACPI_FAILURE(status)) { |
572 | return (status); | 572 | return_ACPI_STATUS(status); |
573 | } | 573 | } |
574 | 574 | ||
575 | node = acpi_ns_validate_handle(gpe_device); | 575 | node = acpi_ns_validate_handle(gpe_device); |
@@ -652,7 +652,7 @@ acpi_status acpi_remove_gpe_block(acpi_handle gpe_device) | |||
652 | 652 | ||
653 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); | 653 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); |
654 | if (ACPI_FAILURE(status)) { | 654 | if (ACPI_FAILURE(status)) { |
655 | return (status); | 655 | return_ACPI_STATUS(status); |
656 | } | 656 | } |
657 | 657 | ||
658 | node = acpi_ns_validate_handle(gpe_device); | 658 | node = acpi_ns_validate_handle(gpe_device); |
diff --git a/drivers/acpi/acpica/exdebug.c b/drivers/acpi/acpica/exdebug.c index bc5b9a6a1316..e0c905095ed1 100644 --- a/drivers/acpi/acpica/exdebug.c +++ b/drivers/acpi/acpica/exdebug.c | |||
@@ -190,7 +190,7 @@ acpi_ex_do_debug_object(union acpi_operand_object *source_desc, | |||
190 | 190 | ||
191 | acpi_os_printf("Table Index 0x%X\n", | 191 | acpi_os_printf("Table Index 0x%X\n", |
192 | source_desc->reference.value); | 192 | source_desc->reference.value); |
193 | return; | 193 | return_VOID; |
194 | 194 | ||
195 | default: | 195 | default: |
196 | break; | 196 | break; |
diff --git a/drivers/acpi/acpica/exmutex.c b/drivers/acpi/acpica/exmutex.c index bcceda5be9e3..9099783eb857 100644 --- a/drivers/acpi/acpica/exmutex.c +++ b/drivers/acpi/acpica/exmutex.c | |||
@@ -305,7 +305,7 @@ acpi_status acpi_ex_release_mutex_object(union acpi_operand_object *obj_desc) | |||
305 | ACPI_FUNCTION_TRACE(ex_release_mutex_object); | 305 | ACPI_FUNCTION_TRACE(ex_release_mutex_object); |
306 | 306 | ||
307 | if (obj_desc->mutex.acquisition_depth == 0) { | 307 | if (obj_desc->mutex.acquisition_depth == 0) { |
308 | return (AE_NOT_ACQUIRED); | 308 | return_ACPI_STATUS(AE_NOT_ACQUIRED); |
309 | } | 309 | } |
310 | 310 | ||
311 | /* Match multiple Acquires with multiple Releases */ | 311 | /* Match multiple Acquires with multiple Releases */ |
diff --git a/drivers/acpi/acpica/exoparg6.c b/drivers/acpi/acpica/exoparg6.c index 0786b8659061..ab68dc532c7f 100644 --- a/drivers/acpi/acpica/exoparg6.c +++ b/drivers/acpi/acpica/exoparg6.c | |||
@@ -198,7 +198,7 @@ acpi_ex_do_match(u32 match_op, | |||
198 | return (FALSE); | 198 | return (FALSE); |
199 | } | 199 | } |
200 | 200 | ||
201 | return logical_result; | 201 | return (logical_result); |
202 | } | 202 | } |
203 | 203 | ||
204 | /******************************************************************************* | 204 | /******************************************************************************* |
diff --git a/drivers/acpi/acpica/hwpci.c b/drivers/acpi/acpica/hwpci.c index 1455ddcdc32c..65bc3453a29c 100644 --- a/drivers/acpi/acpica/hwpci.c +++ b/drivers/acpi/acpica/hwpci.c | |||
@@ -259,7 +259,7 @@ acpi_hw_process_pci_list(struct acpi_pci_id *pci_id, | |||
259 | status = acpi_hw_get_pci_device_info(pci_id, info->device, | 259 | status = acpi_hw_get_pci_device_info(pci_id, info->device, |
260 | &bus_number, &is_bridge); | 260 | &bus_number, &is_bridge); |
261 | if (ACPI_FAILURE(status)) { | 261 | if (ACPI_FAILURE(status)) { |
262 | return_ACPI_STATUS(status); | 262 | return (status); |
263 | } | 263 | } |
264 | 264 | ||
265 | info = info->next; | 265 | info = info->next; |
@@ -271,7 +271,7 @@ acpi_hw_process_pci_list(struct acpi_pci_id *pci_id, | |||
271 | pci_id->segment, pci_id->bus, pci_id->device, | 271 | pci_id->segment, pci_id->bus, pci_id->device, |
272 | pci_id->function, status, bus_number, is_bridge)); | 272 | pci_id->function, status, bus_number, is_bridge)); |
273 | 273 | ||
274 | return_ACPI_STATUS(AE_OK); | 274 | return (AE_OK); |
275 | } | 275 | } |
276 | 276 | ||
277 | /******************************************************************************* | 277 | /******************************************************************************* |
diff --git a/drivers/acpi/acpica/nsnames.c b/drivers/acpi/acpica/nsnames.c index 96e0eb609bb4..55a175eadcc3 100644 --- a/drivers/acpi/acpica/nsnames.c +++ b/drivers/acpi/acpica/nsnames.c | |||
@@ -195,7 +195,7 @@ acpi_size acpi_ns_get_pathname_length(struct acpi_namespace_node *node) | |||
195 | ACPI_ERROR((AE_INFO, | 195 | ACPI_ERROR((AE_INFO, |
196 | "Invalid Namespace Node (%p) while traversing namespace", | 196 | "Invalid Namespace Node (%p) while traversing namespace", |
197 | next_node)); | 197 | next_node)); |
198 | return 0; | 198 | return (0); |
199 | } | 199 | } |
200 | size += ACPI_PATH_SEGMENT_LENGTH; | 200 | size += ACPI_PATH_SEGMENT_LENGTH; |
201 | next_node = next_node->parent; | 201 | next_node = next_node->parent; |
diff --git a/drivers/acpi/acpica/nsxfeval.c b/drivers/acpi/acpica/nsxfeval.c index 494f2ebd623a..ee4d873f9f0a 100644 --- a/drivers/acpi/acpica/nsxfeval.c +++ b/drivers/acpi/acpica/nsxfeval.c | |||
@@ -550,7 +550,7 @@ acpi_ns_get_device_callback(acpi_handle obj_handle, | |||
550 | 550 | ||
551 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); | 551 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); |
552 | if (ACPI_FAILURE(status)) { | 552 | if (ACPI_FAILURE(status)) { |
553 | return (status); | 553 | return_ACPI_STATUS(status); |
554 | } | 554 | } |
555 | 555 | ||
556 | node = acpi_ns_validate_handle(obj_handle); | 556 | node = acpi_ns_validate_handle(obj_handle); |
diff --git a/drivers/acpi/acpica/rslist.c b/drivers/acpi/acpica/rslist.c index 46b5324b22d6..8b64db9a3fd2 100644 --- a/drivers/acpi/acpica/rslist.c +++ b/drivers/acpi/acpica/rslist.c | |||
@@ -109,7 +109,7 @@ acpi_rs_convert_aml_to_resources(u8 * aml, | |||
109 | ACPI_ERROR((AE_INFO, | 109 | ACPI_ERROR((AE_INFO, |
110 | "Invalid/unsupported resource descriptor: Type 0x%2.2X", | 110 | "Invalid/unsupported resource descriptor: Type 0x%2.2X", |
111 | resource_index)); | 111 | resource_index)); |
112 | return (AE_AML_INVALID_RESOURCE_TYPE); | 112 | return_ACPI_STATUS(AE_AML_INVALID_RESOURCE_TYPE); |
113 | } | 113 | } |
114 | 114 | ||
115 | /* Convert the AML byte stream resource to a local resource struct */ | 115 | /* Convert the AML byte stream resource to a local resource struct */ |
@@ -200,7 +200,7 @@ acpi_rs_convert_resources_to_aml(struct acpi_resource *resource, | |||
200 | ACPI_ERROR((AE_INFO, | 200 | ACPI_ERROR((AE_INFO, |
201 | "Invalid/unsupported resource descriptor: Type 0x%2.2X", | 201 | "Invalid/unsupported resource descriptor: Type 0x%2.2X", |
202 | resource->type)); | 202 | resource->type)); |
203 | return (AE_AML_INVALID_RESOURCE_TYPE); | 203 | return_ACPI_STATUS(AE_AML_INVALID_RESOURCE_TYPE); |
204 | } | 204 | } |
205 | 205 | ||
206 | status = acpi_rs_convert_resource_to_aml(resource, | 206 | status = acpi_rs_convert_resource_to_aml(resource, |
diff --git a/drivers/acpi/acpica/tbinstal.c b/drivers/acpi/acpica/tbinstal.c index 70f9d787c82c..f540ae462925 100644 --- a/drivers/acpi/acpica/tbinstal.c +++ b/drivers/acpi/acpica/tbinstal.c | |||
@@ -526,6 +526,8 @@ void acpi_tb_terminate(void) | |||
526 | 526 | ||
527 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "ACPI Tables freed\n")); | 527 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "ACPI Tables freed\n")); |
528 | (void)acpi_ut_release_mutex(ACPI_MTX_TABLES); | 528 | (void)acpi_ut_release_mutex(ACPI_MTX_TABLES); |
529 | |||
530 | return_VOID; | ||
529 | } | 531 | } |
530 | 532 | ||
531 | /******************************************************************************* | 533 | /******************************************************************************* |
diff --git a/drivers/acpi/acpica/tbutils.c b/drivers/acpi/acpica/tbutils.c index b6cea30da638..285e24b97382 100644 --- a/drivers/acpi/acpica/tbutils.c +++ b/drivers/acpi/acpica/tbutils.c | |||
@@ -354,7 +354,7 @@ u8 acpi_tb_checksum(u8 *buffer, u32 length) | |||
354 | sum = (u8) (sum + *(buffer++)); | 354 | sum = (u8) (sum + *(buffer++)); |
355 | } | 355 | } |
356 | 356 | ||
357 | return sum; | 357 | return (sum); |
358 | } | 358 | } |
359 | 359 | ||
360 | /******************************************************************************* | 360 | /******************************************************************************* |
diff --git a/drivers/acpi/acpica/tbxface.c b/drivers/acpi/acpica/tbxface.c index 21101262e47a..f5632780421d 100644 --- a/drivers/acpi/acpica/tbxface.c +++ b/drivers/acpi/acpica/tbxface.c | |||
@@ -236,7 +236,7 @@ acpi_get_table_header(char *signature, | |||
236 | sizeof(struct | 236 | sizeof(struct |
237 | acpi_table_header)); | 237 | acpi_table_header)); |
238 | if (!header) { | 238 | if (!header) { |
239 | return AE_NO_MEMORY; | 239 | return (AE_NO_MEMORY); |
240 | } | 240 | } |
241 | ACPI_MEMCPY(out_table_header, header, | 241 | ACPI_MEMCPY(out_table_header, header, |
242 | sizeof(struct acpi_table_header)); | 242 | sizeof(struct acpi_table_header)); |
@@ -244,7 +244,7 @@ acpi_get_table_header(char *signature, | |||
244 | sizeof(struct | 244 | sizeof(struct |
245 | acpi_table_header)); | 245 | acpi_table_header)); |
246 | } else { | 246 | } else { |
247 | return AE_NOT_FOUND; | 247 | return (AE_NOT_FOUND); |
248 | } | 248 | } |
249 | } else { | 249 | } else { |
250 | ACPI_MEMCPY(out_table_header, | 250 | ACPI_MEMCPY(out_table_header, |
diff --git a/drivers/acpi/acpica/tbxfroot.c b/drivers/acpi/acpica/tbxfroot.c index 74e720800037..f8ee9b35b999 100644 --- a/drivers/acpi/acpica/tbxfroot.c +++ b/drivers/acpi/acpica/tbxfroot.c | |||
@@ -67,7 +67,6 @@ static acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp); | |||
67 | 67 | ||
68 | static acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) | 68 | static acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) |
69 | { | 69 | { |
70 | ACPI_FUNCTION_ENTRY(); | ||
71 | 70 | ||
72 | /* | 71 | /* |
73 | * The signature and checksum must both be correct | 72 | * The signature and checksum must both be correct |
diff --git a/drivers/acpi/acpica/utdebug.c b/drivers/acpi/acpica/utdebug.c index 6e3ae6a23f0b..2c2179917649 100644 --- a/drivers/acpi/acpica/utdebug.c +++ b/drivers/acpi/acpica/utdebug.c | |||
@@ -300,6 +300,7 @@ acpi_ut_trace_ptr(u32 line_number, | |||
300 | const char *function_name, | 300 | const char *function_name, |
301 | const char *module_name, u32 component_id, void *pointer) | 301 | const char *module_name, u32 component_id, void *pointer) |
302 | { | 302 | { |
303 | |||
303 | acpi_gbl_nesting_level++; | 304 | acpi_gbl_nesting_level++; |
304 | acpi_ut_track_stack_ptr(); | 305 | acpi_ut_track_stack_ptr(); |
305 | 306 | ||
diff --git a/drivers/acpi/acpica/utmutex.c b/drivers/acpi/acpica/utmutex.c index 296baa676bc5..93a119199335 100644 --- a/drivers/acpi/acpica/utmutex.c +++ b/drivers/acpi/acpica/utmutex.c | |||
@@ -193,6 +193,8 @@ static void acpi_ut_delete_mutex(acpi_mutex_handle mutex_id) | |||
193 | 193 | ||
194 | acpi_gbl_mutex_info[mutex_id].mutex = NULL; | 194 | acpi_gbl_mutex_info[mutex_id].mutex = NULL; |
195 | acpi_gbl_mutex_info[mutex_id].thread_id = ACPI_MUTEX_NOT_ACQUIRED; | 195 | acpi_gbl_mutex_info[mutex_id].thread_id = ACPI_MUTEX_NOT_ACQUIRED; |
196 | |||
197 | return_VOID; | ||
196 | } | 198 | } |
197 | 199 | ||
198 | /******************************************************************************* | 200 | /******************************************************************************* |
diff --git a/drivers/acpi/acpica/uttrack.c b/drivers/acpi/acpica/uttrack.c index 73ca27d40f9f..e79c49d44d08 100644 --- a/drivers/acpi/acpica/uttrack.c +++ b/drivers/acpi/acpica/uttrack.c | |||
@@ -517,14 +517,14 @@ void acpi_ut_dump_allocations(u32 component, const char *module) | |||
517 | ACPI_FUNCTION_TRACE(ut_dump_allocations); | 517 | ACPI_FUNCTION_TRACE(ut_dump_allocations); |
518 | 518 | ||
519 | if (acpi_gbl_disable_mem_tracking) { | 519 | if (acpi_gbl_disable_mem_tracking) { |
520 | return; | 520 | return_VOID; |
521 | } | 521 | } |
522 | 522 | ||
523 | /* | 523 | /* |
524 | * Walk the allocation list. | 524 | * Walk the allocation list. |
525 | */ | 525 | */ |
526 | if (ACPI_FAILURE(acpi_ut_acquire_mutex(ACPI_MTX_MEMORY))) { | 526 | if (ACPI_FAILURE(acpi_ut_acquire_mutex(ACPI_MTX_MEMORY))) { |
527 | return; | 527 | return_VOID; |
528 | } | 528 | } |
529 | 529 | ||
530 | element = acpi_gbl_global_list->list_head; | 530 | element = acpi_gbl_global_list->list_head; |
diff --git a/drivers/acpi/acpica/utxface.c b/drivers/acpi/acpica/utxface.c index b09632b4f5b3..0c98d42fb2fd 100644 --- a/drivers/acpi/acpica/utxface.c +++ b/drivers/acpi/acpica/utxface.c | |||
@@ -238,7 +238,7 @@ acpi_install_initialization_handler(acpi_init_handler handler, u32 function) | |||
238 | } | 238 | } |
239 | 239 | ||
240 | acpi_gbl_init_handler = handler; | 240 | acpi_gbl_init_handler = handler; |
241 | return AE_OK; | 241 | return (AE_OK); |
242 | } | 242 | } |
243 | 243 | ||
244 | ACPI_EXPORT_SYMBOL(acpi_install_initialization_handler) | 244 | ACPI_EXPORT_SYMBOL(acpi_install_initialization_handler) |
@@ -263,6 +263,7 @@ acpi_status acpi_purge_cached_objects(void) | |||
263 | (void)acpi_os_purge_cache(acpi_gbl_operand_cache); | 263 | (void)acpi_os_purge_cache(acpi_gbl_operand_cache); |
264 | (void)acpi_os_purge_cache(acpi_gbl_ps_node_cache); | 264 | (void)acpi_os_purge_cache(acpi_gbl_ps_node_cache); |
265 | (void)acpi_os_purge_cache(acpi_gbl_ps_node_ext_cache); | 265 | (void)acpi_os_purge_cache(acpi_gbl_ps_node_ext_cache); |
266 | |||
266 | return_ACPI_STATUS(AE_OK); | 267 | return_ACPI_STATUS(AE_OK); |
267 | } | 268 | } |
268 | 269 | ||