linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [SPARC/SPARC64] fix usage of .section .sched.text in assembler code
@ 2008-01-26 22:54 Sam Ravnborg
  2008-01-29  5:06 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Ravnborg @ 2008-01-26 22:54 UTC (permalink / raw)
  To: David Miller, LKML; +Cc: Ingo Molnar

ld will generate an unique named section when assembler do not
use "ax" but gcc does. Add the misisng annotation.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Ingo Molnar <mingo@redhat.com>
---
 arch/sparc/lib/rwsem.S   |    2 +-
 arch/sparc64/lib/rwsem.S |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sparc/lib/rwsem.S b/arch/sparc/lib/rwsem.S
index 2065774..f406b1f 100644
--- a/arch/sparc/lib/rwsem.S
+++ b/arch/sparc/lib/rwsem.S
@@ -7,7 +7,7 @@
 #include <asm/ptrace.h>
 #include <asm/psr.h>
 
-	.section .sched.text
+	.section .sched.text, "ax"
 	.align	4
 
 	.globl		___down_read
diff --git a/arch/sparc64/lib/rwsem.S b/arch/sparc64/lib/rwsem.S
index 75f0e6b..1a4cc56 100644
--- a/arch/sparc64/lib/rwsem.S
+++ b/arch/sparc64/lib/rwsem.S
@@ -6,7 +6,7 @@
 
 #include <asm/rwsem-const.h>
 
-	.section	.sched.text
+	.section	.sched.text, "ax"
 
 	.globl		__down_read
 __down_read:
-- 
1.5.4.rc3.14.g44397


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] [SPARC/SPARC64] fix usage of .section .sched.text in assembler code
  2008-01-26 22:54 [PATCH] [SPARC/SPARC64] fix usage of .section .sched.text in assembler code Sam Ravnborg
@ 2008-01-29  5:06 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-01-29  5:06 UTC (permalink / raw)
  To: sam; +Cc: linux-kernel, mingo

From: Sam Ravnborg <sam@ravnborg.org>
Date: Sat, 26 Jan 2008 23:54:39 +0100

> ld will generate an unique named section when assembler do not
> use "ax" but gcc does. Add the misisng annotation.
> 
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> Cc: Ingo Molnar <mingo@redhat.com>

Applied, thanks Sam.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-29  5:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-26 22:54 [PATCH] [SPARC/SPARC64] fix usage of .section .sched.text in assembler code Sam Ravnborg
2008-01-29  5:06 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).