提交 719e5985 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] alpha spinlock code and bogus constraints

"=m" (lock->lock) / "1" (lock->lock) makes gcc4 unhappy; fixed by s/1/m/,
same as in case of i386 rwsem.h where such variant had been accepted
by both Linus and rth.
Signed-off-by: NAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 79fb7bdc
...@@ -1036,7 +1036,7 @@ debug_spin_lock(spinlock_t * lock, const char *base_file, int line_no) ...@@ -1036,7 +1036,7 @@ debug_spin_lock(spinlock_t * lock, const char *base_file, int line_no)
" br 1b\n" " br 1b\n"
".previous" ".previous"
: "=r" (tmp), "=m" (lock->lock), "=r" (stuck) : "=r" (tmp), "=m" (lock->lock), "=r" (stuck)
: "1" (lock->lock), "2" (stuck) : "memory"); : "m" (lock->lock), "2" (stuck) : "memory");
if (stuck < 0) { if (stuck < 0) {
printk(KERN_WARNING printk(KERN_WARNING
...@@ -1115,7 +1115,7 @@ void _raw_write_lock(rwlock_t * lock) ...@@ -1115,7 +1115,7 @@ void _raw_write_lock(rwlock_t * lock)
".previous" ".previous"
: "=m" (*(volatile int *)lock), "=&r" (regx), "=&r" (regy), : "=m" (*(volatile int *)lock), "=&r" (regx), "=&r" (regy),
"=&r" (stuck_lock), "=&r" (stuck_reader) "=&r" (stuck_lock), "=&r" (stuck_reader)
: "0" (*(volatile int *)lock), "3" (stuck_lock), "4" (stuck_reader) : "memory"); : "m" (*(volatile int *)lock), "3" (stuck_lock), "4" (stuck_reader) : "memory");
if (stuck_lock < 0) { if (stuck_lock < 0) {
printk(KERN_WARNING "write_lock stuck at %p\n", inline_pc); printk(KERN_WARNING "write_lock stuck at %p\n", inline_pc);
...@@ -1153,7 +1153,7 @@ void _raw_read_lock(rwlock_t * lock) ...@@ -1153,7 +1153,7 @@ void _raw_read_lock(rwlock_t * lock)
" br 1b\n" " br 1b\n"
".previous" ".previous"
: "=m" (*(volatile int *)lock), "=&r" (regx), "=&r" (stuck_lock) : "=m" (*(volatile int *)lock), "=&r" (regx), "=&r" (stuck_lock)
: "0" (*(volatile int *)lock), "2" (stuck_lock) : "memory"); : "m" (*(volatile int *)lock), "2" (stuck_lock) : "memory");
if (stuck_lock < 0) { if (stuck_lock < 0) {
printk(KERN_WARNING "read_lock stuck at %p\n", inline_pc); printk(KERN_WARNING "read_lock stuck at %p\n", inline_pc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册