mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-21 13:00:44 +09:00
Fix Ultrastor asm snippet
commitfad4dab5e4upstream. Commit1292500breplaced "=m" (*field) : "1" (*field) with "=m" (*field) : with comment "The following patch fixes it by using the '+' operator on the (*field) operand, marking it as read-write to gcc." '+' was actually forgotten. This really puts it. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: James Bottomley <jbottomley@parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5252bdb10d
commit
4efd0b080a
@@ -306,7 +306,7 @@ static inline int find_and_clear_bit_16(unsigned long *field)
|
||||
"0: bsfw %1,%w0\n\t"
|
||||
"btr %0,%1\n\t"
|
||||
"jnc 0b"
|
||||
: "=&r" (rv), "=m" (*field) :);
|
||||
: "=&r" (rv), "+m" (*field) :);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user