From: Lee Jones Date: Fri, 28 May 2021 09:04:57 +0000 (+0100) Subject: ata: pata_atiixp: Avoid overwriting initialised field in 'atiixp_sht' X-Git-Tag: accepted/tizen/unified/20230118.172025~7014^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76115de698d8d090bdd6463e27e0fa0b40fda033;p=platform%2Fkernel%2Flinux-rpi.git 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 Cc: ATI Inc Cc: linux-ide@vger.kernel.org Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20210528090502.1799866-7-lee.jones@linaro.org Signed-off-by: Jens Axboe --- diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c index d671d33..c3a65cc 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 = {