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 <felix-coreboot@felixheld.de> Change-Id: Iee45badb904fa20c6db146edbc00c40ca09361d1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80218 Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
1b410d9ab9
commit
ae54db7926
|
@ -7,8 +7,8 @@
|
|||
#include <soc/acpi.h>
|
||||
#include <types.h>
|
||||
|
||||
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 */
|
||||
|
||||
|
|
|
@ -10,7 +10,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_CEZANNE_ACPI_H */
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <soc/acpi.h>
|
||||
#include <types.h>
|
||||
|
||||
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 */
|
||||
|
||||
|
|
|
@ -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_GLINDA_ACPI_H */
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <soc/acpi.h>
|
||||
#include <types.h>
|
||||
|
||||
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 */
|
||||
|
||||
|
|
|
@ -10,7 +10,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_MENDOCINO_ACPI_H */
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#include <soc/acpi.h>
|
||||
#include <types.h>
|
||||
|
||||
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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -539,8 +539,8 @@ static unsigned long acpi_fill_crat(struct acpi_crat_header *crat, unsigned long
|
|||
return current;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
struct acpi_crat_header *crat;
|
||||
|
||||
|
|
|
@ -10,7 +10,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_PICASSO_ACPI_H */
|
||||
|
|
Loading…
Reference in New Issue