Messages in this thread Patch in this message | | | Date | Fri, 9 Jan 2004 02:52:30 +0100 | From | Adrian Bunk <> | Subject | [patch] 2.6.1-rc2-mm1: qla1280.c doesn't compile |
| |
On Wed, Jan 07, 2004 at 11:28:31PM -0800, Andrew Morton wrote: >... > Changes since 2.6.1-rc1-mm2: >... > -qla1280-update.patch > +qla1280-update-2.patch > > Updated qlogic patch >...
I got the following compile error when trying to compile this driver statically into a kernel with hotplug enabled:
<-- snip -->
... drivers/scsi/qla1280.c:4849: error: `qla1280_remove_one' undeclared here (not in a function) drivers/scsi/qla1280.c:4849: error: initializer element is not constant drivers/scsi/qla1280.c:4849: error: (near initialization for `qla1280_pci_driver.remove') make[2]: *** [drivers/scsi/qla1280.o] Error 1
<-- snip -->
Since I don't see a good reason why qla1280_remove_one is #ifdef'ed out in the non-modular case the patch below fixes this problem by removing two #ifdef's.
cu Adrian
--- linux-2.6.1-rc2-mm1/drivers/scsi/qla1280.c.old 2004-01-08 22:40:54.000000000 +0100 +++ linux-2.6.1-rc2-mm1/drivers/scsi/qla1280.c 2004-01-08 22:42:46.000000000 +0100 @@ -480,9 +480,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) static void qla1280_remove_one(struct pci_dev *); -#endif /* * QLogic Driver Support Function Prototypes. @@ -4807,7 +4805,6 @@ } -#if defined(CONFIG_SCSI_QLOGIC_1280_MODULE) || (LINUX_VERSION_CODE < 0x020600) static void __devexit qla1280_remove_one(struct pci_dev *pdev) { @@ -4839,7 +4836,6 @@ scsi_host_put(host); } -#endif #if LINUX_VERSION_CODE >= 0x020600 static struct pci_driver qla1280_pci_driver = { - 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/
| |