Skip to content

Commit

Permalink
[SCSI] Fix Ultrastor asm snippet
Browse files Browse the repository at this point in the history
Commit 1292500 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>
  • Loading branch information
Samuel Thibault authored and James Bottomley committed May 24, 2011
1 parent 6e2037b commit fad4dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/ultrastor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fad4dab

Please sign in to comment.