aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/sysctl.h3
-rw-r--r--kernel/sysctl.c44
2 files changed, 0 insertions, 47 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 7c4aabc04673..4e40442777cf 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -1033,7 +1033,6 @@ extern ctl_handler sysctl_ms_jiffies;
1033/* A sysctl table is an array of struct ctl_table: */ 1033/* A sysctl table is an array of struct ctl_table: */
1034struct ctl_table 1034struct ctl_table
1035{ 1035{
1036 int ctl_name; /* Binary ID */
1037 const char *procname; /* Text ID for /proc/sys, or zero */ 1036 const char *procname; /* Text ID for /proc/sys, or zero */
1038 void *data; 1037 void *data;
1039 int maxlen; 1038 int maxlen;
@@ -1041,7 +1040,6 @@ struct ctl_table
1041 struct ctl_table *child; 1040 struct ctl_table *child;
1042 struct ctl_table *parent; /* Automatically set */ 1041 struct ctl_table *parent; /* Automatically set */
1043 proc_handler *proc_handler; /* Callback for text formatting */ 1042 proc_handler *proc_handler; /* Callback for text formatting */
1044 ctl_handler *strategy; /* Callback function for all r/w */
1045 void *extra1; 1043 void *extra1;
1046 void *extra2; 1044 void *extra2;
1047}; 1045};
@@ -1075,7 +1073,6 @@ struct ctl_table_header
1075/* struct ctl_path describes where in the hierarchy a table is added */ 1073/* struct ctl_path describes where in the hierarchy a table is added */
1076struct ctl_path { 1074struct ctl_path {
1077 const char *procname; 1075 const char *procname;
1078 int ctl_name;
1079}; 1076};
1080 1077
1081void register_sysctl_root(struct ctl_table_root *root); 1078void register_sysctl_root(struct ctl_table_root *root);
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index b6b6eb1abebb..b4a5763d6dc8 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1699,8 +1699,6 @@ static void try_attach(struct ctl_table_header *p, struct ctl_table_header *q)
1699 * 1699 *
1700 * The members of the &struct ctl_table structure are used as follows: 1700 * The members of the &struct ctl_table structure are used as follows:
1701 * 1701 *
1702 * ctl_name - Dead
1703 *
1704 * procname - the name of the sysctl file under /proc/sys. Set to %NULL to not 1702 * procname - the name of the sysctl file under /proc/sys. Set to %NULL to not
1705 * enter a sysctl file 1703 * enter a sysctl file
1706 * 1704 *
@@ -1715,8 +1713,6 @@ static void try_attach(struct ctl_table_header *p, struct ctl_table_header *q)
1715 * 1713 *
1716 * proc_handler - the text handler routine (described below) 1714 * proc_handler - the text handler routine (described below)
1717 * 1715 *
1718 * strategy - Dead
1719 *
1720 * de - for internal use by the sysctl routines 1716 * de - for internal use by the sysctl routines
1721 * 1717 *
1722 * extra1, extra2 - extra pointers usable by the proc handler routines 1718 * extra1, extra2 - extra pointers usable by the proc handler routines
@@ -2639,41 +2635,6 @@ int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int write,
2639 2635
2640#endif /* CONFIG_PROC_FS */ 2636#endif /* CONFIG_PROC_FS */
2641 2637
2642int sysctl_data(struct ctl_table *table,
2643 void __user *oldval, size_t __user *oldlenp,
2644 void __user *newval, size_t newlen)
2645{
2646 return -ENOSYS;
2647}
2648
2649int sysctl_string(struct ctl_table *table,
2650 void __user *oldval, size_t __user *oldlenp,
2651 void __user *newval, size_t newlen)
2652{
2653 return -ENOSYS;
2654}
2655
2656int sysctl_intvec(struct ctl_table *table,
2657 void __user *oldval, size_t __user *oldlenp,
2658 void __user *newval, size_t newlen)
2659{
2660 return -ENOSYS;
2661}
2662
2663int sysctl_jiffies(struct ctl_table *table,
2664 void __user *oldval, size_t __user *oldlenp,
2665 void __user *newval, size_t newlen)
2666{
2667 return -ENOSYS;
2668}
2669
2670int sysctl_ms_jiffies(struct ctl_table *table,
2671 void __user *oldval, size_t __user *oldlenp,
2672 void __user *newval, size_t newlen)
2673{
2674 return -ENOSYS;
2675}
2676
2677/* 2638/*
2678 * No sense putting this after each symbol definition, twice, 2639 * No sense putting this after each symbol definition, twice,
2679 * exception granted :-) 2640 * exception granted :-)
@@ -2688,9 +2649,4 @@ EXPORT_SYMBOL(proc_doulongvec_minmax);
2688EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax); 2649EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax);
2689EXPORT_SYMBOL(register_sysctl_table); 2650EXPORT_SYMBOL(register_sysctl_table);
2690EXPORT_SYMBOL(register_sysctl_paths); 2651EXPORT_SYMBOL(register_sysctl_paths);
2691EXPORT_SYMBOL(sysctl_intvec);
2692EXPORT_SYMBOL(sysctl_jiffies);
2693EXPORT_SYMBOL(sysctl_ms_jiffies);
2694EXPORT_SYMBOL(sysctl_string);
2695EXPORT_SYMBOL(sysctl_data);
2696EXPORT_SYMBOL(unregister_sysctl_table); 2652EXPORT_SYMBOL(unregister_sysctl_table);