public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] qla1280 compile fix for CONFIG_HOTPLUG in 2.6
@ 2004-01-12 12:47 Jes Sorensen
  2004-01-12 15:10 ` Christoph Hellwig
  2004-01-12 15:11 ` James Bottomley
  0 siblings, 2 replies; 5+ messages in thread
From: Jes Sorensen @ 2004-01-12 12:47 UTC (permalink / raw)
  To: akpm; +Cc: linux-scsi, James.Bottomley

Hi Andrew,

Would you mind adding this patch on top of 2.6.1-mmX. It fixes a compile
problem with the 1280 driver when compiling it statically into the
kernel when CONFIG_HOTPLUG is enabled in 2.6.

Thanks,
Jes

--- orig/linux-2.6.0-test11-ia64/drivers/scsi/qla1280.c	Tue Jan  6 04:22:31 2004
+++ linux-2.6.0-test11-ia64/drivers/scsi/qla1280.c	Mon Jan 12 03:08:58 2004
@@ -20,6 +20,8 @@
 #define QLA1280_VERSION      "3.24.1"
 /*****************************************************************************
     Revision History:
+    Rev  3.24.2 January 12, 2004, Jes Sorensen
+	- Fix static compile with CONFIG_HOTPLUG enabled
     Rev  3.24.1 January 5, 2004, Jes Sorensen
 	- Initialize completion queue to avoid OOPS on probe
 	- Handle interrupts during mailbox testing
@@ -481,7 +483,7 @@
 #endif
 
 static int qla1280_probe_one(struct pci_dev *, const struct pci_device_id *);
-#if defined(CONFIG_SCSI_QLOGIC_1280_MODULE) || (LINUX_VERSION_CODE < 0x020600)
+#if defined(CONFIG_SCSI_QLOGIC_1280_MODULE) || (LINUX_VERSION_CODE < 0x020600) || defined(CONFIG_HOTPLUG)
 static void qla1280_remove_one(struct pci_dev *);
 #endif
 
@@ -4812,7 +4814,7 @@
 }
 
 
-#if defined(CONFIG_SCSI_QLOGIC_1280_MODULE) || (LINUX_VERSION_CODE < 0x020600)
+#if defined(CONFIG_SCSI_QLOGIC_1280_MODULE) || (LINUX_VERSION_CODE < 0x020600) || defined(CONFIG_HOTPLUG)
 static void __devexit
 qla1280_remove_one(struct pci_dev *pdev)
 {

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-12 19:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-12 12:47 [patch] qla1280 compile fix for CONFIG_HOTPLUG in 2.6 Jes Sorensen
2004-01-12 15:10 ` Christoph Hellwig
2004-01-12 15:15   ` Jes Sorensen
2004-01-12 19:37     ` Christoph Hellwig
2004-01-12 15:11 ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox