patch-2.1.32 linux/fs/proc/root.c
Next file: linux/fs/smbfs/sock.c
Previous file: linux/fs/nfsd/vfs.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sat Apr 5 12:14:20 1997
- Orig file:
v2.1.31/linux/fs/proc/root.c
- Orig date:
Mon Mar 17 14:54:31 1997
diff -u --recursive --new-file v2.1.31/linux/fs/proc/root.c linux/fs/proc/root.c
@@ -137,6 +137,7 @@
};
#endif
+#ifdef CONFIG_SYSCTL
struct proc_dir_entry proc_sys_root = {
PROC_SYS, 3, "sys", /* inode, name */
S_IFDIR | S_IRUGO | S_IXUGO, 2, 0, 0, /* mode, nlink, uid, gid */
@@ -145,6 +146,7 @@
NULL, /* next */
NULL, NULL /* parent, subdir */
};
+#endif
#if defined(CONFIG_SUN_OPENPROMFS) || defined(CONFIG_SUN_OPENPROMFS_MODULE)
@@ -556,7 +558,9 @@
proc_register(&proc_root, &proc_root_self);
proc_net = create_proc_entry("net", S_IFDIR, 0);
proc_scsi = create_proc_entry("scsi", S_IFDIR, 0);
+#ifdef CONFIG_SYSCTL
proc_register(&proc_root, &proc_sys_root);
+#endif
#ifdef CONFIG_MCA
proc_register(&proc_root, &proc_mca);
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov