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 | 1d18c05825c3f2b8933a7fc7f7528881e98deb04 (patch) | |
tree | 8b0a1ed08c4281451899d28785b936369b77b91d /drivers/acpi/utilities | |
parent | 39adb11e56d8eef6169aeae38f65df26883ff49c (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/utilities')
-rw-r--r-- | drivers/acpi/utilities/utalloc.c | 2 | ||||
-rw-r--r-- | drivers/acpi/utilities/utcopy.c | 2 | ||||
-rw-r--r-- | drivers/acpi/utilities/utdebug.c | 10 | ||||
-rw-r--r-- | drivers/acpi/utilities/utglobal.c | 2 |
4 files changed, 7 insertions, 9 deletions
diff --git a/drivers/acpi/utilities/utalloc.c b/drivers/acpi/utilities/utalloc.c index 6e56d5f7c43a..181e66986fa9 100644 --- a/drivers/acpi/utilities/utalloc.c +++ b/drivers/acpi/utilities/utalloc.c | |||
@@ -147,7 +147,7 @@ acpi_status acpi_ut_delete_caches(void) | |||
147 | 147 | ||
148 | if (acpi_gbl_display_final_mem_stats) { | 148 | if (acpi_gbl_display_final_mem_stats) { |
149 | ACPI_STRCPY(buffer, "MEMORY"); | 149 | ACPI_STRCPY(buffer, "MEMORY"); |
150 | acpi_db_display_statistics(buffer); | 150 | (void)acpi_db_display_statistics(buffer); |
151 | } | 151 | } |
152 | #endif | 152 | #endif |
153 | 153 | ||
diff --git a/drivers/acpi/utilities/utcopy.c b/drivers/acpi/utilities/utcopy.c index 879eaa10d3ae..b56953d2b59e 100644 --- a/drivers/acpi/utilities/utcopy.c +++ b/drivers/acpi/utilities/utcopy.c | |||
@@ -570,7 +570,7 @@ acpi_ut_copy_epackage_to_ipackage(union acpi_object *external_object, | |||
570 | 570 | ||
571 | /* Truncate package and delete it */ | 571 | /* Truncate package and delete it */ |
572 | 572 | ||
573 | package_object->package.count = i; | 573 | package_object->package.count = (u32) i; |
574 | package_elements[i] = NULL; | 574 | package_elements[i] = NULL; |
575 | acpi_ut_remove_reference(package_object); | 575 | acpi_ut_remove_reference(package_object); |
576 | return_ACPI_STATUS(status); | 576 | return_ACPI_STATUS(status); |
diff --git a/drivers/acpi/utilities/utdebug.c b/drivers/acpi/utilities/utdebug.c index a9148677f037..2d6a78fb01cf 100644 --- a/drivers/acpi/utilities/utdebug.c +++ b/drivers/acpi/utilities/utdebug.c | |||
@@ -68,9 +68,9 @@ static const char *acpi_ut_trim_function_name(const char *function_name); | |||
68 | 68 | ||
69 | void acpi_ut_init_stack_ptr_trace(void) | 69 | void acpi_ut_init_stack_ptr_trace(void) |
70 | { | 70 | { |
71 | u32 current_sp; | 71 | acpi_size current_sp; |
72 | 72 | ||
73 | acpi_gbl_entry_stack_pointer = ACPI_PTR_DIFF(¤t_sp, NULL); | 73 | acpi_gbl_entry_stack_pointer = ¤t_sp; |
74 | } | 74 | } |
75 | 75 | ||
76 | /******************************************************************************* | 76 | /******************************************************************************* |
@@ -89,10 +89,8 @@ void acpi_ut_track_stack_ptr(void) | |||
89 | { | 89 | { |
90 | acpi_size current_sp; | 90 | acpi_size current_sp; |
91 | 91 | ||
92 | current_sp = ACPI_PTR_DIFF(¤t_sp, NULL); | 92 | if (¤t_sp < acpi_gbl_lowest_stack_pointer) { |
93 | 93 | acpi_gbl_lowest_stack_pointer = ¤t_sp; | |
94 | if (current_sp < acpi_gbl_lowest_stack_pointer) { | ||
95 | acpi_gbl_lowest_stack_pointer = current_sp; | ||
96 | } | 94 | } |
97 | 95 | ||
98 | if (acpi_gbl_nesting_level > acpi_gbl_deepest_nesting) { | 96 | if (acpi_gbl_nesting_level > acpi_gbl_deepest_nesting) { |
diff --git a/drivers/acpi/utilities/utglobal.c b/drivers/acpi/utilities/utglobal.c index 44425433075a..d2097ded262d 100644 --- a/drivers/acpi/utilities/utglobal.c +++ b/drivers/acpi/utilities/utglobal.c | |||
@@ -723,7 +723,7 @@ void acpi_ut_init_globals(void) | |||
723 | acpi_gbl_root_node_struct.flags = ANOBJ_END_OF_PEER_LIST; | 723 | acpi_gbl_root_node_struct.flags = ANOBJ_END_OF_PEER_LIST; |
724 | 724 | ||
725 | #ifdef ACPI_DEBUG_OUTPUT | 725 | #ifdef ACPI_DEBUG_OUTPUT |
726 | acpi_gbl_lowest_stack_pointer = ACPI_SIZE_MAX; | 726 | acpi_gbl_lowest_stack_pointer = ACPI_CAST_PTR(acpi_size, ACPI_SIZE_MAX); |
727 | #endif | 727 | #endif |
728 | 728 | ||
729 | #ifdef ACPI_DBG_TRACK_ALLOCATIONS | 729 | #ifdef ACPI_DBG_TRACK_ALLOCATIONS |