Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPICA: Remove extraneous parameter in table manager

Removed the Flags parameter from several internal functions since
it was not being used.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Bob Moore and committed by
Len Brown
97cbb7d1 ac5f98db

+14 -17
+3 -4
drivers/acpi/acpica/actables.h
··· 49 49 /* 50 50 * tbfadt - FADT parse/convert/validate 51 51 */ 52 - void acpi_tb_parse_fadt(u32 table_index, u8 flags); 52 + void acpi_tb_parse_fadt(u32 table_index); 53 53 54 54 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length); 55 55 ··· 109 109 110 110 void 111 111 acpi_tb_install_table(acpi_physical_address address, 112 - u8 flags, char *signature, u32 table_index); 112 + char *signature, u32 table_index); 113 113 114 - acpi_status 115 - acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags); 114 + acpi_status acpi_tb_parse_root_table(acpi_physical_address rsdp_address); 116 115 117 116 #endif /* __ACTABLES_H__ */
+3 -4
drivers/acpi/acpica/tbfadt.c
··· 172 172 * FUNCTION: acpi_tb_parse_fadt 173 173 * 174 174 * PARAMETERS: table_index - Index for the FADT 175 - * Flags - Flags 176 175 * 177 176 * RETURN: None 178 177 * ··· 180 181 * 181 182 ******************************************************************************/ 182 183 183 - void acpi_tb_parse_fadt(u32 table_index, u8 flags) 184 + void acpi_tb_parse_fadt(u32 table_index) 184 185 { 185 186 u32 length; 186 187 struct acpi_table_header *table; ··· 218 219 /* Obtain the DSDT and FACS tables via their addresses within the FADT */ 219 220 220 221 acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xdsdt, 221 - flags, ACPI_SIG_DSDT, ACPI_TABLE_INDEX_DSDT); 222 + ACPI_SIG_DSDT, ACPI_TABLE_INDEX_DSDT); 222 223 223 224 acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xfacs, 224 - flags, ACPI_SIG_FACS, ACPI_TABLE_INDEX_FACS); 225 + ACPI_SIG_FACS, ACPI_TABLE_INDEX_FACS); 225 226 } 226 227 227 228 /*******************************************************************************
+7 -7
drivers/acpi/acpica/tbutils.c
··· 280 280 * FUNCTION: acpi_tb_install_table 281 281 * 282 282 * PARAMETERS: Address - Physical address of DSDT or FACS 283 - * Flags - Flags 284 283 * Signature - Table signature, NULL if no need to 285 284 * match 286 285 * table_index - Index into root table array ··· 295 296 296 297 void 297 298 acpi_tb_install_table(acpi_physical_address address, 298 - u8 flags, char *signature, u32 table_index) 299 + char *signature, u32 table_index) 299 300 { 301 + u8 flags; 300 302 acpi_status status; 301 303 struct acpi_table_header *table_to_install; 302 304 struct acpi_table_header *mapped_table; ··· 344 344 345 345 acpi_gbl_root_table_list.tables[table_index].pointer = 346 346 override_table; 347 - flags = ACPI_TABLE_ORIGIN_OVERRIDE; 348 347 address = ACPI_PTR_TO_PHYSADDR(override_table); 349 348 350 349 table_to_install = override_table; 350 + flags = ACPI_TABLE_ORIGIN_OVERRIDE; 351 351 } else { 352 352 table_to_install = mapped_table; 353 + flags = ACPI_TABLE_ORIGIN_MAPPED; 353 354 } 354 355 355 356 /* Initialize the table entry */ ··· 436 435 * FUNCTION: acpi_tb_parse_root_table 437 436 * 438 437 * PARAMETERS: Rsdp - Pointer to the RSDP 439 - * Flags - Flags 440 438 * 441 439 * RETURN: Status 442 440 * ··· 449 449 ******************************************************************************/ 450 450 451 451 acpi_status __init 452 - acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags) 452 + acpi_tb_parse_root_table(acpi_physical_address rsdp_address) 453 453 { 454 454 struct acpi_table_rsdp *rsdp; 455 455 u32 table_entry_size; ··· 600 600 */ 601 601 for (i = 2; i < acpi_gbl_root_table_list.count; i++) { 602 602 acpi_tb_install_table(acpi_gbl_root_table_list.tables[i]. 603 - address, flags, NULL, i); 603 + address, NULL, i); 604 604 605 605 /* Special case for FADT - get the DSDT and FACS */ 606 606 607 607 if (ACPI_COMPARE_NAME 608 608 (&acpi_gbl_root_table_list.tables[i].signature, 609 609 ACPI_SIG_FADT)) { 610 - acpi_tb_parse_fadt(i, flags); 610 + acpi_tb_parse_fadt(i); 611 611 } 612 612 } 613 613
+1 -2
drivers/acpi/acpica/tbxface.c
··· 150 150 * Root Table Array. This array contains the information of the RSDT/XSDT 151 151 * in a common, more useable format. 152 152 */ 153 - status = 154 - acpi_tb_parse_root_table(rsdp_address, ACPI_TABLE_ORIGIN_MAPPED); 153 + status = acpi_tb_parse_root_table(rsdp_address); 155 154 return_ACPI_STATUS(status); 156 155 } 157 156