From: Arnd Bergmann Date: Wed, 27 Jan 2016 15:57:17 +0000 (+0100) Subject: scsi: fdomain: drop fdomain_pci_tbl when built-in X-Git-Tag: v4.1.50~94 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=239214b46584cd951fe4fff1b99b951a53ab3af6;p=users%2Fdwmw2%2Flinux.git scsi: fdomain: drop fdomain_pci_tbl when built-in [ Upstream commit 120f83f8d6f2e2e7dea3570646722c62ecee70b0 ] 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 Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c index fff682976c562..466d0a30aae7e 100644 --- a/drivers/scsi/fdomain.c +++ b/drivers/scsi/fdomain.c @@ -1769,7 +1769,7 @@ struct scsi_host_template fdomain_driver_template = { }; #ifndef PCMCIA -#ifdef CONFIG_PCI +#if defined(CONFIG_PCI) && defined(MODULE) static struct pci_device_id fdomain_pci_tbl[] = { { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70,