Skip to contentSkip to conversation

Use DATA_DATA in cris, powerpc and xtensa

PATCH In review Mathieu Desnoyers 2 participants 5 messages Jul 3, 2007 – Jul 5, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Use DATA_DATA in cris, powerpc and xtensa

Hi,

I noticed that these architectures, as of 2.6.22-rc6-mm1, still doesn't use the DATA_DATA. Here are the patches for this.

Mathieu

Signature · 3 lines
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
#3 lore raw

PATCH 3/3 Use DATA_DATA in xtensa

---
 arch/xtensa/kernel/vmlinux.lds.S |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/xtensa/kernel/vmlinux.lds.S +2 -1
Index: linux-2.6-lttng/arch/xtensa/kernel/vmlinux.lds.S
===================================================================
@@ -118,7 +118,8 @@
   _fdata = .;
   .data :
   {
-    *(.data) CONSTRUCTORS
+    DATA_DATA
+    CONSTRUCTORS
     . = ALIGN(XCHAL_ICACHE_LINESIZE);
     *(.data.cacheline_aligned)
   }
Signature · 3 lines
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
#1 lore raw

PATCH 1/3 Use DATA_DATA in CRIS

In reply to Mathieu Desnoyers
---
 arch/cris/arch-v10/vmlinux.lds.S |    2 +-
 arch/cris/arch-v32/vmlinux.lds.S |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/cris/arch-v10/vmlinux.lds.S +1 -1
Index: linux-2.6-lttng/arch/cris/arch-v10/vmlinux.lds.S
===================================================================
@@ -44,7 +44,7 @@
 	___data_start = . ;
 	__Sdata = . ;
 	.data : {                     /* Data */
-		*(.data)
+		DATA_DATA
 	}
 	__edata = . ;                 /* End of data section */
 	_edata = . ;
arch/cris/arch-v32/vmlinux.lds.S +1 -1
Index: linux-2.6-lttng/arch/cris/arch-v32/vmlinux.lds.S
===================================================================
@@ -49,7 +49,7 @@
 	___data_start = . ;
 	__Sdata = . ;
 	.data : {                     /* Data */
-		*(.data)
+		DATA_DATA
 	}
 	__edata = . ;		/* End of data section. */
 	_edata = . ;
Signature · 3 lines
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
#2 lore raw

PATCH 2/3 Add missing DATA_DATA in powerpc

In reply to Mathieu Desnoyers

--

 arch/powerpc/kernel/vmlinux.lds.S |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/powerpc/kernel/vmlinux.lds.S +3 -1
Index: linux-2.6-lttng/arch/powerpc/kernel/vmlinux.lds.S
===================================================================
@@ -173,7 +173,9 @@
 	}
 #else
 	.data : {
-		*(.data .data.rel* .toc1)
+		DATA_DATA
+		*(.data.rel*)
+		*(.toc1)
 		*(.branch_lt)
 	}
 
Signature · 3 lines
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
#4 lore raw
In reply to Mathieu Desnoyers
Quoted 5 lines · On Tue, 03 Jul 2007 12:45:34 -0400 Mathieu Desnoyers…

Hi,

I noticed that these architectures, as of 2.6.22-rc6-mm1, still doesn't use the DATA_DATA. Here are the patches for this.

These three patches were missing changelogs. The relevant arch maintainers (who are presumably perfectly happy without DATA_DATA) are owed an explanation of the reasons for these changes. Please send me those explanations and I shall update your changlogs, thanks.