mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tim Abbott <tabbott@MIT.EDU>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Linux kernel mailing list <linux-kernel@vger.kernel.org>,
	Anders Kaseorg <andersk@MIT.EDU>, Waseem Daher <wdaher@MIT.EDU>,
	Denys Vlasenko <vda.linux@googlemail.com>,
	Jeff Arnold <jbarnold@MIT.EDU>, Paul Mundt <lethal@linux-sh.org>,
	Tim Abbott <tabbott@MIT.EDU>,
	Russell King <rmk+kernel@arm.linux.org.uk>
Subject: [PATCH 3/8] arm: Use __INIT macro instead of .text.init.
Date: Mon, 27 Apr 2009 14:02:22 -0400	[thread overview]
Message-ID: <1240855347-19316-4-git-send-email-tabbott@mit.edu> (raw)
In-Reply-To: <1240855347-19316-3-git-send-email-tabbott@mit.edu>

arm is placing some code in the .text.init section, but it does not
reference that section in its linker scripts.

This change moves this code from the .text.init section to the
.init.text section, which is presumably where it belongs.

Signed-off-by: Tim Abbott <tabbott@mit.edu>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
---
 arch/arm/mm/proc-v6.S |    3 ++-
 arch/arm/mm/proc-v7.S |    3 ++-
 arch/arm/mm/tlb-v6.S  |    3 ++-
 arch/arm/mm/tlb-v7.S  |    3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mm/proc-v6.S b/arch/arm/mm/proc-v6.S
index f0cc599..087e239 100644
--- a/arch/arm/mm/proc-v6.S
+++ b/arch/arm/mm/proc-v6.S
@@ -10,6 +10,7 @@
  *
  *  This is the "shell" of the ARMv6 processor support.
  */
+#include <linux/init.h>
 #include <linux/linkage.h>
 #include <asm/assembler.h>
 #include <asm/asm-offsets.h>
@@ -132,7 +133,7 @@ cpu_v6_name:
 	.asciz	"ARMv6-compatible processor"
 	.align
 
-	.section ".text.init", #alloc, #execinstr
+	__INIT
 
 /*
  *	__v6_setup
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
index d1ebec4..c221e26 100644
--- a/arch/arm/mm/proc-v7.S
+++ b/arch/arm/mm/proc-v7.S
@@ -9,6 +9,7 @@
  *
  *  This is the "shell" of the ARMv7 processor support.
  */
+#include <linux/init.h>
 #include <linux/linkage.h>
 #include <asm/assembler.h>
 #include <asm/asm-offsets.h>
@@ -153,7 +154,7 @@ cpu_v7_name:
 	.ascii	"ARMv7 Processor"
 	.align
 
-	.section ".text.init", #alloc, #execinstr
+	__INIT
 
 /*
  *	__v7_setup
diff --git a/arch/arm/mm/tlb-v6.S b/arch/arm/mm/tlb-v6.S
index 20f84bb..73d7d89 100644
--- a/arch/arm/mm/tlb-v6.S
+++ b/arch/arm/mm/tlb-v6.S
@@ -10,6 +10,7 @@
  *  ARM architecture version 6 TLB handling functions.
  *  These assume a split I/D TLB.
  */
+#include <linux/init.h>
 #include <linux/linkage.h>
 #include <asm/asm-offsets.h>
 #include <asm/page.h>
@@ -87,7 +88,7 @@ ENTRY(v6wbi_flush_kern_tlb_range)
 	mcr	p15, 0, r2, c7, c5, 4		@ prefetch flush
 	mov	pc, lr
 
-	.section ".text.init", #alloc, #execinstr
+	__INIT
 
 	.type	v6wbi_tlb_fns, #object
 ENTRY(v6wbi_tlb_fns)
diff --git a/arch/arm/mm/tlb-v7.S b/arch/arm/mm/tlb-v7.S
index 24ba510..b637e73 100644
--- a/arch/arm/mm/tlb-v7.S
+++ b/arch/arm/mm/tlb-v7.S
@@ -11,6 +11,7 @@
  *  ARM architecture version 6 TLB handling functions.
  *  These assume a split I/D TLB.
  */
+#include <linux/init.h>
 #include <linux/linkage.h>
 #include <asm/asm-offsets.h>
 #include <asm/page.h>
@@ -80,7 +81,7 @@ ENTRY(v7wbi_flush_kern_tlb_range)
 	mov	pc, lr
 ENDPROC(v7wbi_flush_kern_tlb_range)
 
-	.section ".text.init", #alloc, #execinstr
+	__INIT
 
 	.type	v7wbi_tlb_fns, #object
 ENTRY(v7wbi_tlb_fns)
-- 
1.6.2.1


  reply	other threads:[~2009-04-27 18:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-27 18:02 [PATCH 0/8] cleanup old init and refok sections Tim Abbott
2009-04-27 18:02 ` [PATCH 1/8] frv: Remove unused header asm/init.h Tim Abbott
2009-04-27 18:02   ` [PATCH 2/8] frv: Use __INIT macro instead of .text.init Tim Abbott
2009-04-27 18:02     ` Tim Abbott [this message]
2009-04-27 18:02       ` [PATCH 4/8] powerpc: Use TEXT_TEXT macro in linker script Tim Abbott
2009-04-27 18:02         ` [PATCH 5/8] powerpc: Use __REF macro instead of old .text.init.refok Tim Abbott
2009-04-27 18:02           ` [PATCH 6/8] sh: Use __INIT macro instead of .text.init Tim Abbott
2009-04-27 18:02             ` [PATCH 7/8] sparc: cleanup references to deprecated .text.init* sections Tim Abbott
2009-04-27 18:02               ` [PATCH 8/8] Remove unused support code for refok sections Tim Abbott
2009-04-27 18:51                 ` Sam Ravnborg
2009-04-27 18:50               ` [PATCH 7/8] sparc: cleanup references to deprecated .text.init* sections Sam Ravnborg
2009-04-27 18:47             ` [PATCH 6/8] sh: Use __INIT macro instead of .text.init Sam Ravnborg
2009-04-27 21:54             ` Paul Mundt
2009-04-27 18:44           ` [PATCH 5/8] powerpc: Use __REF macro instead of old .text.init.refok Sam Ravnborg
2009-04-27 18:44         ` [PATCH 4/8] powerpc: Use TEXT_TEXT macro in linker script Sam Ravnborg
2009-04-27 18:43       ` [PATCH 3/8] arm: Use __INIT macro instead of .text.init Sam Ravnborg
2009-04-27 18:44         ` Russell King
2009-04-27 18:37     ` [PATCH 2/8] frv: " Sam Ravnborg
2009-04-27 18:31   ` [PATCH 1/8] frv: Remove unused header asm/init.h Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1240855347-19316-4-git-send-email-tabbott@mit.edu \
    --to=tabbott@mit.edu \
    --cc=andersk@MIT.EDU \
    --cc=jbarnold@MIT.EDU \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+kernel@arm.linux.org.uk \
    --cc=sam@ravnborg.org \
    --cc=torvalds@linux-foundation.org \
    --cc=vda.linux@googlemail.com \
    --cc=wdaher@MIT.EDU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome