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

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>

authored by

Lee Jones and committed by
Jens Axboe
76115de6 7d43b828

+2 -1
+2 -1
drivers/ata/pata_atiixp.c
··· 252 252 } 253 253 254 254 static struct scsi_host_template atiixp_sht = { 255 - ATA_BMDMA_SHT(DRV_NAME), 255 + ATA_BASE_SHT(DRV_NAME), 256 256 .sg_tablesize = LIBATA_DUMB_MAX_PRD, 257 + .dma_boundary = ATA_DMA_BOUNDARY, 257 258 }; 258 259 259 260 static struct ata_port_operations atiixp_port_ops = {