Skip to contentSkip to conversation

Make sure common.h is the first include.

PATCH New Kumar Gala 2 participants 2 messages May 14, 2008 – Jun 4, 2008

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 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).

---

Should be looked at for v1.3.3

- k

 common/dlmalloc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
common/dlmalloc.c +2 -1
index 20c2069..c51351e 100644
@@ -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;
 
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 Make sure common.h is the first include.

Quoted 6 lines · In message <[email protected]> you wrote:

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).

Quoted 8 lines

---

Should be looked at for v1.3.3

- k

 common/dlmalloc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The hottest places in Hell are reserved for those who, in  times  of
moral crisis, preserved their neutrality."                    - Dante