diff options
author | Lee Jones <lee.jones@linaro.org> | 2021-05-28 12:05:01 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-16 15:50:26 +0300 |
commit | ec3d95182b491b1e8cdd470748f133d4c7934f4c (patch) | |
tree | bfaa4ccba1f5e79c827cdd48d76c273e8150c4dc /drivers/ata | |
parent | 160be1bc0bc3c42db845f8f0c334a05577bfe369 (diff) | |
download | linux-ec3d95182b491b1e8cdd470748f133d4c7934f4c.tar.xz |
ata: pata_serverworks: Avoid overwriting initialised field in 'serverworks_osb4_sht
Fixes the following W=1 kernel build warning(s):
drivers/ata/pata_serverworks.c:257:18: warning: initialized field overwritten [-Woverride-init]
drivers/ata/pata_serverworks.c:257:18: note: (near initialization for ‘serverworks_osb4_sht.sg_tablesize’)
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Andre Hedrick <andre@linux-ide.org>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210528090502.1799866-11-lee.jones@linaro.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/pata_serverworks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/pata_serverworks.c b/drivers/ata/pata_serverworks.c index 7511e11eef4d..b602e303fb54 100644 --- a/drivers/ata/pata_serverworks.c +++ b/drivers/ata/pata_serverworks.c @@ -253,8 +253,9 @@ static void serverworks_set_dmamode(struct ata_port *ap, struct ata_device *adev } static struct scsi_host_template serverworks_osb4_sht = { - ATA_BMDMA_SHT(DRV_NAME), + ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_DUMB_MAX_PRD, + .dma_boundary = ATA_DMA_BOUNDARY, }; static struct scsi_host_template serverworks_csb_sht = { |