aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-10-26 15:30:44 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-10-26 15:30:44 +0000
commit71ab1fa5df4d8a03523d4224a74a0512f92aef18 (patch)
tree578b10a05b5bbab807cca74e91b17b28db0c3386 /sys/compat
parent66d4a748cfa81266394674575cd352dc3d64b950 (diff)
downloadsrc-71ab1fa5df4d8a03523d4224a74a0512f92aef18.tar.gz
src-71ab1fa5df4d8a03523d4224a74a0512f92aef18.zip
Reporting device drivers by traversing cdevsw[] is at best a hack
which may or may not return something which is partially right. Disable the "devices" file until we find out what this is needed for, and what exactly those apps need. This will allow cdevsw to become static again. Approved by: DES
Notes
Notes: svn path=/head/; revision=85538
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linprocfs/linprocfs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
index 9e46466dabc9..bb38b51728b0 100644
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -96,8 +96,6 @@ extern int ncpus;
#include <fs/pseudofs/pseudofs.h>
#include <fs/procfs/procfs.h>
-extern struct cdevsw *cdevsw[];
-
/*
* Various conversion macros
*/
@@ -736,6 +734,9 @@ linprocfs_donetdev(PFS_FILL_ARGS)
return (0);
}
+#if 0
+extern struct cdevsw *cdevsw[];
+
/*
* Filler function for proc/devices
*/
@@ -754,6 +755,7 @@ linprocfs_dodevices(PFS_FILL_ARGS)
return (0);
}
+#endif
/*
* Filler function for proc/cmdline
@@ -798,7 +800,9 @@ linprocfs_init(PFS_INIT_ARGS)
pfs_create_file(root, #name, &linprocfs_do##name, NULL, NULL, PFS_RD)
PFS_CREATE_FILE(cmdline);
PFS_CREATE_FILE(cpuinfo);
+#if 0
PFS_CREATE_FILE(devices);
+#endif
PFS_CREATE_FILE(loadavg);
PFS_CREATE_FILE(meminfo);
#if 0