• Lee Jones's avatar
    ata: sata_nv: Do not over-write initialise fields in 'nv_adma_sht' and 'nv_swncq_sht' · 7d43b828
    Lee Jones authored
    Fixes the following W=1 kernel build warning(s):
    
     drivers/ata/sata_nv.c:379:16: warning: initialized field overwritten [-Woverride-init]
     drivers/ata/sata_nv.c:379:16: note: (near initialization for ‘nv_adma_sht.can_queue’)
     drivers/ata/sata_nv.c:382:21: warning: initialized field overwritten [-Woverride-init]
     drivers/ata/sata_nv.c:382:21: note: (near initialization for ‘nv_adma_sht.slave_configure’)
     drivers/ata/sata_nv.c:387:16: warning: initialized field overwritten [-Woverride-init]
     drivers/ata/sata_nv.c:387:16: note: (near initialization for ‘nv_swncq_sht.can_queue’)
     drivers/ata/sata_nv.c:390:21: warning: initialized field overwritten [-Woverride-init]
     drivers/ata/sata_nv.c:390:21: note: (near initialization for ‘nv_swncq_sht.slave_configure’)
    
    Cc: Jens Axboe <axboe@kernel.dk>
    Cc: linux-ide@vger.kernel.org
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    Link: https://lore.kernel.org/r/20210528090502.1799866-6-lee.jones@linaro.orgSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
    7d43b828
sata_nv.c 66.9 KB