Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: pata_cs5520: Avoid overwriting initialised field in 'cs5520_sht'

Fixes the following W=1 kernel build warning(s):

drivers/ata/pata_cs5520.c:99:19: warning: initialized field overwritten [-Woverride-init]
drivers/ata/pata_cs5520.c:99:19: note: (near initialization for ‘cs5520_sht.sg_tablesize’)

Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210528090502.1799866-8-lee.jones@linaro.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Lee Jones and committed by
Jens Axboe
98eb8a6b 76115de6

+2 -1
+2 -1
drivers/ata/pata_cs5520.c
··· 95 95 } 96 96 97 97 static struct scsi_host_template cs5520_sht = { 98 - ATA_BMDMA_SHT(DRV_NAME), 98 + ATA_BASE_SHT(DRV_NAME), 99 99 .sg_tablesize = LIBATA_DUMB_MAX_PRD, 100 + .dma_boundary = ATA_DMA_BOUNDARY, 100 101 }; 101 102 102 103 static struct ata_port_operations cs5520_port_ops = {