arch/x86/smbios: Add missing guard
smbios_type0_bios_version is only defined if HAVE_ACPI_TABLES is set. Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I626ab954496833f46d6a785d92cc3b7e7d87e165 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50340 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
b9e8044b28
commit
6d26d8077a
|
@ -422,7 +422,7 @@ static int smbios_write_type0(unsigned long *current, int handle)
|
|||
t->vendor = smbios_add_string(t->eos, "coreboot");
|
||||
t->bios_release_date = smbios_add_string(t->eos, coreboot_dmi_date);
|
||||
|
||||
if (CONFIG(CHROMEOS)) {
|
||||
if (CONFIG(CHROMEOS) && CONFIG(HAVE_ACPI_TABLES)) {
|
||||
uintptr_t version_address = (uintptr_t)t->eos;
|
||||
/* SMBIOS offsets start at 1 rather than 0 */
|
||||
version_address += (u32)smbios_string_table_len(t->eos) - 1;
|
||||
|
|
Loading…
Reference in New Issue