aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-07-18 21:42:17 -0700
committerBin Meng <bmeng.cn@gmail.com>2018-07-20 09:33:22 +0800
commit05855fd31a3f7483534aabe69a7030ff38978510 (patch)
treedca544b796ecfff136c2a2ddc6e4b83a4ba39d9c /arch
parent474a62bc74fe923cd6f43e13ca82b1ce2f40e76f (diff)
downloadu-boot-05855fd31a3f7483534aabe69a7030ff38978510.zip
u-boot-05855fd31a3f7483534aabe69a7030ff38978510.tar.gz
u-boot-05855fd31a3f7483534aabe69a7030ff38978510.tar.bz2
x86: acpi: Prevent acpi_table.h from being included more than once
The wrapper #ifndef is currently missing in acpi_table.h. Add it to prevent it from being included multiple times. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/acpi_table.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/acpi_table.h b/arch/x86/include/asm/acpi_table.h
index dd516df..95fae03 100644
--- a/arch/x86/include/asm/acpi_table.h
+++ b/arch/x86/include/asm/acpi_table.h
@@ -6,6 +6,9 @@
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
+#ifndef __ASM_ACPI_TABLE_H__
+#define __ASM_ACPI_TABLE_H__
+
#define RSDP_SIG "RSD PTR " /* RSDP pointer signature */
#define OEM_ID "U-BOOT" /* U-Boot */
#define OEM_TABLE_ID "U-BOOTBL" /* U-Boot Table */
@@ -327,3 +330,5 @@ ulong write_acpi_tables(ulong start);
* @return: ACPI RSDP table address
*/
ulong acpi_get_rsdp_addr(void);
+
+#endif /* __ASM_ACPI_TABLE_H__ */