[PATCH 14/20] ata: sata_sil24: Ignore -Woverride-init

From: Lee Jones
Date: Thu Jan 28 2021 - 13:17:23 EST


Some ATA drivers use the SCSI host template, a series of interwoven
macros, to aid with initialisation. Some of these macros conflict,
resulting in the over-writing of previously set values.

This is known behaviour and can be safely ignored.

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

In file included from drivers/ata/sata_sil24.c:14:
drivers/ata/sata_sil24.c:381:22: note: in expansion of macro ‘BLK_TAG_ALLOC_FIFO’
drivers/ata/sata_sil24.c:381:22: note: in expansion of macro ‘BLK_TAG_ALLOC_FIFO’
drivers/ata/libata-pmp.c:76: warning: Function parameter or member 'val' not described in 'sata_pmp_write'
drivers/ata/libata-pmp.c:76: warning: Excess function parameter 'r_val' description in 'sata_pmp_write'

Cc: Jens Axboe <axboe@xxxxxxxxx>
Cc: linux-ide@xxxxxxxxxxxxxxx
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
drivers/ata/Makefile | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile
index c7460c6b94c1d..d46703777cdd4 100644
--- a/drivers/ata/Makefile
+++ b/drivers/ata/Makefile
@@ -5,6 +5,7 @@ CFLAGS_ahci_ceva.o = $(call cc-disable-warning, override-init)
CFLAGS_ahci_dm816.o = $(call cc-disable-warning, override-init)
CFLAGS_ahci_mtk.o = $(call cc-disable-warning, override-init)
CFLAGS_ahci_platform.o = $(call cc-disable-warning, override-init)
+CFLAGS_sata_sil24.o = $(call cc-disable-warning, override-init)

obj-$(CONFIG_ATA) += libata.o

--
2.25.1