[SCSI] Fix Ultrastor asm snippet
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 18 May 2011 15:06:05 +0000 (17:06 +0200)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 17:25:35 +0000 (13:25 -0400)
Commit 1292500b replaced

"=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>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/ultrastor.c

index 9f4b58b7daaded8801e2724a8fce3ecfd6441166..7e22b737dfd8ff4216f4eeddd015066b08ca2e0c 100644 (file)
@@ -307,7 +307,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;
 }