[U-Boot] [PATCH 14/38] arc: Make u-boot-arc.h a private header
Simon Glass
sjg at chromium.org
Wed May 17 14:22:47 UTC 2017
Rather than including this arch-specific header file in common.h, include
it from within arc's u-boot.h header.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
arch/arc/include/asm/u-boot.h | 1 +
include/common.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arc/include/asm/u-boot.h b/arch/arc/include/asm/u-boot.h
index e354edf95d..045487278e 100644
--- a/arch/arc/include/asm/u-boot.h
+++ b/arch/arc/include/asm/u-boot.h
@@ -8,6 +8,7 @@
#define __ASM_ARC_U_BOOT_H__
#include <asm-generic/u-boot.h>
+#include <asm/u-boot-arc.h>
/* For image.h:image_check_target_arch() */
#define IH_ARCH_DEFAULT IH_ARCH_ARC
diff --git a/include/common.h b/include/common.h
index 47076869c1..b07b8fc6da 100644
--- a/include/common.h
+++ b/include/common.h
@@ -445,7 +445,7 @@ static inline int setenv_addr(const char *varname, const void *addr)
# include <asm/u-boot-mips.h>
#endif /* CONFIG_MIPS */
#ifdef CONFIG_ARC
-# include <asm/u-boot-arc.h>
+# include <asm/u-boot.h>
#endif /* CONFIG_ARC */
#ifdef CONFIG_AUTO_COMPLETE
--
2.13.0.303.g4ebf302169-goog
More information about the U-Boot
mailing list