From patchwork Mon Jan 27 05:06:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 240255 List-Id: U-Boot discussion From: sjg at chromium.org (Simon Glass) Date: Sun, 26 Jan 2020 22:06:51 -0700 Subject: [PATCH 104/108] x86: Add a header guard to asm/acpi_table.h In-Reply-To: <20200127050655.170614-1-sjg@chromium.org> References: <20200127050655.170614-1-sjg@chromium.org> Message-ID: <20200126220508.104.I9e03b830f5f0096a5b4c9c6355280a5e09429fa9@changeid> This file cannot currently be included in ASL files. Add a header guard to permit this. Signed-off-by: Simon Glass --- arch/x86/include/asm/acpi_table.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/include/asm/acpi_table.h b/arch/x86/include/asm/acpi_table.h index 1f2076753c..17b92a41fa 100644 --- a/arch/x86/include/asm/acpi_table.h +++ b/arch/x86/include/asm/acpi_table.h @@ -9,6 +9,8 @@ #ifndef __ASM_ACPI_TABLE_H__ #define __ASM_ACPI_TABLE_H__ +#ifndef __ACPI__ + /* These can be used by the target port */ void acpi_fill_header(struct acpi_table_header *header, char *signature); @@ -51,4 +53,6 @@ int arch_write_sci_irq_select(uint scis); int arch_madt_sci_irq_polarity(int sci); struct acpi_cstate *arch_get_cstate_map(size_t *entries); +#endif /* !__ACPI__ */ + #endif /* __ASM_ACPI_TABLE_H__ */