• Ben Dooks's avatar
    ata: sata_mv: fix mis-conversion in mv_write_cached_reg() · 76bf3441
    Ben Dooks authored
    Fix the signed issue in mv_write_cached_reg() where the laddr
    is assigned from a (long)addr instead of (unsigned long)addr.
    
    Fixes the following warnings:
    
    drivers/ata/sata_mv.c:989:26: warning: cast removes address space of expression
    drivers/ata/sata_mv.c:989:26: warning: cast removes address space of expression
    drivers/ata/sata_mv.c:989:26: warning: cast removes address space of expression
    drivers/ata/sata_mv.c:989:26: warning: cast removes address space of expression
    Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    76bf3441
sata_mv.c 123 KB