diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-23 05:35:40 -0500 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2021-03-09 09:42:12 +0800 |
commit | 0b823e16b6b9443200faf9a51943642b3937ea99 (patch) | |
tree | 31132eb74699d161eee7d7678c0e78f62f31878b /arch/x86/include | |
parent | 97401d0dbcd71d34fee95e3d89736699e78a9c6b (diff) | |
download | u-boot-0b823e16b6b9443200faf9a51943642b3937ea99.tar.gz u-boot-0b823e16b6b9443200faf9a51943642b3937ea99.tar.bz2 u-boot-0b823e16b6b9443200faf9a51943642b3937ea99.zip |
x86: Fix member check in intel_gnvs
When CONFIG_CHROMEOS is not enabled this currently does not build. Fix it.
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/intel_gnvs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/intel_gnvs.h b/arch/x86/include/asm/intel_gnvs.h index 69a20812e5..fc743dc928 100644 --- a/arch/x86/include/asm/intel_gnvs.h +++ b/arch/x86/include/asm/intel_gnvs.h @@ -107,6 +107,10 @@ struct __packed acpi_global_nvs { u8 unused2[0x1000 - 0x100]; /* Pad out to 4096 bytes */ #endif }; +#ifdef CONFIG_CHROMEOS check_member(acpi_global_nvs, chromeos, GNVS_CHROMEOS_ACPI_OFFSET); +#else +check_member(acpi_global_nvs, unused2, GNVS_CHROMEOS_ACPI_OFFSET); +#endif #endif /* _INTEL_GNVS_H_ */ |