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

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

diff -u --recursive --new-file v2.2.0-pre1/linux/drivers/scsi/eata_dma_proc.c linux/drivers/scsi/eata_dma_proc.c
@@ -1,3 +1,4 @@
+#include <linux/config.h>
 
 void swap_statistics(u8 *p)
 {
@@ -68,6 +69,8 @@
 		   int hostno, int inout)
 {
 
+#ifdef CONFIG_PROC_FS
+
     Scsi_Device *scd, SDev;
     struct Scsi_Host *HBA_ptr;
     Scsi_Cmnd scmd;
@@ -466,6 +469,9 @@
     DBG(DBG_PROC, printk("3pos: %ld offset: %ld len: %d\n", pos, offset, len));
     
     return (len);     
+#else /* CONFIG_PROC_FS */
+    return 0;
+#endif        
 }
 
 /*

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