From: Simon Glass Date: Wed, 17 May 2017 14:22:57 +0000 (-0600) Subject: nds32: Remove include files from common.h X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=3a53e99c7de155d8c5e057d9fda1939b60e18a2f;p=u-boot.git nds32: Remove include files from common.h With a few tweaks we can avoid including these files, which are only needed by two C files. Signed-off-by: Simon Glass --- diff --git a/arch/nds32/lib/bootm.c b/arch/nds32/lib/bootm.c index 4c95a418a8..21aadf284f 100644 --- a/arch/nds32/lib/bootm.c +++ b/arch/nds32/lib/bootm.c @@ -12,6 +12,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/AndesTech/adp-ag101p/adp-ag101p.c b/board/AndesTech/adp-ag101p/adp-ag101p.c index a462941448..79608f4efe 100644 --- a/board/AndesTech/adp-ag101p/adp-ag101p.c +++ b/board/AndesTech/adp-ag101p/adp-ag101p.c @@ -11,6 +11,8 @@ #include #endif #include +#include +#include #include #include diff --git a/include/common.h b/include/common.h index 02fda57f85..c5cb65beda 100644 --- a/include/common.h +++ b/include/common.h @@ -430,11 +430,6 @@ static inline int setenv_addr(const char *varname, const void *addr) # include # include #endif /* CONFIG_ARM */ -#ifdef CONFIG_NDS32 -# include -# include -# include -#endif /* CONFIG_NDS32 */ #ifdef CONFIG_AUTO_COMPLETE int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);