drivers/scsi/ultrastor.c: fix asm snippet
PATCH 6/6 drivers/scsi/ultrastor.c: fix asm snippet
From: Samuel Thibault <[email protected]>
Commit 1292500b ("ultrastor: clean up inline asm warnings") 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 <[email protected]>
Cc Frederik Deweerdt <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/ultrastor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/ultrastor.c renamed from drivers/scsi/ultrastor.c~drivers-scsi-ultrastorc-fix-asm-snippet +1 -1
@@ -307,7 +307,7 @@ static inline int find_and_clear_bit_16("0: bsfw %1,%w0\n\t" "btr %0,%1\n\t" "jnc 0b" - : "=&r" (rv), "=m" (*field) :); + : "=&r" (rv), "+m" (*field) :); return rv; }
_