summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2021-05-28 11:05:00 +0200
committerJens Axboe <axboe@kernel.dk>2021-06-16 14:50:25 +0200
commit160be1bc0bc3c42db845f8f0c334a05577bfe369 (patch)
treef6d6d0e4d539199e4d05127a2bc898a8d9fa6b8a
parentata: pata_cs5530: Avoid overwriting initialised field in 'cs5530_sht' (diff)
downloadlinux-160be1bc0bc3c42db845f8f0c334a05577bfe369.tar.xz
linux-160be1bc0bc3c42db845f8f0c334a05577bfe369.zip
ata: pata_sc1200: sc1200_sht'Avoid overwriting initialised field in '
Fixes the following W=1 kernel build warning(s): drivers/ata/pata_sc1200.c:197:18: warning: initialized field overwritten [-Woverride-init] drivers/ata/pata_sc1200.c:197:18: note: (near initialization for ‘sc1200_sht.sg_tablesize’) Cc: Jens Axboe <axboe@kernel.dk> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Mark Lord <mlord@pobox.com> Cc: linux-ide@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20210528090502.1799866-10-lee.jones@linaro.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--drivers/ata/pata_sc1200.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/pata_sc1200.c b/drivers/ata/pata_sc1200.c
index 3b8c111140bd..f28daf62a37d 100644
--- a/drivers/ata/pata_sc1200.c
+++ b/drivers/ata/pata_sc1200.c
@@ -193,8 +193,9 @@ static int sc1200_qc_defer(struct ata_queued_cmd *qc)
}
static struct scsi_host_template sc1200_sht = {
- ATA_BMDMA_SHT(DRV_NAME),
+ ATA_BASE_SHT(DRV_NAME),
.sg_tablesize = LIBATA_DUMB_MAX_PRD,
+ .dma_boundary = ATA_DMA_BOUNDARY,
};
static struct ata_port_operations sc1200_port_ops = {