From: Simon Glass Date: Wed, 17 May 2017 14:22:49 +0000 (-0600) Subject: x86: Make u-boot-x86.h a private header X-Git-Tag: v2017.07-rc1~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6862b50f6eebf4379e6d3b74a64378988e8e2961;p=u-boot x86: Make u-boot-x86.h a private header Rather than including this arch-specific header file in common.h, include it from within x86's u-boot.h header. Also drop the comment about something to be fixed. It is not clear what needs fixing. Signed-off-by: Simon Glass --- diff --git a/arch/x86/include/asm/u-boot.h b/arch/x86/include/asm/u-boot.h index 623771a39a..4c4527eb38 100644 --- a/arch/x86/include/asm/u-boot.h +++ b/arch/x86/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() */ #define IH_ARCH_DEFAULT IH_ARCH_I386 diff --git a/include/common.h b/include/common.h index ffaed49bde..229ca4c397 100644 --- a/include/common.h +++ b/include/common.h @@ -430,8 +430,8 @@ static inline int setenv_addr(const char *varname, const void *addr) # include # include /* ARM version to be fixed! */ #endif /* CONFIG_ARM */ -#ifdef CONFIG_X86 /* x86 version to be fixed! */ -# include +#ifdef CONFIG_X86 +# include #endif /* CONFIG_X86 */ #ifdef CONFIG_SANDBOX # include