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

Next file: linux/drivers/scsi/scsi.h
Previous file: linux/drivers/scsi/g_NCR5380.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.59/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -82,8 +82,9 @@
                  struct Scsi_Host *shpnt, char * scsi_result);
 void scsi_build_commandblocks(Scsi_Device * SDpnt);
 
+#ifdef CONFIG_MODULES
 extern struct symbol_table scsi_symbol_table;
-
+#endif
 
 static FreeSectorBitmap * dma_malloc_freelist = NULL;
 static int scsi_need_isa_bounce_buffers;
@@ -2331,7 +2332,9 @@
     timer_table[SCSI_TIMER].fn = scsi_main_timeout;
     timer_table[SCSI_TIMER].expires = 0;
 
+#ifdef CONFIG_MODULES
     register_symtab(&scsi_symbol_table);
+#endif    
 
     /* Register the /proc/scsi/scsi entry */
 #if CONFIG_PROC_FS 

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