]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Fix member check in intel_gnvs
authorSimon Glass <sjg@chromium.org>
Tue, 23 Feb 2021 10:35:40 +0000 (05:35 -0500)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 9 Mar 2021 01:42:12 +0000 (09:42 +0800)
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>
arch/x86/include/asm/intel_gnvs.h

index 69a20812e5e33b055475e29ac91d9ed12c725a9a..fc743dc92858f646c68db44878de46210e7a66ed 100644 (file)
@@ -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_ */