summaryrefslogtreecommitdiff
path: root/common/dlmalloc.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-05-13 19:01:54 -0500
committerWolfgang Denk <wd@denx.de>2008-06-03 19:42:05 +0200
commit81673e9ae14b771cd13faf19947192599cae3959 (patch)
tree9e1cad932bd872cfdd1f761563f87be2fc242ad4 /common/dlmalloc.c
parent95d449ad4de79dd32b1705b8a4d3550f1e9081e3 (diff)
downloadu-boot-imx-81673e9ae14b771cd13faf19947192599cae3959.zip
u-boot-imx-81673e9ae14b771cd13faf19947192599cae3959.tar.gz
u-boot-imx-81673e9ae14b771cd13faf19947192599cae3959.tar.bz2
Make sure common.h is the first include.
If common.h isn't first we can get CONFIG_ options defined in the board config file ignored. This can cause an issue if any of those config options impact the size of types of data structures (eg CONFIG_PHYS_64BIT). Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'common/dlmalloc.c')
-rw-r--r--common/dlmalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index 20c2069..c51351e 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -1,3 +1,5 @@
+#include <common.h>
+
#if 0 /* Moved to malloc.h */
/* ---------- To make a malloc.h, start cutting here ------------ */
@@ -947,7 +949,6 @@ void malloc_stats();
#endif /* 0 */
#endif /* 0 */ /* Moved to malloc.h */
-#include <common.h>
DECLARE_GLOBAL_DATA_PTR;