All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] acpi: Only include asm header when available
@ 2020-10-30  8:45 Harm Berntsen
  2020-11-03 15:12 ` Simon Glass
  0 siblings, 1 reply; 5+ messages in thread
From: Harm Berntsen @ 2020-10-30  8:45 UTC (permalink / raw)
  To: u-boot

The only platforms with an asm/acpi_table.h file are X86 and Sandbox.
Some drivers, i.e. pci_mmc.c, can generate ACPI info and therefore
include asm/acpi_table.h by proxy. This commit ensures that the
platforms wishing to use such driver and do not have ACPI support do not
fail on this include. The if defined structure is also used in other
places to conditionally include asm headers, i.e.
arch/arm/include/asm/gpio.h

Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com>
CC: Simon Glass <sjg@chromium.org>
---

?include/acpi/acpi_table.h | 2 ++
?1 file changed, 2 insertions(+)

diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h
index abbca6530d..8d9d0f8d19 100644
--- a/include/acpi/acpi_table.h
+++ b/include/acpi/acpi_table.h
@@ -690,6 +690,8 @@ void acpi_setup_base_tables(struct acpi_ctx *ctx, void *start);
?
?#endif /* !__ACPI__*/
?
+#if defined(CONFIG_X86) || defined(CONFIG_SANDBOX)
?#include <asm/acpi_table.h>
+#endif
?
?#endif /* __ACPI_TABLE_H__ */

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-19 13:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-30  8:45 [PATCH 2/3] acpi: Only include asm header when available Harm Berntsen
2020-11-03 15:12 ` Simon Glass
2020-11-06 12:24   ` [PATCH v2 2/3] acpi: Add missing ARM acpi_table header Harm Berntsen
2020-11-06 18:50     ` Simon Glass
2021-01-19 13:03     ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.