]> 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>
Sat, 13 Apr 2024 10:50:14 +0000 (12:50 +0200)
commitb9bacf4b0e12ae9963774e4de9ddc6631ba65343
treebc2951162a1556101f50fb6ee84224e320a4aaae
parent81e38e4e2c756c95267c758bf683b35ce0ca77b1
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