patch-2.2.0-pre2 linux/drivers/scsi/advansys.c

Next file: linux/drivers/scsi/eata_dma.c
Previous file: linux/drivers/scsi/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre1/linux/drivers/scsi/advansys.c linux/drivers/scsi/advansys.c
@@ -3941,6 +3941,8 @@
 advansys_proc_info(char *buffer, char **start, off_t offset, int length, 
                    int hostno, int inout)
 {
+#ifdef CONFIG_PROC_FS
+
     struct Scsi_Host    *shp;
     asc_board_t         *boardp;
     int                 i;
@@ -4147,9 +4149,12 @@
     ASC_DBG1(1, "advansys_proc_info: totcnt %d\n", totcnt);
 
     return totcnt;
+#else /* CONFIG_PROC_FS */
+    return 0;
+#endif /* CONFIG_PROC_FS */
+
 }
 #endif /* version >= v1.3.0 */
-
 /*
  * advansys_detect()
  *

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov