patch-1.3.52 linux/drivers/scsi/scsi.c

Next file: linux/drivers/scsi/sg.c
Previous file: linux/drivers/pci/pci.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.51/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -2147,8 +2147,10 @@
 
 #define MALLOC_PAGEBITS 12
 
+#ifdef CONFIG_MODULES
 static int scsi_register_host(Scsi_Host_Template *);
 static void scsi_unregister_host(Scsi_Host_Template *);
+#endif
 
 void *scsi_malloc(unsigned int len)
 {
@@ -2638,6 +2640,8 @@
     restore_flags(flags);
 }
 
+#ifdef CONFIG_MODULES		/* a big #ifdef block... */
+
 /*
  * This entry point should be called by a loadable module if it is trying
  * add a low level scsi driver to the system.
@@ -3043,6 +3047,8 @@
     }
     return;
 }
+
+#endif		/* CONFIG_MODULES */
 
 #ifdef DEBUG_TIMEOUT
 static void

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this