diff options
author | Bob Moore <robert.moore@intel.com> | 2016-03-23 21:40:40 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-04 21:53:33 -0400 |
commit | 0dfaaa3d51df011c16279bb010bff90f45b6d62c (patch) | |
tree | 5be91b3ae3e0878bd8eaf3f2ec4c9837e1879990 /drivers/acpi | |
parent | 3a05be7575a46cf3b16abb77e1072afa13307a1b (diff) |
ACPICA: All: const keyword changes across the ACPICA source
ACPICA commit a240cbb93647bddf525b3daf6e9d31b8b9bca34e
Integrated most changes proposed by net_BSD.
>From joerg@net_BSD.org (Joerg Sonnenberger)
ACPICA BZ 732.
Link: https://github.com/acpica/acpica/commit/a240cbb9
Link: https://bugs.acpica.org/show_bug.cgi?id=732
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
25 files changed, 111 insertions, 111 deletions
diff --git a/drivers/acpi/acpica/acdebug.h b/drivers/acpi/acpica/acdebug.h index 993af9eb007a..9e2e080ac9af 100644 --- a/drivers/acpi/acpica/acdebug.h +++ b/drivers/acpi/acpica/acdebug.h | |||
@@ -53,7 +53,7 @@ | |||
53 | #define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */ | 53 | #define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */ |
54 | 54 | ||
55 | struct acpi_db_command_info { | 55 | struct acpi_db_command_info { |
56 | char *name; /* Command Name */ | 56 | const char *name; /* Command Name */ |
57 | u8 min_args; /* Minimum arguments required */ | 57 | u8 min_args; /* Minimum arguments required */ |
58 | }; | 58 | }; |
59 | 59 | ||
@@ -64,7 +64,7 @@ struct acpi_db_command_help { | |||
64 | }; | 64 | }; |
65 | 65 | ||
66 | struct acpi_db_argument_info { | 66 | struct acpi_db_argument_info { |
67 | char *name; /* Argument Name */ | 67 | const char *name; /* Argument Name */ |
68 | }; | 68 | }; |
69 | 69 | ||
70 | struct acpi_db_execute_walk { | 70 | struct acpi_db_execute_walk { |
diff --git a/drivers/acpi/acpica/acglobal.h b/drivers/acpi/acpica/acglobal.h index 54b42a57118e..fded776236e2 100644 --- a/drivers/acpi/acpica/acglobal.h +++ b/drivers/acpi/acpica/acglobal.h | |||
@@ -187,6 +187,8 @@ extern const char *acpi_gbl_sleep_state_names[ACPI_S_STATE_COUNT]; | |||
187 | extern const char *acpi_gbl_lowest_dstate_names[ACPI_NUM_sx_w_METHODS]; | 187 | extern const char *acpi_gbl_lowest_dstate_names[ACPI_NUM_sx_w_METHODS]; |
188 | extern const char *acpi_gbl_highest_dstate_names[ACPI_NUM_sx_d_METHODS]; | 188 | extern const char *acpi_gbl_highest_dstate_names[ACPI_NUM_sx_d_METHODS]; |
189 | extern const char *acpi_gbl_region_types[ACPI_NUM_PREDEFINED_REGIONS]; | 189 | extern const char *acpi_gbl_region_types[ACPI_NUM_PREDEFINED_REGIONS]; |
190 | extern const char acpi_gbl_lower_hex_digits[]; | ||
191 | extern const char acpi_gbl_upper_hex_digits[]; | ||
190 | extern const struct acpi_opcode_info acpi_gbl_aml_op_info[AML_NUM_OPCODES]; | 192 | extern const struct acpi_opcode_info acpi_gbl_aml_op_info[AML_NUM_OPCODES]; |
191 | 193 | ||
192 | #ifdef ACPI_DBG_TRACK_ALLOCATIONS | 194 | #ifdef ACPI_DBG_TRACK_ALLOCATIONS |
diff --git a/drivers/acpi/acpica/acinterp.h b/drivers/acpi/acpica/acinterp.h index bae1a35c345f..8b09d28fe5a8 100644 --- a/drivers/acpi/acpica/acinterp.h +++ b/drivers/acpi/acpica/acinterp.h | |||
@@ -67,7 +67,7 @@ | |||
67 | typedef const struct acpi_exdump_info { | 67 | typedef const struct acpi_exdump_info { |
68 | u8 opcode; | 68 | u8 opcode; |
69 | u8 offset; | 69 | u8 offset; |
70 | char *name; | 70 | const char *name; |
71 | 71 | ||
72 | } acpi_exdump_info; | 72 | } acpi_exdump_info; |
73 | 73 | ||
diff --git a/drivers/acpi/acpica/acnamesp.h b/drivers/acpi/acpica/acnamesp.h index 022d69cb345a..f33a4ba8e0cb 100644 --- a/drivers/acpi/acpica/acnamesp.h +++ b/drivers/acpi/acpica/acnamesp.h | |||
@@ -206,9 +206,10 @@ void acpi_ns_dump_tables(acpi_handle search_base, u32 max_depth); | |||
206 | void acpi_ns_dump_entry(acpi_handle handle, u32 debug_level); | 206 | void acpi_ns_dump_entry(acpi_handle handle, u32 debug_level); |
207 | 207 | ||
208 | void | 208 | void |
209 | acpi_ns_dump_pathname(acpi_handle handle, char *msg, u32 level, u32 component); | 209 | acpi_ns_dump_pathname(acpi_handle handle, |
210 | const char *msg, u32 level, u32 component); | ||
210 | 211 | ||
211 | void acpi_ns_print_pathname(u32 num_segments, char *pathname); | 212 | void acpi_ns_print_pathname(u32 num_segments, const char *pathname); |
212 | 213 | ||
213 | acpi_status | 214 | acpi_status |
214 | acpi_ns_dump_one_object(acpi_handle obj_handle, | 215 | acpi_ns_dump_one_object(acpi_handle obj_handle, |
diff --git a/drivers/acpi/acpica/acparser.h b/drivers/acpi/acpica/acparser.h index 7da639d62416..fc305775c3d7 100644 --- a/drivers/acpi/acpica/acparser.h +++ b/drivers/acpi/acpica/acparser.h | |||
@@ -139,7 +139,7 @@ acpi_ps_complete_final_op(struct acpi_walk_state *walk_state, | |||
139 | */ | 139 | */ |
140 | const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode); | 140 | const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode); |
141 | 141 | ||
142 | char *acpi_ps_get_opcode_name(u16 opcode); | 142 | const char *acpi_ps_get_opcode_name(u16 opcode); |
143 | 143 | ||
144 | u8 acpi_ps_get_argument_count(u32 op_type); | 144 | u8 acpi_ps_get_argument_count(u32 op_type); |
145 | 145 | ||
diff --git a/drivers/acpi/acpica/acresrc.h b/drivers/acpi/acpica/acresrc.h index 5dd58beafa5c..83e9a296c6ee 100644 --- a/drivers/acpi/acpica/acresrc.h +++ b/drivers/acpi/acpica/acresrc.h | |||
@@ -124,7 +124,7 @@ typedef enum { | |||
124 | typedef const struct acpi_rsdump_info { | 124 | typedef const struct acpi_rsdump_info { |
125 | u8 opcode; | 125 | u8 opcode; |
126 | u8 offset; | 126 | u8 offset; |
127 | char *name; | 127 | const char *name; |
128 | const char **pointer; | 128 | const char **pointer; |
129 | 129 | ||
130 | } acpi_rsdump_info; | 130 | } acpi_rsdump_info; |
@@ -209,7 +209,7 @@ acpi_rs_get_prs_method_data(struct acpi_namespace_node *node, | |||
209 | 209 | ||
210 | acpi_status | 210 | acpi_status |
211 | acpi_rs_get_method_data(acpi_handle handle, | 211 | acpi_rs_get_method_data(acpi_handle handle, |
212 | char *path, struct acpi_buffer *ret_buffer); | 212 | const char *path, struct acpi_buffer *ret_buffer); |
213 | 213 | ||
214 | acpi_status | 214 | acpi_status |
215 | acpi_rs_set_srs_method_data(struct acpi_namespace_node *node, | 215 | acpi_rs_set_srs_method_data(struct acpi_namespace_node *node, |
diff --git a/drivers/acpi/acpica/acstruct.h b/drivers/acpi/acpica/acstruct.h index b3b386e0b119..6235642e31d3 100644 --- a/drivers/acpi/acpica/acstruct.h +++ b/drivers/acpi/acpica/acstruct.h | |||
@@ -184,7 +184,7 @@ struct acpi_evaluate_info { | |||
184 | /* The first 3 elements are passed by the caller to acpi_ns_evaluate */ | 184 | /* The first 3 elements are passed by the caller to acpi_ns_evaluate */ |
185 | 185 | ||
186 | struct acpi_namespace_node *prefix_node; /* Input: starting node */ | 186 | struct acpi_namespace_node *prefix_node; /* Input: starting node */ |
187 | char *relative_pathname; /* Input: path relative to prefix_node */ | 187 | const char *relative_pathname; /* Input: path relative to prefix_node */ |
188 | union acpi_operand_object **parameters; /* Input: argument list */ | 188 | union acpi_operand_object **parameters; /* Input: argument list */ |
189 | 189 | ||
190 | struct acpi_namespace_node *node; /* Resolved node (prefix_node:relative_pathname) */ | 190 | struct acpi_namespace_node *node; /* Resolved node (prefix_node:relative_pathname) */ |
diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h index 7422ff7bfb6d..4ff971c4c979 100644 --- a/drivers/acpi/acpica/acutils.h +++ b/drivers/acpi/acpica/acutils.h | |||
@@ -273,7 +273,8 @@ acpi_ut_trace(u32 line_number, | |||
273 | void | 273 | void |
274 | acpi_ut_trace_ptr(u32 line_number, | 274 | acpi_ut_trace_ptr(u32 line_number, |
275 | const char *function_name, | 275 | const char *function_name, |
276 | const char *module_name, u32 component_id, void *pointer); | 276 | const char *module_name, |
277 | u32 component_id, const void *pointer); | ||
277 | 278 | ||
278 | void | 279 | void |
279 | acpi_ut_trace_u32(u32 line_number, | 280 | acpi_ut_trace_u32(u32 line_number, |
@@ -283,7 +284,8 @@ acpi_ut_trace_u32(u32 line_number, | |||
283 | void | 284 | void |
284 | acpi_ut_trace_str(u32 line_number, | 285 | acpi_ut_trace_str(u32 line_number, |
285 | const char *function_name, | 286 | const char *function_name, |
286 | const char *module_name, u32 component_id, char *string); | 287 | const char *module_name, |
288 | u32 component_id, const char *string); | ||
287 | 289 | ||
288 | void | 290 | void |
289 | acpi_ut_exit(u32 line_number, | 291 | acpi_ut_exit(u32 line_number, |
@@ -342,12 +344,12 @@ void acpi_ut_delete_internal_object_list(union acpi_operand_object **obj_list); | |||
342 | */ | 344 | */ |
343 | acpi_status | 345 | acpi_status |
344 | acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node, | 346 | acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node, |
345 | char *path, | 347 | const char *path, |
346 | u32 expected_return_btypes, | 348 | u32 expected_return_btypes, |
347 | union acpi_operand_object **return_desc); | 349 | union acpi_operand_object **return_desc); |
348 | 350 | ||
349 | acpi_status | 351 | acpi_status |
350 | acpi_ut_evaluate_numeric_object(char *object_name, | 352 | acpi_ut_evaluate_numeric_object(const char *object_name, |
351 | struct acpi_namespace_node *device_node, | 353 | struct acpi_namespace_node *device_node, |
352 | u64 *value); | 354 | u64 *value); |
353 | 355 | ||
@@ -533,7 +535,7 @@ void acpi_ut_set_integer_width(u8 revision); | |||
533 | void | 535 | void |
534 | acpi_ut_display_init_pathname(u8 type, | 536 | acpi_ut_display_init_pathname(u8 type, |
535 | struct acpi_namespace_node *obj_handle, | 537 | struct acpi_namespace_node *obj_handle, |
536 | char *path); | 538 | const char *path); |
537 | #endif | 539 | #endif |
538 | 540 | ||
539 | /* | 541 | /* |
@@ -635,7 +637,7 @@ void acpi_ut_dump_allocation_info(void); | |||
635 | void acpi_ut_dump_allocations(u32 component, const char *module); | 637 | void acpi_ut_dump_allocations(u32 component, const char *module); |
636 | 638 | ||
637 | acpi_status | 639 | acpi_status |
638 | acpi_ut_create_list(char *list_name, | 640 | acpi_ut_create_list(const char *list_name, |
639 | u16 object_size, struct acpi_memory_list **return_cache); | 641 | u16 object_size, struct acpi_memory_list **return_cache); |
640 | 642 | ||
641 | #endif /* ACPI_DBG_TRACK_ALLOCATIONS */ | 643 | #endif /* ACPI_DBG_TRACK_ALLOCATIONS */ |
diff --git a/drivers/acpi/acpica/dbinput.c b/drivers/acpi/acpica/dbinput.c index 417c02a89915..f53cb30e0a09 100644 --- a/drivers/acpi/acpica/dbinput.c +++ b/drivers/acpi/acpica/dbinput.c | |||
@@ -57,12 +57,12 @@ static u32 acpi_db_get_line(char *input_buffer); | |||
57 | 57 | ||
58 | static u32 acpi_db_match_command(char *user_command); | 58 | static u32 acpi_db_match_command(char *user_command); |
59 | 59 | ||
60 | static void acpi_db_display_command_info(char *command, u8 display_all); | 60 | static void acpi_db_display_command_info(const char *command, u8 display_all); |
61 | 61 | ||
62 | static void acpi_db_display_help(char *command); | 62 | static void acpi_db_display_help(char *command); |
63 | 63 | ||
64 | static u8 | 64 | static u8 |
65 | acpi_db_match_command_help(char *command, | 65 | acpi_db_match_command_help(const char *command, |
66 | const struct acpi_db_command_help *help); | 66 | const struct acpi_db_command_help *help); |
67 | 67 | ||
68 | /* | 68 | /* |
@@ -348,7 +348,7 @@ static const struct acpi_db_command_help acpi_gbl_db_command_help[] = { | |||
348 | ******************************************************************************/ | 348 | ******************************************************************************/ |
349 | 349 | ||
350 | static u8 | 350 | static u8 |
351 | acpi_db_match_command_help(char *command, | 351 | acpi_db_match_command_help(const char *command, |
352 | const struct acpi_db_command_help *help) | 352 | const struct acpi_db_command_help *help) |
353 | { | 353 | { |
354 | char *invocation = help->invocation; | 354 | char *invocation = help->invocation; |
@@ -402,7 +402,7 @@ acpi_db_match_command_help(char *command, | |||
402 | * | 402 | * |
403 | ******************************************************************************/ | 403 | ******************************************************************************/ |
404 | 404 | ||
405 | static void acpi_db_display_command_info(char *command, u8 display_all) | 405 | static void acpi_db_display_command_info(const char *command, u8 display_all) |
406 | { | 406 | { |
407 | const struct acpi_db_command_help *next; | 407 | const struct acpi_db_command_help *next; |
408 | u8 matched; | 408 | u8 matched; |
@@ -656,8 +656,9 @@ static u32 acpi_db_match_command(char *user_command) | |||
656 | } | 656 | } |
657 | 657 | ||
658 | for (i = CMD_FIRST_VALID; acpi_gbl_db_commands[i].name; i++) { | 658 | for (i = CMD_FIRST_VALID; acpi_gbl_db_commands[i].name; i++) { |
659 | if (strstr(acpi_gbl_db_commands[i].name, user_command) == | 659 | if (strstr |
660 | acpi_gbl_db_commands[i].name) { | 660 | (ACPI_CAST_PTR(char, acpi_gbl_db_commands[i].name), |
661 | user_command) == acpi_gbl_db_commands[i].name) { | ||
661 | return (i); | 662 | return (i); |
662 | } | 663 | } |
663 | } | 664 | } |
diff --git a/drivers/acpi/acpica/dbutils.c b/drivers/acpi/acpica/dbutils.c index b37a2c77b86b..ae80106d1000 100644 --- a/drivers/acpi/acpica/dbutils.c +++ b/drivers/acpi/acpica/dbutils.c | |||
@@ -56,8 +56,6 @@ acpi_status acpi_db_second_pass_parse(union acpi_parse_object *root); | |||
56 | void acpi_db_dump_buffer(u32 address); | 56 | void acpi_db_dump_buffer(u32 address); |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | static char *gbl_hex_to_ascii = "0123456789ABCDEF"; | ||
60 | |||
61 | /******************************************************************************* | 59 | /******************************************************************************* |
62 | * | 60 | * |
63 | * FUNCTION: acpi_db_match_argument | 61 | * FUNCTION: acpi_db_match_argument |
@@ -82,8 +80,9 @@ acpi_db_match_argument(char *user_argument, | |||
82 | } | 80 | } |
83 | 81 | ||
84 | for (i = 0; arguments[i].name; i++) { | 82 | for (i = 0; arguments[i].name; i++) { |
85 | if (strstr(arguments[i].name, user_argument) == | 83 | if (strstr(ACPI_CAST_PTR(char, arguments[i].name), |
86 | arguments[i].name) { | 84 | ACPI_CAST_PTR(char, |
85 | user_argument)) == arguments[i].name) { | ||
87 | return (i); | 86 | return (i); |
88 | } | 87 | } |
89 | } | 88 | } |
@@ -339,7 +338,7 @@ void acpi_db_uint32_to_hex_string(u32 value, char *buffer) | |||
339 | buffer[8] = '\0'; | 338 | buffer[8] = '\0'; |
340 | 339 | ||
341 | for (i = 7; i >= 0; i--) { | 340 | for (i = 7; i >= 0; i--) { |
342 | buffer[i] = gbl_hex_to_ascii[value & 0x0F]; | 341 | buffer[i] = acpi_gbl_upper_hex_digits[value & 0x0F]; |
343 | value = value >> 4; | 342 | value = value >> 4; |
344 | } | 343 | } |
345 | } | 344 | } |
diff --git a/drivers/acpi/acpica/evregion.c b/drivers/acpi/acpica/evregion.c index 63924d1c737a..17d61c6a5b85 100644 --- a/drivers/acpi/acpica/evregion.c +++ b/drivers/acpi/acpica/evregion.c | |||
@@ -538,7 +538,8 @@ acpi_ev_attach_region(union acpi_operand_object *handler_obj, | |||
538 | 538 | ||
539 | void acpi_ev_associate_reg_method(union acpi_operand_object *region_obj) | 539 | void acpi_ev_associate_reg_method(union acpi_operand_object *region_obj) |
540 | { | 540 | { |
541 | acpi_name *reg_name_ptr = (acpi_name *) METHOD_NAME__REG; | 541 | const acpi_name *reg_name_ptr = |
542 | ACPI_CAST_PTR(acpi_name, METHOD_NAME__REG); | ||
542 | struct acpi_namespace_node *method_node; | 543 | struct acpi_namespace_node *method_node; |
543 | struct acpi_namespace_node *node; | 544 | struct acpi_namespace_node *node; |
544 | union acpi_operand_object *region_obj2; | 545 | union acpi_operand_object *region_obj2; |
diff --git a/drivers/acpi/acpica/exdump.c b/drivers/acpi/acpica/exdump.c index ee30974b245a..fce6b2e10209 100644 --- a/drivers/acpi/acpica/exdump.c +++ b/drivers/acpi/acpica/exdump.c | |||
@@ -55,9 +55,9 @@ ACPI_MODULE_NAME("exdump") | |||
55 | */ | 55 | */ |
56 | #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) | 56 | #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) |
57 | /* Local prototypes */ | 57 | /* Local prototypes */ |
58 | static void acpi_ex_out_string(char *title, char *value); | 58 | static void acpi_ex_out_string(const char *title, const char *value); |
59 | 59 | ||
60 | static void acpi_ex_out_pointer(char *title, void *value); | 60 | static void acpi_ex_out_pointer(const char *title, const void *value); |
61 | 61 | ||
62 | static void | 62 | static void |
63 | acpi_ex_dump_object(union acpi_operand_object *obj_desc, | 63 | acpi_ex_dump_object(union acpi_operand_object *obj_desc, |
@@ -365,8 +365,7 @@ acpi_ex_dump_object(union acpi_operand_object *obj_desc, | |||
365 | struct acpi_exdump_info *info) | 365 | struct acpi_exdump_info *info) |
366 | { | 366 | { |
367 | u8 *target; | 367 | u8 *target; |
368 | char *name; | 368 | const char *name; |
369 | const char *reference_name; | ||
370 | u8 count; | 369 | u8 count; |
371 | union acpi_operand_object *start; | 370 | union acpi_operand_object *start; |
372 | union acpi_operand_object *data = NULL; | 371 | union acpi_operand_object *data = NULL; |
@@ -459,9 +458,9 @@ acpi_ex_dump_object(union acpi_operand_object *obj_desc, | |||
459 | 458 | ||
460 | case ACPI_EXD_REFERENCE: | 459 | case ACPI_EXD_REFERENCE: |
461 | 460 | ||
462 | reference_name = acpi_ut_get_reference_name(obj_desc); | ||
463 | acpi_ex_out_string("Class Name", | 461 | acpi_ex_out_string("Class Name", |
464 | ACPI_CAST_PTR(char, reference_name)); | 462 | acpi_ut_get_reference_name |
463 | (obj_desc)); | ||
465 | acpi_ex_dump_reference_obj(obj_desc); | 464 | acpi_ex_dump_reference_obj(obj_desc); |
466 | break; | 465 | break; |
467 | 466 | ||
@@ -934,12 +933,12 @@ acpi_ex_dump_operands(union acpi_operand_object **operands, | |||
934 | * | 933 | * |
935 | ******************************************************************************/ | 934 | ******************************************************************************/ |
936 | 935 | ||
937 | static void acpi_ex_out_string(char *title, char *value) | 936 | static void acpi_ex_out_string(const char *title, const char *value) |
938 | { | 937 | { |
939 | acpi_os_printf("%20s : %s\n", title, value); | 938 | acpi_os_printf("%20s : %s\n", title, value); |
940 | } | 939 | } |
941 | 940 | ||
942 | static void acpi_ex_out_pointer(char *title, void *value) | 941 | static void acpi_ex_out_pointer(const char *title, const void *value) |
943 | { | 942 | { |
944 | acpi_os_printf("%20s : %p\n", title, value); | 943 | acpi_os_printf("%20s : %p\n", title, value); |
945 | } | 944 | } |
diff --git a/drivers/acpi/acpica/hwxface.c b/drivers/acpi/acpica/hwxface.c index a01ddb393a55..7caaaf3b8787 100644 --- a/drivers/acpi/acpica/hwxface.c +++ b/drivers/acpi/acpica/hwxface.c | |||
@@ -504,9 +504,7 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 *sleep_type_a, u8 *sleep_type_b) | |||
504 | * Evaluate the \_Sx namespace object containing the register values | 504 | * Evaluate the \_Sx namespace object containing the register values |
505 | * for this state | 505 | * for this state |
506 | */ | 506 | */ |
507 | info->relative_pathname = ACPI_CAST_PTR(char, | 507 | info->relative_pathname = acpi_gbl_sleep_state_names[sleep_state]; |
508 | acpi_gbl_sleep_state_names | ||
509 | [sleep_state]); | ||
510 | 508 | ||
511 | status = acpi_ns_evaluate(info); | 509 | status = acpi_ns_evaluate(info); |
512 | if (ACPI_FAILURE(status)) { | 510 | if (ACPI_FAILURE(status)) { |
diff --git a/drivers/acpi/acpica/nsaccess.c b/drivers/acpi/acpica/nsaccess.c index 697af810e5ad..426a6307eafa 100644 --- a/drivers/acpi/acpica/nsaccess.c +++ b/drivers/acpi/acpica/nsaccess.c | |||
@@ -107,9 +107,10 @@ acpi_status acpi_ns_root_initialize(void) | |||
107 | continue; | 107 | continue; |
108 | } | 108 | } |
109 | 109 | ||
110 | status = acpi_ns_lookup(NULL, init_val->name, init_val->type, | 110 | status = |
111 | ACPI_IMODE_LOAD_PASS2, | 111 | acpi_ns_lookup(NULL, (char *)init_val->name, init_val->type, |
112 | ACPI_NS_NO_UPSEARCH, NULL, &new_node); | 112 | ACPI_IMODE_LOAD_PASS2, ACPI_NS_NO_UPSEARCH, |
113 | NULL, &new_node); | ||
113 | if (ACPI_FAILURE(status)) { | 114 | if (ACPI_FAILURE(status)) { |
114 | ACPI_EXCEPTION((AE_INFO, status, | 115 | ACPI_EXCEPTION((AE_INFO, status, |
115 | "Could not create predefined name %s", | 116 | "Could not create predefined name %s", |
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index af236e348294..ce1f8605d996 100644 --- a/drivers/acpi/acpica/nsdump.c +++ b/drivers/acpi/acpica/nsdump.c | |||
@@ -81,7 +81,7 @@ acpi_ns_get_max_depth(acpi_handle obj_handle, | |||
81 | * | 81 | * |
82 | ******************************************************************************/ | 82 | ******************************************************************************/ |
83 | 83 | ||
84 | void acpi_ns_print_pathname(u32 num_segments, char *pathname) | 84 | void acpi_ns_print_pathname(u32 num_segments, const char *pathname) |
85 | { | 85 | { |
86 | u32 i; | 86 | u32 i; |
87 | 87 | ||
@@ -114,6 +114,9 @@ void acpi_ns_print_pathname(u32 num_segments, char *pathname) | |||
114 | acpi_os_printf("]\n"); | 114 | acpi_os_printf("]\n"); |
115 | } | 115 | } |
116 | 116 | ||
117 | #ifdef ACPI_OBSOLETE_FUNCTIONS | ||
118 | /* Not used at this time, perhaps later */ | ||
119 | |||
117 | /******************************************************************************* | 120 | /******************************************************************************* |
118 | * | 121 | * |
119 | * FUNCTION: acpi_ns_dump_pathname | 122 | * FUNCTION: acpi_ns_dump_pathname |
@@ -131,7 +134,8 @@ void acpi_ns_print_pathname(u32 num_segments, char *pathname) | |||
131 | ******************************************************************************/ | 134 | ******************************************************************************/ |
132 | 135 | ||
133 | void | 136 | void |
134 | acpi_ns_dump_pathname(acpi_handle handle, char *msg, u32 level, u32 component) | 137 | acpi_ns_dump_pathname(acpi_handle handle, |
138 | const char *msg, u32 level, u32 component) | ||
135 | { | 139 | { |
136 | 140 | ||
137 | ACPI_FUNCTION_TRACE(ns_dump_pathname); | 141 | ACPI_FUNCTION_TRACE(ns_dump_pathname); |
@@ -148,6 +152,7 @@ acpi_ns_dump_pathname(acpi_handle handle, char *msg, u32 level, u32 component) | |||
148 | acpi_os_printf("\n"); | 152 | acpi_os_printf("\n"); |
149 | return_VOID; | 153 | return_VOID; |
150 | } | 154 | } |
155 | #endif | ||
151 | 156 | ||
152 | /******************************************************************************* | 157 | /******************************************************************************* |
153 | * | 158 | * |
diff --git a/drivers/acpi/acpica/psopinfo.c b/drivers/acpi/acpica/psopinfo.c index cfd17a4f2e91..177b05b239b7 100644 --- a/drivers/acpi/acpica/psopinfo.c +++ b/drivers/acpi/acpica/psopinfo.c | |||
@@ -158,7 +158,7 @@ const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) | |||
158 | * | 158 | * |
159 | ******************************************************************************/ | 159 | ******************************************************************************/ |
160 | 160 | ||
161 | char *acpi_ps_get_opcode_name(u16 opcode) | 161 | const char *acpi_ps_get_opcode_name(u16 opcode) |
162 | { | 162 | { |
163 | #if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT) | 163 | #if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT) |
164 | 164 | ||
diff --git a/drivers/acpi/acpica/rsdump.c b/drivers/acpi/acpica/rsdump.c index 23a17c86d5a9..5ffdb5602d8d 100644 --- a/drivers/acpi/acpica/rsdump.c +++ b/drivers/acpi/acpica/rsdump.c | |||
@@ -52,17 +52,17 @@ ACPI_MODULE_NAME("rsdump") | |||
52 | * All functions in this module are used by the AML Debugger only | 52 | * All functions in this module are used by the AML Debugger only |
53 | */ | 53 | */ |
54 | /* Local prototypes */ | 54 | /* Local prototypes */ |
55 | static void acpi_rs_out_string(char *title, char *value); | 55 | static void acpi_rs_out_string(const char *title, const char *value); |
56 | 56 | ||
57 | static void acpi_rs_out_integer8(char *title, u8 value); | 57 | static void acpi_rs_out_integer8(const char *title, u8 value); |
58 | 58 | ||
59 | static void acpi_rs_out_integer16(char *title, u16 value); | 59 | static void acpi_rs_out_integer16(const char *title, u16 value); |
60 | 60 | ||
61 | static void acpi_rs_out_integer32(char *title, u32 value); | 61 | static void acpi_rs_out_integer32(const char *title, u32 value); |
62 | 62 | ||
63 | static void acpi_rs_out_integer64(char *title, u64 value); | 63 | static void acpi_rs_out_integer64(const char *title, u64 value); |
64 | 64 | ||
65 | static void acpi_rs_out_title(char *title); | 65 | static void acpi_rs_out_title(const char *title); |
66 | 66 | ||
67 | static void acpi_rs_dump_byte_list(u16 length, u8 *data); | 67 | static void acpi_rs_dump_byte_list(u16 length, u8 *data); |
68 | 68 | ||
@@ -208,7 +208,7 @@ acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table) | |||
208 | { | 208 | { |
209 | u8 *target = NULL; | 209 | u8 *target = NULL; |
210 | u8 *previous_target; | 210 | u8 *previous_target; |
211 | char *name; | 211 | const char *name; |
212 | u8 count; | 212 | u8 count; |
213 | 213 | ||
214 | /* First table entry must contain the table length (# of table entries) */ | 214 | /* First table entry must contain the table length (# of table entries) */ |
@@ -248,10 +248,8 @@ acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table) | |||
248 | case ACPI_RSD_UINT8: | 248 | case ACPI_RSD_UINT8: |
249 | 249 | ||
250 | if (table->pointer) { | 250 | if (table->pointer) { |
251 | acpi_rs_out_string(name, ACPI_CAST_PTR(char, | 251 | acpi_rs_out_string(name, |
252 | table-> | 252 | table->pointer[*target]); |
253 | pointer | ||
254 | [*target])); | ||
255 | } else { | 253 | } else { |
256 | acpi_rs_out_integer8(name, ACPI_GET8(target)); | 254 | acpi_rs_out_integer8(name, ACPI_GET8(target)); |
257 | } | 255 | } |
@@ -276,26 +274,20 @@ acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table) | |||
276 | 274 | ||
277 | case ACPI_RSD_1BITFLAG: | 275 | case ACPI_RSD_1BITFLAG: |
278 | 276 | ||
279 | acpi_rs_out_string(name, ACPI_CAST_PTR(char, | 277 | acpi_rs_out_string(name, |
280 | table-> | 278 | table->pointer[*target & 0x01]); |
281 | pointer[*target & | ||
282 | 0x01])); | ||
283 | break; | 279 | break; |
284 | 280 | ||
285 | case ACPI_RSD_2BITFLAG: | 281 | case ACPI_RSD_2BITFLAG: |
286 | 282 | ||
287 | acpi_rs_out_string(name, ACPI_CAST_PTR(char, | 283 | acpi_rs_out_string(name, |
288 | table-> | 284 | table->pointer[*target & 0x03]); |
289 | pointer[*target & | ||
290 | 0x03])); | ||
291 | break; | 285 | break; |
292 | 286 | ||
293 | case ACPI_RSD_3BITFLAG: | 287 | case ACPI_RSD_3BITFLAG: |
294 | 288 | ||
295 | acpi_rs_out_string(name, ACPI_CAST_PTR(char, | 289 | acpi_rs_out_string(name, |
296 | table-> | 290 | table->pointer[*target & 0x07]); |
297 | pointer[*target & | ||
298 | 0x07])); | ||
299 | break; | 291 | break; |
300 | 292 | ||
301 | case ACPI_RSD_SHORTLIST: | 293 | case ACPI_RSD_SHORTLIST: |
@@ -481,7 +473,7 @@ static void acpi_rs_dump_address_common(union acpi_resource_data *resource) | |||
481 | * | 473 | * |
482 | ******************************************************************************/ | 474 | ******************************************************************************/ |
483 | 475 | ||
484 | static void acpi_rs_out_string(char *title, char *value) | 476 | static void acpi_rs_out_string(const char *title, const char *value) |
485 | { | 477 | { |
486 | 478 | ||
487 | acpi_os_printf("%27s : %s", title, value); | 479 | acpi_os_printf("%27s : %s", title, value); |
@@ -491,30 +483,30 @@ static void acpi_rs_out_string(char *title, char *value) | |||
491 | acpi_os_printf("\n"); | 483 | acpi_os_printf("\n"); |
492 | } | 484 | } |
493 | 485 | ||
494 | static void acpi_rs_out_integer8(char *title, u8 value) | 486 | static void acpi_rs_out_integer8(const char *title, u8 value) |
495 | { | 487 | { |
496 | acpi_os_printf("%27s : %2.2X\n", title, value); | 488 | acpi_os_printf("%27s : %2.2X\n", title, value); |
497 | } | 489 | } |
498 | 490 | ||
499 | static void acpi_rs_out_integer16(char *title, u16 value) | 491 | static void acpi_rs_out_integer16(const char *title, u16 value) |
500 | { | 492 | { |
501 | 493 | ||
502 | acpi_os_printf("%27s : %4.4X\n", title, value); | 494 | acpi_os_printf("%27s : %4.4X\n", title, value); |
503 | } | 495 | } |
504 | 496 | ||
505 | static void acpi_rs_out_integer32(char *title, u32 value) | 497 | static void acpi_rs_out_integer32(const char *title, u32 value) |
506 | { | 498 | { |
507 | 499 | ||
508 | acpi_os_printf("%27s : %8.8X\n", title, value); | 500 | acpi_os_printf("%27s : %8.8X\n", title, value); |
509 | } | 501 | } |
510 | 502 | ||
511 | static void acpi_rs_out_integer64(char *title, u64 value) | 503 | static void acpi_rs_out_integer64(const char *title, u64 value) |
512 | { | 504 | { |
513 | 505 | ||
514 | acpi_os_printf("%27s : %8.8X%8.8X\n", title, ACPI_FORMAT_UINT64(value)); | 506 | acpi_os_printf("%27s : %8.8X%8.8X\n", title, ACPI_FORMAT_UINT64(value)); |
515 | } | 507 | } |
516 | 508 | ||
517 | static void acpi_rs_out_title(char *title) | 509 | static void acpi_rs_out_title(const char *title) |
518 | { | 510 | { |
519 | 511 | ||
520 | acpi_os_printf("%27s : ", title); | 512 | acpi_os_printf("%27s : ", title); |
diff --git a/drivers/acpi/acpica/rsutils.c b/drivers/acpi/acpica/rsutils.c index cf06e49cd91c..e0d60239d6ff 100644 --- a/drivers/acpi/acpica/rsutils.c +++ b/drivers/acpi/acpica/rsutils.c | |||
@@ -671,7 +671,7 @@ acpi_rs_get_aei_method_data(struct acpi_namespace_node *node, | |||
671 | 671 | ||
672 | acpi_status | 672 | acpi_status |
673 | acpi_rs_get_method_data(acpi_handle handle, | 673 | acpi_rs_get_method_data(acpi_handle handle, |
674 | char *path, struct acpi_buffer *ret_buffer) | 674 | const char *path, struct acpi_buffer *ret_buffer) |
675 | { | 675 | { |
676 | union acpi_operand_object *obj_desc; | 676 | union acpi_operand_object *obj_desc; |
677 | acpi_status status; | 677 | acpi_status status; |
diff --git a/drivers/acpi/acpica/tbfadt.c b/drivers/acpi/acpica/tbfadt.c index f63f3fd0d932..635d9513994d 100644 --- a/drivers/acpi/acpica/tbfadt.c +++ b/drivers/acpi/acpica/tbfadt.c | |||
@@ -53,7 +53,7 @@ static void | |||
53 | acpi_tb_init_generic_address(struct acpi_generic_address *generic_address, | 53 | acpi_tb_init_generic_address(struct acpi_generic_address *generic_address, |
54 | u8 space_id, | 54 | u8 space_id, |
55 | u8 byte_width, | 55 | u8 byte_width, |
56 | u64 address, char *register_name, u8 flags); | 56 | u64 address, const char *register_name, u8 flags); |
57 | 57 | ||
58 | static void acpi_tb_convert_fadt(void); | 58 | static void acpi_tb_convert_fadt(void); |
59 | 59 | ||
@@ -65,7 +65,7 @@ acpi_tb_select_address(char *register_name, u32 address32, u64 address64); | |||
65 | /* Table for conversion of FADT to common internal format and FADT validation */ | 65 | /* Table for conversion of FADT to common internal format and FADT validation */ |
66 | 66 | ||
67 | typedef struct acpi_fadt_info { | 67 | typedef struct acpi_fadt_info { |
68 | char *name; | 68 | const char *name; |
69 | u16 address64; | 69 | u16 address64; |
70 | u16 address32; | 70 | u16 address32; |
71 | u16 length; | 71 | u16 length; |
@@ -192,7 +192,7 @@ static void | |||
192 | acpi_tb_init_generic_address(struct acpi_generic_address *generic_address, | 192 | acpi_tb_init_generic_address(struct acpi_generic_address *generic_address, |
193 | u8 space_id, | 193 | u8 space_id, |
194 | u8 byte_width, | 194 | u8 byte_width, |
195 | u64 address, char *register_name, u8 flags) | 195 | u64 address, const char *register_name, u8 flags) |
196 | { | 196 | { |
197 | u8 bit_width; | 197 | u8 bit_width; |
198 | 198 | ||
@@ -468,7 +468,7 @@ void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) | |||
468 | 468 | ||
469 | static void acpi_tb_convert_fadt(void) | 469 | static void acpi_tb_convert_fadt(void) |
470 | { | 470 | { |
471 | char *name; | 471 | const char *name; |
472 | struct acpi_generic_address *address64; | 472 | struct acpi_generic_address *address64; |
473 | u32 address32; | 473 | u32 address32; |
474 | u8 length; | 474 | u8 length; |
diff --git a/drivers/acpi/acpica/utdebug.c b/drivers/acpi/acpica/utdebug.c index 1cfc5f69b033..574422205005 100644 --- a/drivers/acpi/acpica/utdebug.c +++ b/drivers/acpi/acpica/utdebug.c | |||
@@ -51,13 +51,9 @@ | |||
51 | ACPI_MODULE_NAME("utdebug") | 51 | ACPI_MODULE_NAME("utdebug") |
52 | 52 | ||
53 | #ifdef ACPI_DEBUG_OUTPUT | 53 | #ifdef ACPI_DEBUG_OUTPUT |
54 | static acpi_thread_id acpi_gbl_prev_thread_id = (acpi_thread_id) 0xFFFFFFFF; | 54 | static acpi_thread_id acpi_gbl_previous_thread_id = (acpi_thread_id) 0xFFFFFFFF; |
55 | static char *acpi_gbl_fn_entry_str = "----Entry"; | 55 | static const char *acpi_gbl_function_entry_prefix = "----Entry"; |
56 | static char *acpi_gbl_fn_exit_str = "----Exit-"; | 56 | static const char *acpi_gbl_function_exit_prefix = "----Exit-"; |
57 | |||
58 | /* Local prototypes */ | ||
59 | |||
60 | static const char *acpi_ut_trim_function_name(const char *function_name); | ||
61 | 57 | ||
62 | /******************************************************************************* | 58 | /******************************************************************************* |
63 | * | 59 | * |
@@ -178,14 +174,14 @@ acpi_debug_print(u32 requested_debug_level, | |||
178 | * Thread tracking and context switch notification | 174 | * Thread tracking and context switch notification |
179 | */ | 175 | */ |
180 | thread_id = acpi_os_get_thread_id(); | 176 | thread_id = acpi_os_get_thread_id(); |
181 | if (thread_id != acpi_gbl_prev_thread_id) { | 177 | if (thread_id != acpi_gbl_previous_thread_id) { |
182 | if (ACPI_LV_THREADS & acpi_dbg_level) { | 178 | if (ACPI_LV_THREADS & acpi_dbg_level) { |
183 | acpi_os_printf | 179 | acpi_os_printf |
184 | ("\n**** Context Switch from TID %u to TID %u ****\n\n", | 180 | ("\n**** Context Switch from TID %u to TID %u ****\n\n", |
185 | (u32)acpi_gbl_prev_thread_id, (u32)thread_id); | 181 | (u32)acpi_gbl_previous_thread_id, (u32)thread_id); |
186 | } | 182 | } |
187 | 183 | ||
188 | acpi_gbl_prev_thread_id = thread_id; | 184 | acpi_gbl_previous_thread_id = thread_id; |
189 | acpi_gbl_nesting_level = 0; | 185 | acpi_gbl_nesting_level = 0; |
190 | } | 186 | } |
191 | 187 | ||
@@ -287,7 +283,8 @@ acpi_ut_trace(u32 line_number, | |||
287 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { | 283 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { |
288 | acpi_debug_print(ACPI_LV_FUNCTIONS, | 284 | acpi_debug_print(ACPI_LV_FUNCTIONS, |
289 | line_number, function_name, module_name, | 285 | line_number, function_name, module_name, |
290 | component_id, "%s\n", acpi_gbl_fn_entry_str); | 286 | component_id, "%s\n", |
287 | acpi_gbl_function_entry_prefix); | ||
291 | } | 288 | } |
292 | } | 289 | } |
293 | 290 | ||
@@ -312,7 +309,8 @@ ACPI_EXPORT_SYMBOL(acpi_ut_trace) | |||
312 | void | 309 | void |
313 | acpi_ut_trace_ptr(u32 line_number, | 310 | acpi_ut_trace_ptr(u32 line_number, |
314 | const char *function_name, | 311 | const char *function_name, |
315 | const char *module_name, u32 component_id, void *pointer) | 312 | const char *module_name, |
313 | u32 component_id, const void *pointer) | ||
316 | { | 314 | { |
317 | 315 | ||
318 | acpi_gbl_nesting_level++; | 316 | acpi_gbl_nesting_level++; |
@@ -323,8 +321,8 @@ acpi_ut_trace_ptr(u32 line_number, | |||
323 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { | 321 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { |
324 | acpi_debug_print(ACPI_LV_FUNCTIONS, | 322 | acpi_debug_print(ACPI_LV_FUNCTIONS, |
325 | line_number, function_name, module_name, | 323 | line_number, function_name, module_name, |
326 | component_id, "%s %p\n", acpi_gbl_fn_entry_str, | 324 | component_id, "%s %p\n", |
327 | pointer); | 325 | acpi_gbl_function_entry_prefix, pointer); |
328 | } | 326 | } |
329 | } | 327 | } |
330 | 328 | ||
@@ -348,7 +346,7 @@ acpi_ut_trace_ptr(u32 line_number, | |||
348 | void | 346 | void |
349 | acpi_ut_trace_str(u32 line_number, | 347 | acpi_ut_trace_str(u32 line_number, |
350 | const char *function_name, | 348 | const char *function_name, |
351 | const char *module_name, u32 component_id, char *string) | 349 | const char *module_name, u32 component_id, const char *string) |
352 | { | 350 | { |
353 | 351 | ||
354 | acpi_gbl_nesting_level++; | 352 | acpi_gbl_nesting_level++; |
@@ -359,8 +357,8 @@ acpi_ut_trace_str(u32 line_number, | |||
359 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { | 357 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { |
360 | acpi_debug_print(ACPI_LV_FUNCTIONS, | 358 | acpi_debug_print(ACPI_LV_FUNCTIONS, |
361 | line_number, function_name, module_name, | 359 | line_number, function_name, module_name, |
362 | component_id, "%s %s\n", acpi_gbl_fn_entry_str, | 360 | component_id, "%s %s\n", |
363 | string); | 361 | acpi_gbl_function_entry_prefix, string); |
364 | } | 362 | } |
365 | } | 363 | } |
366 | 364 | ||
@@ -396,7 +394,7 @@ acpi_ut_trace_u32(u32 line_number, | |||
396 | acpi_debug_print(ACPI_LV_FUNCTIONS, | 394 | acpi_debug_print(ACPI_LV_FUNCTIONS, |
397 | line_number, function_name, module_name, | 395 | line_number, function_name, module_name, |
398 | component_id, "%s %08X\n", | 396 | component_id, "%s %08X\n", |
399 | acpi_gbl_fn_entry_str, integer); | 397 | acpi_gbl_function_entry_prefix, integer); |
400 | } | 398 | } |
401 | } | 399 | } |
402 | 400 | ||
@@ -427,7 +425,8 @@ acpi_ut_exit(u32 line_number, | |||
427 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { | 425 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { |
428 | acpi_debug_print(ACPI_LV_FUNCTIONS, | 426 | acpi_debug_print(ACPI_LV_FUNCTIONS, |
429 | line_number, function_name, module_name, | 427 | line_number, function_name, module_name, |
430 | component_id, "%s\n", acpi_gbl_fn_exit_str); | 428 | component_id, "%s\n", |
429 | acpi_gbl_function_exit_prefix); | ||
431 | } | 430 | } |
432 | 431 | ||
433 | if (acpi_gbl_nesting_level) { | 432 | if (acpi_gbl_nesting_level) { |
@@ -467,14 +466,14 @@ acpi_ut_status_exit(u32 line_number, | |||
467 | acpi_debug_print(ACPI_LV_FUNCTIONS, | 466 | acpi_debug_print(ACPI_LV_FUNCTIONS, |
468 | line_number, function_name, | 467 | line_number, function_name, |
469 | module_name, component_id, "%s %s\n", | 468 | module_name, component_id, "%s %s\n", |
470 | acpi_gbl_fn_exit_str, | 469 | acpi_gbl_function_exit_prefix, |
471 | acpi_format_exception(status)); | 470 | acpi_format_exception(status)); |
472 | } else { | 471 | } else { |
473 | acpi_debug_print(ACPI_LV_FUNCTIONS, | 472 | acpi_debug_print(ACPI_LV_FUNCTIONS, |
474 | line_number, function_name, | 473 | line_number, function_name, |
475 | module_name, component_id, | 474 | module_name, component_id, |
476 | "%s ****Exception****: %s\n", | 475 | "%s ****Exception****: %s\n", |
477 | acpi_gbl_fn_exit_str, | 476 | acpi_gbl_function_exit_prefix, |
478 | acpi_format_exception(status)); | 477 | acpi_format_exception(status)); |
479 | } | 478 | } |
480 | } | 479 | } |
@@ -514,7 +513,7 @@ acpi_ut_value_exit(u32 line_number, | |||
514 | acpi_debug_print(ACPI_LV_FUNCTIONS, | 513 | acpi_debug_print(ACPI_LV_FUNCTIONS, |
515 | line_number, function_name, module_name, | 514 | line_number, function_name, module_name, |
516 | component_id, "%s %8.8X%8.8X\n", | 515 | component_id, "%s %8.8X%8.8X\n", |
517 | acpi_gbl_fn_exit_str, | 516 | acpi_gbl_function_exit_prefix, |
518 | ACPI_FORMAT_UINT64(value)); | 517 | ACPI_FORMAT_UINT64(value)); |
519 | } | 518 | } |
520 | 519 | ||
@@ -552,8 +551,8 @@ acpi_ut_ptr_exit(u32 line_number, | |||
552 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { | 551 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { |
553 | acpi_debug_print(ACPI_LV_FUNCTIONS, | 552 | acpi_debug_print(ACPI_LV_FUNCTIONS, |
554 | line_number, function_name, module_name, | 553 | line_number, function_name, module_name, |
555 | component_id, "%s %p\n", acpi_gbl_fn_exit_str, | 554 | component_id, "%s %p\n", |
556 | ptr); | 555 | acpi_gbl_function_exit_prefix, ptr); |
557 | } | 556 | } |
558 | 557 | ||
559 | if (acpi_gbl_nesting_level) { | 558 | if (acpi_gbl_nesting_level) { |
diff --git a/drivers/acpi/acpica/uteval.c b/drivers/acpi/acpica/uteval.c index 17b9f3e6e1e1..7bad13f2e518 100644 --- a/drivers/acpi/acpica/uteval.c +++ b/drivers/acpi/acpica/uteval.c | |||
@@ -69,7 +69,7 @@ ACPI_MODULE_NAME("uteval") | |||
69 | 69 | ||
70 | acpi_status | 70 | acpi_status |
71 | acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node, | 71 | acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node, |
72 | char *path, | 72 | const char *path, |
73 | u32 expected_return_btypes, | 73 | u32 expected_return_btypes, |
74 | union acpi_operand_object **return_desc) | 74 | union acpi_operand_object **return_desc) |
75 | { | 75 | { |
@@ -204,7 +204,7 @@ cleanup: | |||
204 | ******************************************************************************/ | 204 | ******************************************************************************/ |
205 | 205 | ||
206 | acpi_status | 206 | acpi_status |
207 | acpi_ut_evaluate_numeric_object(char *object_name, | 207 | acpi_ut_evaluate_numeric_object(const char *object_name, |
208 | struct acpi_namespace_node *device_node, | 208 | struct acpi_namespace_node *device_node, |
209 | u64 *value) | 209 | u64 *value) |
210 | { | 210 | { |
diff --git a/drivers/acpi/acpica/utglobal.c b/drivers/acpi/acpica/utglobal.c index d45899c17d4e..dd3fd7f97f8e 100644 --- a/drivers/acpi/acpica/utglobal.c +++ b/drivers/acpi/acpica/utglobal.c | |||
@@ -80,6 +80,11 @@ const char *acpi_gbl_highest_dstate_names[ACPI_NUM_sx_d_METHODS] = { | |||
80 | "_S4D" | 80 | "_S4D" |
81 | }; | 81 | }; |
82 | 82 | ||
83 | /* Hex-to-ascii */ | ||
84 | |||
85 | const char acpi_gbl_lower_hex_digits[] = "0123456789abcdef"; | ||
86 | const char acpi_gbl_upper_hex_digits[] = "0123456789ABCDEF"; | ||
87 | |||
83 | /******************************************************************************* | 88 | /******************************************************************************* |
84 | * | 89 | * |
85 | * Namespace globals | 90 | * Namespace globals |
diff --git a/drivers/acpi/acpica/utmisc.c b/drivers/acpi/acpica/utmisc.c index d938c27cc6cf..389de3bd1ff1 100644 --- a/drivers/acpi/acpica/utmisc.c +++ b/drivers/acpi/acpica/utmisc.c | |||
@@ -361,7 +361,7 @@ acpi_ut_walk_package_tree(union acpi_operand_object *source_object, | |||
361 | void | 361 | void |
362 | acpi_ut_display_init_pathname(u8 type, | 362 | acpi_ut_display_init_pathname(u8 type, |
363 | struct acpi_namespace_node *obj_handle, | 363 | struct acpi_namespace_node *obj_handle, |
364 | char *path) | 364 | const char *path) |
365 | { | 365 | { |
366 | acpi_status status; | 366 | acpi_status status; |
367 | struct acpi_buffer buffer; | 367 | struct acpi_buffer buffer; |
diff --git a/drivers/acpi/acpica/utprint.c b/drivers/acpi/acpica/utprint.c index 8c218ad787cd..208d71aa9f50 100644 --- a/drivers/acpi/acpica/utprint.c +++ b/drivers/acpi/acpica/utprint.c | |||
@@ -67,11 +67,6 @@ static char *acpi_ut_format_number(char *string, | |||
67 | 67 | ||
68 | static char *acpi_ut_put_number(char *string, u64 number, u8 base, u8 upper); | 68 | static char *acpi_ut_put_number(char *string, u64 number, u8 base, u8 upper); |
69 | 69 | ||
70 | /* Module globals */ | ||
71 | |||
72 | static const char acpi_gbl_lower_hex_digits[] = "0123456789abcdef"; | ||
73 | static const char acpi_gbl_upper_hex_digits[] = "0123456789ABCDEF"; | ||
74 | |||
75 | /******************************************************************************* | 70 | /******************************************************************************* |
76 | * | 71 | * |
77 | * FUNCTION: acpi_ut_bound_string_length | 72 | * FUNCTION: acpi_ut_bound_string_length |
diff --git a/drivers/acpi/acpica/uttrack.c b/drivers/acpi/acpica/uttrack.c index 60c406a8efcb..0df07dfa53b6 100644 --- a/drivers/acpi/acpica/uttrack.c +++ b/drivers/acpi/acpica/uttrack.c | |||
@@ -90,7 +90,7 @@ acpi_ut_remove_allocation(struct acpi_debug_mem_block *address, | |||
90 | ******************************************************************************/ | 90 | ******************************************************************************/ |
91 | 91 | ||
92 | acpi_status | 92 | acpi_status |
93 | acpi_ut_create_list(char *list_name, | 93 | acpi_ut_create_list(const char *list_name, |
94 | u16 object_size, struct acpi_memory_list **return_cache) | 94 | u16 object_size, struct acpi_memory_list **return_cache) |
95 | { | 95 | { |
96 | struct acpi_memory_list *cache; | 96 | struct acpi_memory_list *cache; |