diff options
author | Lee Jones <lee.jones@linaro.org> | 2021-05-28 12:04:57 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-16 15:50:25 +0300 |
commit | 76115de698d8d090bdd6463e27e0fa0b40fda033 (patch) | |
tree | 820d61fcadf9b6e875f5c7e0a21dd2a2587a1bac /drivers/ata | |
parent | 7d43b8283eb23d7c042d2376c86d2d27365c3ed0 (diff) | |
download | linux-76115de698d8d090bdd6463e27e0fa0b40fda033.tar.xz |
ata: pata_atiixp: Avoid overwriting initialised field in 'atiixp_sht'
Fixes the following W=1 kernel build warning(s):
drivers/ata/pata_atiixp.c:256:19: warning: initialized field overwritten [-Woverride-init]
drivers/ata/pata_atiixp.c:256:19: note: (near initialization for ‘atiixp_sht.sg_tablesize’)
Cc: Jens Axboe <axboe@kernel.dk>
Cc: ATI Inc <hyu@ati.com>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210528090502.1799866-7-lee.jones@linaro.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/pata_atiixp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c index d671d33ef287..c3a65ccd4b79 100644 --- a/drivers/ata/pata_atiixp.c +++ b/drivers/ata/pata_atiixp.c @@ -252,8 +252,9 @@ static void atiixp_bmdma_stop(struct ata_queued_cmd *qc) } static struct scsi_host_template atiixp_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 atiixp_port_ops = { |