[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210128180239.548512-11-lee.jones@linaro.org>
Date: Thu, 28 Jan 2021 18:02:29 +0000
From: Lee Jones <lee.jones@...aro.org>
To: lee.jones@...aro.org
Cc: linux-kernel@...r.kernel.org, Jens Axboe <axboe@...nel.dk>,
linux-ide@...r.kernel.org
Subject: [PATCH 10/20] ata: ahci_ceva: Ignore -Woverride-init
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/ahci_ceva.c:15:
drivers/ata/ahci.h:387:16: warning: initialized field overwritten [-Woverride-init]
drivers/ata/ahci_ceva.c:187:2: note: in expansion of macro ‘AHCI_SHT’
drivers/ata/ahci.h:387:16: note: (near initialization for ‘ahci_platform_sht.can_queue’)
drivers/ata/ahci_ceva.c:187:2: note: in expansion of macro ‘AHCI_SHT’
drivers/ata/ahci.h:391:17: warning: initialized field overwritten [-Woverride-init]
drivers/ata/ahci_ceva.c:187:2: note: in expansion of macro ‘AHCI_SHT’
drivers/ata/ahci.h:391:17: note: (near initialization for ‘ahci_platform_sht.sdev_attrs’)
drivers/ata/ahci_ceva.c:187:2: note: in expansion of macro ‘AHCI_SHT’
drivers/ata/sata_sil24.c:378:16: warning: initialized field overwritten [-Woverride-init]
drivers/ata/sata_sil24.c:378:16: note: (near initialization for ‘sil24_sht.can_queue’)
Cc: Jens Axboe <axboe@...nel.dk>
Cc: linux-ide@...r.kernel.org
Signed-off-by: Lee Jones <lee.jones@...aro.org>
---
drivers/ata/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile
index 4542f101042ac..c7460c6b94c1d 100644
--- a/drivers/ata/Makefile
+++ b/drivers/ata/Makefile
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
CFLAGS_acard-ahci.o = $(call cc-disable-warning, override-init)
+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)
--
2.25.1
Powered by blists - more mailing lists