linux-2.1.85 PATCH to avoid undefined ibmmca_scsi_setup symbol

Adam J. Richter (adam@yggdrasil.com)
Wed, 4 Feb 1998 03:57:05 -0800


If you set CONFIG_SCSI to "module" and turn on CONFIG_SCSI_IBMMCA,
you will get a undefined reference to ibmmca_scsi_setup, because that
routine is inside of the loadable scsi module, not inside the main
kernel. The following one line change to init/main.c fixes that problem.

--- /tmp/linux-2.1.85/init/main.c Mon Feb 2 13:07:47 1998
+++ linux/init/main.c Wed Feb 4 03:35:07 1998
@@ -598,7 +598,7 @@
#ifdef CONFIG_SCSI_7000FASST
{ "wd7000=", wd7000_setup},
#endif
-#ifdef CONFIG_SCSI_IBMMCA
+#if defined(CONFIG_SCSI_IBMMCA) && defined(CONFIG_SCSI)
{ "ibmmcascsi=", ibmmca_scsi_setup },
#endif
#ifdef CONFIG_BLK_DEV_XD

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 205
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."