From 7ebebf72f8f53ba1e3afebffa41257d9cf84e3da Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Sat, 17 Jun 2023 14:08:46 +0200 Subject: acpi/acpi.c: Change signature of write_acpi_tables The argument is copied into current and is never modified. Signed-off-by: Arthur Heymans Change-Id: I3084e43ccbe9749bc726af3120decfe8b52e1709 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75902 Reviewed-by: Lean Sheng Tan Tested-by: build bot (Jenkins) --- src/acpi/acpi.c | 2 +- src/include/acpi/acpi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index 78135d79dd..ce1453825f 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -1854,7 +1854,7 @@ static void acpidump_print(void *table_ptr) printk(BIOS_SPEW, "\n"); } -unsigned long write_acpi_tables(unsigned long start) +unsigned long write_acpi_tables(const unsigned long start) { unsigned long current; acpi_rsdp_t *rsdp; diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h index 09e12115ba..d3f209a44e 100644 --- a/src/include/acpi/acpi.h +++ b/src/include/acpi/acpi.h @@ -1335,7 +1335,7 @@ unsigned long fw_cfg_acpi_tables(unsigned long start); /* These are implemented by the target port or north/southbridge. */ void preload_acpi_dsdt(void); -unsigned long write_acpi_tables(unsigned long addr); +unsigned long write_acpi_tables(const unsigned long addr); unsigned long acpi_fill_madt(unsigned long current); void acpi_fill_fadt(acpi_fadt_t *fadt); -- cgit v1.2.3