Make sure common.h is the first include.
authorKumar Gala <galak@kernel.crashing.org>
Wed, 14 May 2008 00:01:54 +0000 (19:01 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 3 Jun 2008 17:42:05 +0000 (19:42 +0200)
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>
common/dlmalloc.c

index 20c2069..c51351e 100644 (file)
@@ -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;