lkml.org 
[lkml]   [2012]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[34-longterm 014/179] Fix Ultrastor asm snippet
    Date
    From: Samuel Thibault <samuel.thibault@ens-lyon.org>

    -------------------
    This is a commit scheduled for the next v2.6.34 longterm release.
    http://git.kernel.org/?p=linux/kernel/git/paulg/longterm-queue-2.6.34.git
    If you see a problem with using this for longterm, please comment.
    -------------------

    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 | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/scsi/ultrastor.c b/drivers/scsi/ultrastor.c
    index 27aa40f..7f0eda2 100644
    --- a/drivers/scsi/ultrastor.c
    +++ b/drivers/scsi/ultrastor.c
    @@ -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;
    }
    --
    1.7.9.6


    \
     
     \ /
      Last update: 2012-05-15 06:21    [W:0.036 / U:148.840 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site