diff options
author | Lv Zheng <lv.zheng@intel.com> | 2015-04-12 23:49:39 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-04-14 08:51:52 -0400 |
commit | 6306bf886222f382d59bbb8b72bf6996cbba1f6e (patch) | |
tree | dfc45f9a5b595bf37564ea0448f07e0629b65148 /drivers/acpi/acpica | |
parent | 76cffa79bd7f139a8f16d4e7969bf7891fe6f901 (diff) |
ACPICA: Utilities: Correct conditional compilation definitions.
ACPICA commit 9a5982afbebc56289c4834b5f6dac87e0f04af14
Some conditional compilation definitions are wrong across header and source
files. This patch corrects them for the utilities component.
Link: https://github.com/acpica/acpica/commit/9a5982af
Reported-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r-- | drivers/acpi/acpica/acutils.h | 14 | ||||
-rw-r--r-- | drivers/acpi/acpica/utmisc.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/utuuid.c | 2 |
3 files changed, 16 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h index 04f4c319b2c5..2b3c5bd222f1 100644 --- a/drivers/acpi/acpica/acutils.h +++ b/drivers/acpi/acpica/acutils.h | |||
@@ -502,6 +502,9 @@ const union acpi_predefined_info *acpi_ut_get_next_predefined_method(const union | |||
502 | 502 | ||
503 | const union acpi_predefined_info *acpi_ut_match_predefined_method(char *name); | 503 | const union acpi_predefined_info *acpi_ut_match_predefined_method(char *name); |
504 | 504 | ||
505 | void acpi_ut_get_expected_return_types(char *buffer, u32 expected_btypes); | ||
506 | |||
507 | #if (defined ACPI_ASL_COMPILER || defined ACPI_HELP_APP) | ||
505 | const union acpi_predefined_info *acpi_ut_match_resource_name(char *name); | 508 | const union acpi_predefined_info *acpi_ut_match_resource_name(char *name); |
506 | 509 | ||
507 | void | 510 | void |
@@ -509,9 +512,8 @@ acpi_ut_display_predefined_method(char *buffer, | |||
509 | const union acpi_predefined_info *this_name, | 512 | const union acpi_predefined_info *this_name, |
510 | u8 multi_line); | 513 | u8 multi_line); |
511 | 514 | ||
512 | void acpi_ut_get_expected_return_types(char *buffer, u32 expected_btypes); | ||
513 | |||
514 | u32 acpi_ut_get_resource_bit_width(char *buffer, u16 types); | 515 | u32 acpi_ut_get_resource_bit_width(char *buffer, u16 types); |
516 | #endif | ||
515 | 517 | ||
516 | /* | 518 | /* |
517 | * utstate - Generic state creation/cache routines | 519 | * utstate - Generic state creation/cache routines |
@@ -562,7 +564,9 @@ const struct acpi_exception_info *acpi_ut_validate_exception(acpi_status | |||
562 | 564 | ||
563 | u8 acpi_ut_is_pci_root_bridge(char *id); | 565 | u8 acpi_ut_is_pci_root_bridge(char *id); |
564 | 566 | ||
567 | #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP) | ||
565 | u8 acpi_ut_is_aml_table(struct acpi_table_header *table); | 568 | u8 acpi_ut_is_aml_table(struct acpi_table_header *table); |
569 | #endif | ||
566 | 570 | ||
567 | acpi_status | 571 | acpi_status |
568 | acpi_ut_walk_package_tree(union acpi_operand_object *source_object, | 572 | acpi_ut_walk_package_tree(union acpi_operand_object *source_object, |
@@ -621,15 +625,19 @@ acpi_ut_get_resource_end_tag(union acpi_operand_object *obj_desc, u8 **end_tag); | |||
621 | */ | 625 | */ |
622 | void acpi_ut_strupr(char *src_string); | 626 | void acpi_ut_strupr(char *src_string); |
623 | 627 | ||
628 | #ifdef ACPI_ASL_COMPILER | ||
624 | void acpi_ut_strlwr(char *src_string); | 629 | void acpi_ut_strlwr(char *src_string); |
625 | 630 | ||
626 | int acpi_ut_stricmp(char *string1, char *string2); | 631 | int acpi_ut_stricmp(char *string1, char *string2); |
632 | #endif | ||
627 | 633 | ||
628 | acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 *ret_integer); | 634 | acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 *ret_integer); |
629 | 635 | ||
630 | void acpi_ut_print_string(char *string, u16 max_length); | 636 | void acpi_ut_print_string(char *string, u16 max_length); |
631 | 637 | ||
638 | #if defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP | ||
632 | void ut_convert_backslashes(char *pathname); | 639 | void ut_convert_backslashes(char *pathname); |
640 | #endif | ||
633 | 641 | ||
634 | u8 acpi_ut_valid_acpi_name(char *name); | 642 | u8 acpi_ut_valid_acpi_name(char *name); |
635 | 643 | ||
@@ -777,6 +785,8 @@ int acpi_ut_file_printf(ACPI_FILE file, const char *format, ...); | |||
777 | /* | 785 | /* |
778 | * utuuid -- UUID support functions | 786 | * utuuid -- UUID support functions |
779 | */ | 787 | */ |
788 | #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_HELP_APP) | ||
780 | void acpi_ut_convert_string_to_uuid(char *in_string, u8 *uuid_buffer); | 789 | void acpi_ut_convert_string_to_uuid(char *in_string, u8 *uuid_buffer); |
790 | #endif | ||
781 | 791 | ||
782 | #endif /* _ACUTILS_H */ | 792 | #endif /* _ACUTILS_H */ |
diff --git a/drivers/acpi/acpica/utmisc.c b/drivers/acpi/acpica/utmisc.c index 56bbacd576f2..cbb7034d28d8 100644 --- a/drivers/acpi/acpica/utmisc.c +++ b/drivers/acpi/acpica/utmisc.c | |||
@@ -75,6 +75,7 @@ u8 acpi_ut_is_pci_root_bridge(char *id) | |||
75 | return (FALSE); | 75 | return (FALSE); |
76 | } | 76 | } |
77 | 77 | ||
78 | #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP) | ||
78 | /******************************************************************************* | 79 | /******************************************************************************* |
79 | * | 80 | * |
80 | * FUNCTION: acpi_ut_is_aml_table | 81 | * FUNCTION: acpi_ut_is_aml_table |
@@ -102,6 +103,7 @@ u8 acpi_ut_is_aml_table(struct acpi_table_header *table) | |||
102 | 103 | ||
103 | return (FALSE); | 104 | return (FALSE); |
104 | } | 105 | } |
106 | #endif | ||
105 | 107 | ||
106 | /******************************************************************************* | 108 | /******************************************************************************* |
107 | * | 109 | * |
diff --git a/drivers/acpi/acpica/utuuid.c b/drivers/acpi/acpica/utuuid.c index c6149a212149..e6cab669bd9c 100644 --- a/drivers/acpi/acpica/utuuid.c +++ b/drivers/acpi/acpica/utuuid.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #define _COMPONENT ACPI_COMPILER | 47 | #define _COMPONENT ACPI_COMPILER |
48 | ACPI_MODULE_NAME("utuuid") | 48 | ACPI_MODULE_NAME("utuuid") |
49 | 49 | ||
50 | #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_HELP_APP) | ||
50 | /* | 51 | /* |
51 | * UUID support functions. | 52 | * UUID support functions. |
52 | * | 53 | * |
@@ -94,3 +95,4 @@ void acpi_ut_convert_string_to_uuid(char *in_string, u8 *uuid_buffer) | |||
94 | 1]); | 95 | 1]); |
95 | } | 96 | } |
96 | } | 97 | } |
98 | #endif | ||