]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: fdomain: drop fdomain_pci_tbl when built-in
authorArnd Bergmann <arnd@arndb.de>
Wed, 27 Jan 2016 15:57:17 +0000 (16:57 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commitc258b5c7fc8a37c09c5cc498d32130c7e0562d85
tree3d4ef381ac5908c725683ee3790701d0fa40c92e
parenta8cd629d99dac77362100a978400934d6cef72ef
scsi: fdomain: drop fdomain_pci_tbl when built-in

The fdomain SCSI host driver is one of the last remaining drivers that
manually search the PCI bus using pci_get_device rather than registering
a pci_driver instance.

This means the module device table is unused when the driver is
built-in, and we get a warning about it:

drivers/scsi/fdomain.c:1773:29: warning: 'fdomain_pci_tbl' defined but not used [-Wunused-variable]

To avoid the warning, this adds another #ifdef around the table
definition.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fdomain.c