[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ebc412c1-1fff-4dea-8efa-c062b66982cc@kernel.org>
Date: Thu, 31 Jul 2025 12:55:14 +0900
From: Damien Le Moal <dlemoal@...nel.org>
To: Arnd Bergmann <arnd@...nel.org>, Khalid Aziz <khalid@...ehiking.org>,
"James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Masahiro Yamada <masahiroy@...nel.org>, Alexey Gladkov <legion@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>, Geoff Levand <geoff@...radead.org>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Bart Van Assche <bvanassche@....org>, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: buslogic: mark blogic_pci_tbl as __maybe_unused
On 7/31/25 6:44 AM, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> A previous patch removed an #ifdef check around the array definition, but
> this is not actually used when the driver is built-in, and now causes
> a warning when -Wunused-const-variable is set:
>
> drivers/scsi/BusLogic.c:3727:35: error: 'blogic_pci_tbl' defined but not used [-Werror=unused-const-variable=]
>
> Mark it as __maybe_unused for this configuration.
>
> Ideally this should be fixed instead by using the array as part of
> a pci_driver definition, instead of the linux-2.4 style manual bus
> scan.
>
> Fixes: 204689f0ea20 ("scsi: Always define blogic_pci_tbl structure")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Reviewed-by: Damien Le Moal <dlemoal@...nel.org>
--
Damien Le Moal
Western Digital Research
Powered by blists - more mailing lists