Skip to contentSkip to conversation

85xx: Move include of config.h earlier.

PATCH New Kumar Gala 2 participants 3 messages Jan 8, 2008

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 85xx: Move include of config.h earlier.

Include config.h earlier in the set of #includes so as to avoid an incidental and duplicate definition of CFG_CACHELINE_SIZE.

---

This is in my git tree on kernel.org in the mpc85xx branch.

 board/freescale/mpc8540ads/init.S |    2 +-
 board/freescale/mpc8541cds/init.S |    2 +-
 board/freescale/mpc8544ds/init.S  |    2 +-
 board/freescale/mpc8548cds/init.S |    2 +-
 board/freescale/mpc8555cds/init.S |    2 +-
 board/freescale/mpc8560ads/init.S |    2 +-
 board/freescale/mpc8568mds/init.S |    2 +-
 board/mpc8540eval/init.S          |    2 +-
 board/pm854/init.S                |    2 +-
 board/pm856/init.S                |    2 +-
 board/sbc8560/init.S              |    2 +-
 board/stxgp3/init.S               |    2 +-
 board/stxssa/init.S               |    2 +-
 board/tqm85xx/init.S              |    2 +-
 14 files changed, 14 insertions(+), 14 deletions(-)
board/freescale/mpc8540ads/init.S +1 -1
index 74d71c6..e7ccaec 100644
@@ -22,11 +22,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 
board/freescale/mpc8541cds/init.S +1 -1
index 8c8c087..7ccf391 100644
@@ -21,11 +21,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 
board/freescale/mpc8544ds/init.S +1 -1
index 544dc07..2a6507f 100644
@@ -20,11 +20,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 /*
board/freescale/mpc8548cds/init.S +1 -1
index ed0fc44..577dbdd 100644
@@ -21,11 +21,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 /*
board/freescale/mpc8555cds/init.S +1 -1
index 8c8c087..7ccf391 100644
@@ -21,11 +21,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 
board/freescale/mpc8560ads/init.S +1 -1
index 37fd0c6..811a936 100644
@@ -22,11 +22,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 
board/freescale/mpc8568mds/init.S +1 -1
index 2748c51..8b7815f 100644
@@ -21,11 +21,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 /*
board/mpc8540eval/init.S +1 -1
index a8ac3fb..b554f30 100644
@@ -21,11 +21,11 @@
 * MA 02111-1307 USA
 */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 #define	entry_start \
board/pm854/init.S +1 -1
index 0a403ab..6ffc011 100644
@@ -22,11 +22,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 
board/pm856/init.S +1 -1
index 0a403ab..6ffc011 100644
@@ -22,11 +22,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 
board/sbc8560/init.S +1 -1
index 95cb85a..8fe0a66 100644
@@ -24,11 +24,11 @@
 * MA 02111-1307 USA
 */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 #define	entry_start \
board/stxgp3/init.S +1 -1
index f491a57..c6984a4 100644
@@ -28,11 +28,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 
board/stxssa/init.S +1 -1
index 82dafb8..d8ea81a 100644
@@ -28,11 +28,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 
board/tqm85xx/init.S +1 -1
index dcb9386..900d172 100644
@@ -22,11 +22,11 @@
  * MA 02111-1307 USA
  */
 
+#include <config.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
-#include <config.h>
 #include <mpc85xx.h>
 
 
Signature · 1 line
1.5.3.7
#1 lore raw

PATCH 1/1 85xx: Move include of config.h earlier.

Hi Kumar,

Quoted 2 lines · Kumar Gala

Include config.h earlier in the set of #includes so as to avoid an incidental and duplicate definition of CFG_CACHELINE_SIZE.

Why not remove CFG_CACHELINE_SIZE (and the other CFG_CACHE_xxx stuff) from the board config files instead? This should be defined correctly in asm-ppc/cache.h now.

I made this cleanup for 4xx lately and probably triggered this problem for your FSL ports. Sorry about that, but I really think these cache defines should be removed from the board config files.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================

author
#2 lore raw

PATCH 1/1 85xx: Move include of config.h earlier.

Quoted 11 lines · Stefan Roese

Hi Kumar,

Quoted 2 lines · Kumar Gala

Include config.h earlier in the set of #includes so as to avoid an incidental and duplicate definition of CFG_CACHELINE_SIZE.

Why not remove CFG_CACHELINE_SIZE (and the other CFG_CACHE_xxx stuff) from the
board config files instead? This should be defined correctly in asm-ppc/cache.h now.

Quoted 5 lines

I made this cleanup for 4xx lately and probably triggered this problem for
your FSL ports. Sorry about that, but I really think these cache defines
should be removed from the board config files.

Ok, will send a new patch which drops the cache config from config.h for 85xx

- k