From ac6a6bd64a8bbbdcd5885bc5f47589d8b72e7935 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 17 May 2017 08:22:50 -0600 Subject: [PATCH] arm: Make u-boot-arm.h a private header Rather than including this arch-specific header file in common.h, include it from within arm's u-boot.h header. Also drop the comment about something to be fixed. It has been there forever and it is not clear what it means. Signed-off-by: Simon Glass --- arch/arm/include/asm/u-boot-arm.h | 4 ++++ arch/arm/include/asm/u-boot.h | 1 + include/common.h | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/u-boot-arm.h b/arch/arm/include/asm/u-boot-arm.h index b931c22..3a0d0b8 100644 --- a/arch/arm/include/asm/u-boot-arm.h +++ b/arch/arm/include/asm/u-boot-arm.h @@ -13,6 +13,8 @@ #ifndef _U_BOOT_ARM_H_ #define _U_BOOT_ARM_H_ 1 +#ifndef __ASSEMBLY__ + /* for the following variables, see start.S */ extern ulong IRQ_STACK_START; /* top of IRQ stack */ extern ulong FIQ_STACK_START; /* top of FIQ stack */ @@ -59,4 +61,6 @@ void do_fiq(struct pt_regs *pt_regs); void do_irq(struct pt_regs *pt_regswq); #endif +#endif /* __ASSEMBLY__ */ + #endif /* _U_BOOT_ARM_H_ */ diff --git a/arch/arm/include/asm/u-boot.h b/arch/arm/include/asm/u-boot.h index ca3abd7..ef9196f 100644 --- a/arch/arm/include/asm/u-boot.h +++ b/arch/arm/include/asm/u-boot.h @@ -22,6 +22,7 @@ /* Use the generic board which requires a unified bd_info */ #include +#include /* For image.h:image_check_target_arch() */ #ifndef CONFIG_ARM64 diff --git a/include/common.h b/include/common.h index 229ca4c..fe396c5 100644 --- a/include/common.h +++ b/include/common.h @@ -428,7 +428,7 @@ static inline int setenv_addr(const char *varname, const void *addr) #ifdef CONFIG_ARM # include # include -# include /* ARM version to be fixed! */ +# include #endif /* CONFIG_ARM */ #ifdef CONFIG_X86 # include