From ab8a094cf05fbdbf559465f57c2f7ce250612bac Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 16 Nov 2023 13:38:14 +0100 Subject: include/device/device: drop GENERATE_SMBIOS_TABLES guards There's no need to remove the corresponding fields from the device_operations struct when GENERATE_SMBIOS_TABLES isn't selected. Signed-off-by: Felix Held Change-Id: Ifa24d1fd211c263b788046e63de3dd5c54cba801 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79092 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/include/device/device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/device/device.h b/src/include/device/device.h index 68e2622f41..07b71ece0a 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -48,11 +48,11 @@ struct device_operations { void (*enable)(struct device *dev); void (*vga_disable)(struct device *dev); void (*reset_bus)(struct bus *bus); -#if CONFIG(GENERATE_SMBIOS_TABLES) + int (*get_smbios_data)(struct device *dev, int *handle, unsigned long *current); void (*get_smbios_strings)(struct device *dev, struct smbios_type11 *t); -#endif + #if CONFIG(HAVE_ACPI_TABLES) unsigned long (*write_acpi_tables)(const struct device *dev, unsigned long start, struct acpi_rsdp *rsdp); -- cgit v1.2.3