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/llc/sysctl_net_llc.c | |
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/llc/sysctl_net_llc.c')
-rw-r--r-- | net/llc/sysctl_net_llc.c | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/net/llc/sysctl_net_llc.c b/net/llc/sysctl_net_llc.c index 57b9304d444c..e2ebe3586263 100644 --- a/net/llc/sysctl_net_llc.c +++ b/net/llc/sysctl_net_llc.c | |||
@@ -15,86 +15,73 @@ | |||
15 | 15 | ||
16 | static struct ctl_table llc2_timeout_table[] = { | 16 | static struct ctl_table llc2_timeout_table[] = { |
17 | { | 17 | { |
18 | .ctl_name = NET_LLC2_ACK_TIMEOUT, | ||
19 | .procname = "ack", | 18 | .procname = "ack", |
20 | .data = &sysctl_llc2_ack_timeout, | 19 | .data = &sysctl_llc2_ack_timeout, |
21 | .maxlen = sizeof(long), | 20 | .maxlen = sizeof(long), |
22 | .mode = 0644, | 21 | .mode = 0644, |
23 | .proc_handler = proc_dointvec_jiffies, | 22 | .proc_handler = proc_dointvec_jiffies, |
24 | .strategy = sysctl_jiffies, | ||
25 | }, | 23 | }, |
26 | { | 24 | { |
27 | .ctl_name = NET_LLC2_BUSY_TIMEOUT, | ||
28 | .procname = "busy", | 25 | .procname = "busy", |
29 | .data = &sysctl_llc2_busy_timeout, | 26 | .data = &sysctl_llc2_busy_timeout, |
30 | .maxlen = sizeof(long), | 27 | .maxlen = sizeof(long), |
31 | .mode = 0644, | 28 | .mode = 0644, |
32 | .proc_handler = proc_dointvec_jiffies, | 29 | .proc_handler = proc_dointvec_jiffies, |
33 | .strategy = sysctl_jiffies, | ||
34 | }, | 30 | }, |
35 | { | 31 | { |
36 | .ctl_name = NET_LLC2_P_TIMEOUT, | ||
37 | .procname = "p", | 32 | .procname = "p", |
38 | .data = &sysctl_llc2_p_timeout, | 33 | .data = &sysctl_llc2_p_timeout, |
39 | .maxlen = sizeof(long), | 34 | .maxlen = sizeof(long), |
40 | .mode = 0644, | 35 | .mode = 0644, |
41 | .proc_handler = proc_dointvec_jiffies, | 36 | .proc_handler = proc_dointvec_jiffies, |
42 | .strategy = sysctl_jiffies, | ||
43 | }, | 37 | }, |
44 | { | 38 | { |
45 | .ctl_name = NET_LLC2_REJ_TIMEOUT, | ||
46 | .procname = "rej", | 39 | .procname = "rej", |
47 | .data = &sysctl_llc2_rej_timeout, | 40 | .data = &sysctl_llc2_rej_timeout, |
48 | .maxlen = sizeof(long), | 41 | .maxlen = sizeof(long), |
49 | .mode = 0644, | 42 | .mode = 0644, |
50 | .proc_handler = proc_dointvec_jiffies, | 43 | .proc_handler = proc_dointvec_jiffies, |
51 | .strategy = sysctl_jiffies, | ||
52 | }, | 44 | }, |
53 | { 0 }, | 45 | { }, |
54 | }; | 46 | }; |
55 | 47 | ||
56 | static struct ctl_table llc_station_table[] = { | 48 | static struct ctl_table llc_station_table[] = { |
57 | { | 49 | { |
58 | .ctl_name = NET_LLC_STATION_ACK_TIMEOUT, | ||
59 | .procname = "ack_timeout", | 50 | .procname = "ack_timeout", |
60 | .data = &sysctl_llc_station_ack_timeout, | 51 | .data = &sysctl_llc_station_ack_timeout, |
61 | .maxlen = sizeof(long), | 52 | .maxlen = sizeof(long), |
62 | .mode = 0644, | 53 | .mode = 0644, |
63 | .proc_handler = proc_dointvec_jiffies, | 54 | .proc_handler = proc_dointvec_jiffies, |
64 | .strategy = sysctl_jiffies, | ||
65 | }, | 55 | }, |
66 | { 0 }, | 56 | { }, |
67 | }; | 57 | }; |
68 | 58 | ||
69 | static struct ctl_table llc2_dir_timeout_table[] = { | 59 | static struct ctl_table llc2_dir_timeout_table[] = { |
70 | { | 60 | { |
71 | .ctl_name = NET_LLC2, | ||
72 | .procname = "timeout", | 61 | .procname = "timeout", |
73 | .mode = 0555, | 62 | .mode = 0555, |
74 | .child = llc2_timeout_table, | 63 | .child = llc2_timeout_table, |
75 | }, | 64 | }, |
76 | { 0 }, | 65 | { }, |
77 | }; | 66 | }; |
78 | 67 | ||
79 | static struct ctl_table llc_table[] = { | 68 | static struct ctl_table llc_table[] = { |
80 | { | 69 | { |
81 | .ctl_name = NET_LLC2, | ||
82 | .procname = "llc2", | 70 | .procname = "llc2", |
83 | .mode = 0555, | 71 | .mode = 0555, |
84 | .child = llc2_dir_timeout_table, | 72 | .child = llc2_dir_timeout_table, |
85 | }, | 73 | }, |
86 | { | 74 | { |
87 | .ctl_name = NET_LLC_STATION, | ||
88 | .procname = "station", | 75 | .procname = "station", |
89 | .mode = 0555, | 76 | .mode = 0555, |
90 | .child = llc_station_table, | 77 | .child = llc_station_table, |
91 | }, | 78 | }, |
92 | { 0 }, | 79 | { }, |
93 | }; | 80 | }; |
94 | 81 | ||
95 | static struct ctl_path llc_path[] = { | 82 | static struct ctl_path llc_path[] = { |
96 | { .procname = "net", .ctl_name = CTL_NET, }, | 83 | { .procname = "net", }, |
97 | { .procname = "llc", .ctl_name = NET_LLC, }, | 84 | { .procname = "llc", }, |
98 | { } | 85 | { } |
99 | }; | 86 | }; |
100 | 87 | ||