Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1273177 > unrolled thread

[PATCH] [RESEND 2] SCSI: initio: remove duplicate module device table

Started byArnd Bergmann <arnd@arndb.de>
First post2015-11-19 15:40 +0100
Last post2015-11-20 17:50 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] [RESEND 2] SCSI: initio: remove duplicate module device table Arnd Bergmann <arnd@arndb.de> - 2015-11-19 15:40 +0100
    Re: [PATCH] [RESEND 2] SCSI: initio: remove duplicate module  device table Christoph Hellwig <hch@lst.de> - 2015-11-20 11:20 +0100
    Re: [PATCH] [RESEND 2] SCSI: initio: remove duplicate module device table "Martin K. Petersen" <martin.petersen@oracle.com> - 2015-11-20 17:50 +0100

#1273177 — [PATCH] [RESEND 2] SCSI: initio: remove duplicate module device table

FromArnd Bergmann <arnd@arndb.de>
Date2015-11-19 15:40 +0100
Subject[PATCH] [RESEND 2] SCSI: initio: remove duplicate module device table
Message-ID<qwyxs-25Z-17@gated-at.bofh.it>
The initio driver has for many years had two copies of the
same module device table. One of them is also used for registering
the other driver, the other one is entirely useless after the
large scale cleanup that Alan Cox did back in 2007.

The compiler warns about this whenever the driver is built-in:

drivers/scsi/initio.c:131:29: warning: 'i91u_pci_devices' defined but not used [-Wunused-variable]

This removes the extraneous table and the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 72d39fea901 ("[SCSI] initio: Convert into a real Linux driver and update to modern style")
---
I sent this patch originally in January 2015, then again in May, but got no
reply. Please apply.

diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c
index 6a926bae76b2..7a91cf3ff173 100644
--- a/drivers/scsi/initio.c
+++ b/drivers/scsi/initio.c
@@ -110,11 +110,6 @@
 #define i91u_MAXQUEUE		2
 #define i91u_REVID "Initio INI-9X00U/UW SCSI device driver; Revision: 1.04a"
 
-#define I950_DEVICE_ID	0x9500	/* Initio's inic-950 product ID   */
-#define I940_DEVICE_ID	0x9400	/* Initio's inic-940 product ID   */
-#define I935_DEVICE_ID	0x9401	/* Initio's inic-935 product ID   */
-#define I920_DEVICE_ID	0x0002	/* Initio's other product ID      */
-
 #ifdef DEBUG_i91u
 static unsigned int i91u_debug = DEBUG_DEFAULT;
 #endif
@@ -127,17 +122,6 @@ static int setup_debug = 0;
 
 static void i91uSCBPost(u8 * pHcb, u8 * pScb);
 
-/* PCI Devices supported by this driver */
-static struct pci_device_id i91u_pci_devices[] = {
-	{ PCI_VENDOR_ID_INIT,  I950_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
-	{ PCI_VENDOR_ID_INIT,  I940_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
-	{ PCI_VENDOR_ID_INIT,  I935_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
-	{ PCI_VENDOR_ID_INIT,  I920_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
-	{ PCI_VENDOR_ID_DOMEX, I920_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
-	{ }
-};
-MODULE_DEVICE_TABLE(pci, i91u_pci_devices);
-
 #define DEBUG_INTERRUPT 0
 #define DEBUG_QUEUE     0
 #define DEBUG_STATE     0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1273941 — Re: [PATCH] [RESEND 2] SCSI: initio: remove duplicate module device table

FromChristoph Hellwig <hch@lst.de>
Date2015-11-20 11:20 +0100
SubjectRe: [PATCH] [RESEND 2] SCSI: initio: remove duplicate module device table
Message-ID<qwQXp-5SQ-39@gated-at.bofh.it>
In reply to#1273177
Looks fine,

Reviewed-by: Christoph Hellwig <hch@lst.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1274250

From"Martin K. Petersen" <martin.petersen@oracle.com>
Date2015-11-20 17:50 +0100
Message-ID<qwX2O-1hA-23@gated-at.bofh.it>
In reply to#1273177
>>>>> "Arnd" == Arnd Bergmann <arnd@arndb.de> writes:

Arnd> The initio driver has for many years had two copies of the same
Arnd> module device table. One of them is also used for registering the
Arnd> other driver, the other one is entirely useless after the large
Arnd> scale cleanup that Alan Cox did back in 2007.

Applied.

-- 
Martin K. Petersen	Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web