Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/78341?usp=email )
Change subject: soc/amd/common/data_fabric_helper: add pre-processor guards for ACPI ......................................................................
soc/amd/common/data_fabric_helper: add pre-processor guards for ACPI
Signed-off-by: Felix Held felix-coreboot@felixheld.de Change-Id: Iec6e05bbe9fad7d78002560b78169dc293294af6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78341 Reviewed-by: Eric Lai ericllai@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Fred Reitberger reitbergerfred@gmail.com --- M src/soc/amd/common/block/data_fabric/data_fabric_helper.c 1 file changed, 4 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Fred Reitberger: Looks good to me, approved Eric Lai: Looks good to me, approved
diff --git a/src/soc/amd/common/block/data_fabric/data_fabric_helper.c b/src/soc/amd/common/block/data_fabric/data_fabric_helper.c index 0426af8..7a6e615 100644 --- a/src/soc/amd/common/block/data_fabric/data_fabric_helper.c +++ b/src/soc/amd/common/block/data_fabric/data_fabric_helper.c @@ -62,6 +62,7 @@ } }
+#if CONFIG(HAVE_ACPI_TABLES) static const char *data_fabric_acpi_name(const struct device *dev) { const char *df_acpi_names[8] = { @@ -82,10 +83,13 @@ printk(BIOS_ERR, "%s: Unhandled device id 0x%x\n", __func__, dev->device); return NULL; } +#endif
struct device_operations amd_data_fabric_ops = { .read_resources = noop_read_resources, .set_resources = noop_set_resources, +#if CONFIG(HAVE_ACPI_TABLES) .acpi_name = data_fabric_acpi_name, .acpi_fill_ssdt = acpi_device_write_pci_dev, +#endif };