From ae54db792661ff80ba0d2706200571a428f04c6b Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 26 Jan 2024 14:14:21 +0100 Subject: soc/amd: use expected function signature for soc_acpi_write_tables A pointer to soc_acpi_write_tables gets assigned to the write_acpi_tables element of the device_operations struct, so make sure that the function has the expected function signature which in this case means using unsigned long as type for both the 'current' parameter and the return value. Signed-off-by: Felix Held Change-Id: Iee45badb904fa20c6db146edbc00c40ca09361d1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80218 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/soc/amd/phoenix/agesa_acpi.c | 4 ++-- src/soc/amd/phoenix/include/soc/acpi.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/soc/amd/phoenix') diff --git a/src/soc/amd/phoenix/agesa_acpi.c b/src/soc/amd/phoenix/agesa_acpi.c index 98e25f64c5..e4fa2bfb26 100644 --- a/src/soc/amd/phoenix/agesa_acpi.c +++ b/src/soc/amd/phoenix/agesa_acpi.c @@ -10,8 +10,8 @@ #include #include -uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current, - acpi_rsdp_t *rsdp) +unsigned long soc_acpi_write_tables(const struct device *device, unsigned long current, + acpi_rsdp_t *rsdp) { /* TODO: look into adding CRAT */ diff --git a/src/soc/amd/phoenix/include/soc/acpi.h b/src/soc/amd/phoenix/include/soc/acpi.h index 39687219f7..b3f7adce97 100644 --- a/src/soc/amd/phoenix/include/soc/acpi.h +++ b/src/soc/amd/phoenix/include/soc/acpi.h @@ -12,7 +12,7 @@ #define ACPI_SCI_IRQ 9 -uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current, - acpi_rsdp_t *rsdp); +unsigned long soc_acpi_write_tables(const struct device *device, unsigned long current, + acpi_rsdp_t *rsdp); #endif /* AMD_PHOENIX_ACPI_H */ -- cgit v1.2.3