[PATCH] Get rid of /proc/sys/debug

From: Stephen Hemminger
Date: Wed Jun 07 2006 - 17:35:00 EST


Another empty table with no entries.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
--- sky2.orig/include/linux/sysctl.h 2006-06-07 14:12:29.000000000 -0700
+++ sky2/include/linux/sysctl.h 2006-06-07 14:20:15.000000000 -0700
@@ -57,7 +57,7 @@
CTL_NET=3, /* Networking */
/* was CTL_PROC */
CTL_FS=5, /* Filesystems */
- CTL_DEBUG=6, /* Debugging */
+ /* was CTL_DEBUG */
CTL_DEV=7, /* Devices */
CTL_BUS=8, /* Busses */
CTL_ABI=9, /* Binary emulation */
@@ -800,8 +800,6 @@
FS_DQ_WARNINGS = 9,
};

-/* CTL_DEBUG names: */
-
/* CTL_DEV names: */
enum {
DEV_CDROM=1,
--- sky2.orig/kernel/sysctl.c 2006-06-07 14:06:38.000000000 -0700
+++ sky2/kernel/sysctl.c 2006-06-07 14:18:34.000000000 -0700
@@ -143,7 +143,6 @@
static ctl_table kern_table[];
static ctl_table vm_table[];
static ctl_table fs_table[];
-static ctl_table debug_table[];
static ctl_table dev_table[];
extern ctl_table random_table[];
#ifdef CONFIG_UNIX98_PTYS
@@ -207,12 +206,6 @@
.child = fs_table,
},
{
- .ctl_name = CTL_DEBUG,
- .procname = "debug",
- .mode = 0555,
- .child = debug_table,
- },
- {
.ctl_name = CTL_DEV,
.procname = "dev",
.mode = 0555,
@@ -1037,10 +1030,6 @@
{ .ctl_name = 0 }
};

-static ctl_table debug_table[] = {
- { .ctl_name = 0 }
-};
-
static ctl_table dev_table[] = {
{ .ctl_name = 0 }
};
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/