patch-2.1.92 linux/drivers/block/ide-tape.c

Next file: linux/drivers/block/ide.c
Previous file: linux/drivers/block/ide-proc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.91/linux/drivers/block/ide-tape.c linux/drivers/block/ide-tape.c
@@ -3640,6 +3640,8 @@
 	return 0;
 }
 
+#ifdef CONFIG_PROC_FS
+
 static int proc_idetape_read_name
 	(char *page, char **start, off_t off, int count, int *eof, void *data)
 {
@@ -3653,9 +3655,15 @@
 }
 
 static ide_proc_entry_t idetape_proc[] = {
-	{ "name", proc_idetape_read_name, NULL },
-	{ NULL, NULL, NULL }
+	{ "name",	S_IFREG|S_IRUGO,	proc_idetape_read_name,	NULL },
+	{ NULL, 0, NULL, NULL }
 };
+
+#else
+
+#define	idetape_proc	NULL
+
+#endif
 
 /*
  *	IDE subdriver functions, registered with ide.c

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