]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Add a header guard to asm/acpi_table.h
authorSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:45:30 +0000 (12:45 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:22 +0000 (11:27 +0800)
This file cannot currently be included in ASL files. Add a header guard
to permit this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/acpi_table.h

index faf317307308444c5d3489514e32c6878532d372..1b49ccadc0c1a03c0a835d1e88016672fcb8e3b9 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __ASM_ACPI_TABLE_H__
 #define __ASM_ACPI_TABLE_H__
 
+#ifndef __ACPI__
+
 struct acpi_facs;
 struct acpi_fadt;
 struct acpi_global_nvs;
@@ -213,4 +215,6 @@ void acpi_fadt_common(struct acpi_fadt *fadt, struct acpi_facs *facs,
  */
 void intel_acpi_fill_fadt(struct acpi_fadt *fadt);
 
+#endif /* !__ACPI__ */
+
 #endif /* __ASM_ACPI_TABLE_H__ */