diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-05 16:32:03 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-12 05:05:06 -0500 |
commit | f8572d8f2a2ba75408b97dc24ef47c83671795d7 (patch) | |
tree | 052506a457939fea00d138d3a982d778df34e14c /net/x25 | |
parent | 86b1bc68e2f4244e4ea5db5458df9d19259fbb30 (diff) |
sysctl net: Remove unused binary sysctl code
Now that sys_sysctl is a compatiblity wrapper around /proc/sys
all sysctl strategy routines, and all ctl_name and strategy
entries in the sysctl tables are unused, and can be
revmoed.
In addition neigh_sysctl_register has been modified to no longer
take a strategy argument and it's callers have been modified not
to pass one.
Cc: "David Miller" <davem@davemloft.net>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: netdev@vger.kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'net/x25')
-rw-r--r-- | net/x25/sysctl_net_x25.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/net/x25/sysctl_net_x25.c b/net/x25/sysctl_net_x25.c index a5d3416522de..d2efd29f434e 100644 --- a/net/x25/sysctl_net_x25.c +++ b/net/x25/sysctl_net_x25.c | |||
@@ -19,62 +19,51 @@ static struct ctl_table_header *x25_table_header; | |||
19 | 19 | ||
20 | static struct ctl_table x25_table[] = { | 20 | static struct ctl_table x25_table[] = { |
21 | { | 21 | { |
22 | .ctl_name = NET_X25_RESTART_REQUEST_TIMEOUT, | ||
23 | .procname = "restart_request_timeout", | 22 | .procname = "restart_request_timeout", |
24 | .data = &sysctl_x25_restart_request_timeout, | 23 | .data = &sysctl_x25_restart_request_timeout, |
25 | .maxlen = sizeof(int), | 24 | .maxlen = sizeof(int), |
26 | .mode = 0644, | 25 | .mode = 0644, |
27 | .proc_handler = proc_dointvec_minmax, | 26 | .proc_handler = proc_dointvec_minmax, |
28 | .strategy = sysctl_intvec, | ||
29 | .extra1 = &min_timer, | 27 | .extra1 = &min_timer, |
30 | .extra2 = &max_timer, | 28 | .extra2 = &max_timer, |
31 | }, | 29 | }, |
32 | { | 30 | { |
33 | .ctl_name = NET_X25_CALL_REQUEST_TIMEOUT, | ||
34 | .procname = "call_request_timeout", | 31 | .procname = "call_request_timeout", |
35 | .data = &sysctl_x25_call_request_timeout, | 32 | .data = &sysctl_x25_call_request_timeout, |
36 | .maxlen = sizeof(int), | 33 | .maxlen = sizeof(int), |
37 | .mode = 0644, | 34 | .mode = 0644, |
38 | .proc_handler = proc_dointvec_minmax, | 35 | .proc_handler = proc_dointvec_minmax, |
39 | .strategy = sysctl_intvec, | ||
40 | .extra1 = &min_timer, | 36 | .extra1 = &min_timer, |
41 | .extra2 = &max_timer, | 37 | .extra2 = &max_timer, |
42 | }, | 38 | }, |
43 | { | 39 | { |
44 | .ctl_name = NET_X25_RESET_REQUEST_TIMEOUT, | ||
45 | .procname = "reset_request_timeout", | 40 | .procname = "reset_request_timeout", |
46 | .data = &sysctl_x25_reset_request_timeout, | 41 | .data = &sysctl_x25_reset_request_timeout, |
47 | .maxlen = sizeof(int), | 42 | .maxlen = sizeof(int), |
48 | .mode = 0644, | 43 | .mode = 0644, |
49 | .proc_handler = proc_dointvec_minmax, | 44 | .proc_handler = proc_dointvec_minmax, |
50 | .strategy = sysctl_intvec, | ||
51 | .extra1 = &min_timer, | 45 | .extra1 = &min_timer, |
52 | .extra2 = &max_timer, | 46 | .extra2 = &max_timer, |
53 | }, | 47 | }, |
54 | { | 48 | { |
55 | .ctl_name = NET_X25_CLEAR_REQUEST_TIMEOUT, | ||
56 | .procname = "clear_request_timeout", | 49 | .procname = "clear_request_timeout", |
57 | .data = &sysctl_x25_clear_request_timeout, | 50 | .data = &sysctl_x25_clear_request_timeout, |
58 | .maxlen = sizeof(int), | 51 | .maxlen = sizeof(int), |
59 | .mode = 0644, | 52 | .mode = 0644, |
60 | .proc_handler = proc_dointvec_minmax, | 53 | .proc_handler = proc_dointvec_minmax, |
61 | .strategy = sysctl_intvec, | ||
62 | .extra1 = &min_timer, | 54 | .extra1 = &min_timer, |
63 | .extra2 = &max_timer, | 55 | .extra2 = &max_timer, |
64 | }, | 56 | }, |
65 | { | 57 | { |
66 | .ctl_name = NET_X25_ACK_HOLD_BACK_TIMEOUT, | ||
67 | .procname = "acknowledgement_hold_back_timeout", | 58 | .procname = "acknowledgement_hold_back_timeout", |
68 | .data = &sysctl_x25_ack_holdback_timeout, | 59 | .data = &sysctl_x25_ack_holdback_timeout, |
69 | .maxlen = sizeof(int), | 60 | .maxlen = sizeof(int), |
70 | .mode = 0644, | 61 | .mode = 0644, |
71 | .proc_handler = proc_dointvec_minmax, | 62 | .proc_handler = proc_dointvec_minmax, |
72 | .strategy = sysctl_intvec, | ||
73 | .extra1 = &min_timer, | 63 | .extra1 = &min_timer, |
74 | .extra2 = &max_timer, | 64 | .extra2 = &max_timer, |
75 | }, | 65 | }, |
76 | { | 66 | { |
77 | .ctl_name = NET_X25_FORWARD, | ||
78 | .procname = "x25_forward", | 67 | .procname = "x25_forward", |
79 | .data = &sysctl_x25_forward, | 68 | .data = &sysctl_x25_forward, |
80 | .maxlen = sizeof(int), | 69 | .maxlen = sizeof(int), |
@@ -85,8 +74,8 @@ static struct ctl_table x25_table[] = { | |||
85 | }; | 74 | }; |
86 | 75 | ||
87 | static struct ctl_path x25_path[] = { | 76 | static struct ctl_path x25_path[] = { |
88 | { .procname = "net", .ctl_name = CTL_NET, }, | 77 | { .procname = "net", }, |
89 | { .procname = "x25", .ctl_name = NET_X25, }, | 78 | { .procname = "x25", }, |
90 | { } | 79 | { } |
91 | }; | 80 | }; |
92 | 81 | ||