]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Fix Ultrastor asm snippet
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 18 May 2011 15:06:05 +0000 (17:06 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:29 +0000 (11:20 -0400)
commit fad4dab5e44e10acf6b0235e469cb8e773b58e31 upstream.

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>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/scsi/ultrastor.c

index 27aa40f3980e56114ddb53847bda968a9e5d1a66..7f0eda23e1ec659b7c8390989fea9611f3e716b1 100644 (file)
@@ -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;
 }