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
- Lines: 24
- Date:
Tue Dec 29 11:35:48 1998
- Orig file:
v2.2.0-pre1/linux/drivers/scsi/eata_dma_proc.c
- Orig date:
Sun Dec 21 17:04:49 1997
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