All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] m68k: bogus constraints in signal.h
@ 2006-06-15 11:11 Al Viro
  2006-06-15 11:46 ` Roman Zippel
  0 siblings, 1 reply; 4+ messages in thread
From: Al Viro @ 2006-06-15 11:11 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, linux-m68k

bfset and friends need "o", not "m" - they don't work with autodecrement
memory arguments.  bitops.h had it fixed, signal.h hadn't...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

---

 include/asm-m68k/signal.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

904a77fc8bfa159204cc895d672096e5d3a5a46e
diff --git a/include/asm-m68k/signal.h b/include/asm-m68k/signal.h
index b7b7ea2..f645162 100644
--- a/include/asm-m68k/signal.h
+++ b/include/asm-m68k/signal.h
@@ -156,13 +156,13 @@ #define __HAVE_ARCH_SIG_BITOPS
 
 static inline void sigaddset(sigset_t *set, int _sig)
 {
-	__asm__("bfset %0{%1,#1}" : "=m" (*set) : "id" ((_sig - 1) ^ 31)
+	__asm__("bfset %0{%1,#1}" : "=o" (*set) : "id" ((_sig - 1) ^ 31)
 		: "cc");
 }
 
 static inline void sigdelset(sigset_t *set, int _sig)
 {
-	__asm__("bfclr %0{%1,#1}" : "=m"(*set) : "id"((_sig - 1) ^ 31)
+	__asm__("bfclr %0{%1,#1}" : "=o"(*set) : "id"((_sig - 1) ^ 31)
 		: "cc");
 }
 
@@ -176,7 +176,7 @@ static inline int __gen_sigismember(sigs
 {
 	int ret;
 	__asm__("bfextu %1{%2,#1},%0"
-		: "=d"(ret) : "m"(*set), "id"((_sig-1) ^ 31));
+		: "=d"(ret) : "o"(*set), "id"((_sig-1) ^ 31));
 	return ret;
 }
 
-- 
1.3.GIT


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

end of thread, other threads:[~2006-06-15 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-15 11:11 [PATCH] m68k: bogus constraints in signal.h Al Viro
2006-06-15 11:46 ` Roman Zippel
2006-06-15 12:03   ` Al Viro
2006-06-15 12:20     ` Roman Zippel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.