patch-2.2.0-pre2 linux/drivers/scsi/eata_pio_proc.c
Next file: linux/drivers/scsi/fdomain.c
Previous file: linux/drivers/scsi/eata_pio.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Tue Dec 29 11:35:48 1998
- Orig file:
v2.2.0-pre1/linux/drivers/scsi/eata_pio_proc.c
- Orig date:
Sun Dec 21 17:04:49 1997
diff -u --recursive --new-file v2.2.0-pre1/linux/drivers/scsi/eata_pio_proc.c linux/drivers/scsi/eata_pio_proc.c
@@ -1,3 +1,5 @@
+#include <linux/config.h>
+
/*
* eata_set_info
* buffer : pointer to the data that has been written to the hostfile
@@ -24,7 +26,7 @@
int eata_pio_proc_info(char *buffer, char **start, off_t offset, int length,
int hostno, int inout)
{
-
+#ifdef CONFIG_PROC_FS
Scsi_Device *scd;
struct Scsi_Host *HBA_ptr;
static u8 buff[512];
@@ -108,6 +110,9 @@
DBG(DBG_PROC, printk("3pos: %ld offset: %ld len: %d\n", pos, offset, len));
return (len);
+#else
+ return 0;
+#endif
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov