Skip to contentSkip to conversation

ACPI: tables: Fix the stale comments for acpi_locate_initial_tables()

PATCH Applied Hanjun Guo 2 participants 2 messages Nov 4, 2022 – Nov 10, 2022 ACPI

lore
Share & tools
lore

Hanjun Guo

author
#0 lore raw

PATCH 1/1 ACPI: tables: Fix the stale comments for acpi_locate_initial_tables()

sdt_entry[] is long gone by commit ceb6c4683902 ("ACPICA: Remove duplicate table manager"), update the comments to avoid confusion.

---
 drivers/acpi/tables.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/acpi/tables.c +3 -4
index 47ec11d..afb365a 100644
@@ -838,12 +838,11 @@ acpi_status acpi_os_table_override(struct acpi_table_header *existing_table,
 /*
  * acpi_locate_initial_tables()
  *
- * find RSDP, find and checksum SDT/XSDT.
- * checksum all tables, print SDT/XSDT
+ * Get the RSDP, then find and checksum all the ACPI tables.
  *
- * result: sdt_entry[] is initialized
+ * result: initial_tables[] is initialized, and points to
+ * a list of ACPI tables.
  */
-
 int __init acpi_locate_initial_tables(void)
 {
 	acpi_status status;
Signature · 1 line
1.7.12.4
maintainer Applied
#1 lore raw
Quoted 20 lines · Hanjun Guo

sdt_entry[] is long gone by commit ceb6c4683902 ("ACPICA: Remove duplicate table manager"), update the comments to avoid confusion.

---
 drivers/acpi/tables.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/acpi/tables.c +1 -2
index 47ec11d..afb365a 100644
@@ -838,12 +838,11 @@ acpi_status acpi_os_table_override(struct acpi_table_header *existing_table,
 /*
  * acpi_locate_initial_tables()
  *
- * find RSDP, find and checksum SDT/XSDT.
- * checksum all tables, print SDT/XSDT
+ * Get the RSDP, then find and checksum all the ACPI tables.

drivers/acpi/tables.c acpi_status acpi_os_table_override(struct acpi_table_header *existing_table,

Quoted 10 lines
drivers/acpi/tables.c +2 -3
  *
- * result: sdt_entry[] is initialized
+ * result: initial_tables[] is initialized, and points to
+ * a list of ACPI tables.
  */
-
 int __init acpi_locate_initial_tables(void)
 {
        acpi_status status;
--

Applied as 6.2 material, thanks!