]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ata: sata_mv: Fix PCI device ID table declaration compilation warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 3 Apr 2024 08:06:48 +0000 (10:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:14 +0000 (16:38 +0200)
commitbe6ae72e5859bc6771f88aaf8a6209b485f4c01a
treec0c4e0d3fb5b42bcbe05b1a84f4f48b281356f52
parent029de20869d1a96b72badb348721efb6b9809302
ata: sata_mv: Fix PCI device ID table declaration compilation warning

[ Upstream commit 3137b83a90646917c90951d66489db466b4ae106 ]

Building with W=1 shows a warning for an unused variable when CONFIG_PCI
is diabled:

drivers/ata/sata_mv.c:790:35: error: unused variable 'mv_pci_tbl' [-Werror,-Wunused-const-variable]
static const struct pci_device_id mv_pci_tbl[] = {

Move the table into the same block that containsn the pci_driver
definition.

Fixes: 7bb3c5290ca0 ("sata_mv: Remove PCI dependency")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/sata_mv.c