aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-23 05:35:40 -0500
committerBin Meng <bmeng.cn@gmail.com>2021-03-09 09:42:12 +0800
commit0b823e16b6b9443200faf9a51943642b3937ea99 (patch)
tree31132eb74699d161eee7d7678c0e78f62f31878b /arch/x86/include
parent97401d0dbcd71d34fee95e3d89736699e78a9c6b (diff)
downloadu-boot-0b823e16b6b9443200faf9a51943642b3937ea99.zip
u-boot-0b823e16b6b9443200faf9a51943642b3937ea99.tar.gz
u-boot-0b823e16b6b9443200faf9a51943642b3937ea99.tar.bz2
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.h4
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 69a2081..fc743dc 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_ */