diff options
author | Andrew Morton <akpm@osdl.org> | 2006-03-28 19:37:06 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-28 20:02:48 -0500 |
commit | 65b4b4e81a5094d52cbe372b887b1779abe53f9b (patch) | |
tree | ef8369e6a8e5278f8f4101132ba85869e5a4ce1d /net/bridge | |
parent | c3e5d877aadc073b09c4901f8c1a768de79b0a5d (diff) |
[NETFILTER]: Rename init functions.
Every netfilter module uses `init' for its module_init() function and
`fini' or `cleanup' for its module_exit() function.
Problem is, this creates uninformative initcall_debug output and makes
ctags rather useless.
So go through and rename them all to $(filename)_init and
$(filename)_fini.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/netfilter/ebt_802_3.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_among.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_arp.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_arpreply.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_dnat.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_ip.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_limit.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_log.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_mark.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_mark_m.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_pkttype.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_redirect.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_snat.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_stp.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_ulog.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_vlan.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebtable_broute.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebtable_filter.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebtable_nat.c | 8 | ||||
-rw-r--r-- | net/bridge/netfilter/ebtables.c | 8 |
20 files changed, 80 insertions, 80 deletions
diff --git a/net/bridge/netfilter/ebt_802_3.c b/net/bridge/netfilter/ebt_802_3.c index 468ebdf4bc1c..d42f63f5e9f8 100644 --- a/net/bridge/netfilter/ebt_802_3.c +++ b/net/bridge/netfilter/ebt_802_3.c | |||
@@ -58,16 +58,16 @@ static struct ebt_match filter_802_3 = | |||
58 | .me = THIS_MODULE, | 58 | .me = THIS_MODULE, |
59 | }; | 59 | }; |
60 | 60 | ||
61 | static int __init init(void) | 61 | static int __init ebt_802_3_init(void) |
62 | { | 62 | { |
63 | return ebt_register_match(&filter_802_3); | 63 | return ebt_register_match(&filter_802_3); |
64 | } | 64 | } |
65 | 65 | ||
66 | static void __exit fini(void) | 66 | static void __exit ebt_802_3_fini(void) |
67 | { | 67 | { |
68 | ebt_unregister_match(&filter_802_3); | 68 | ebt_unregister_match(&filter_802_3); |
69 | } | 69 | } |
70 | 70 | ||
71 | module_init(init); | 71 | module_init(ebt_802_3_init); |
72 | module_exit(fini); | 72 | module_exit(ebt_802_3_fini); |
73 | MODULE_LICENSE("GPL"); | 73 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_among.c b/net/bridge/netfilter/ebt_among.c index 5a1f5e3bff15..a614485828af 100644 --- a/net/bridge/netfilter/ebt_among.c +++ b/net/bridge/netfilter/ebt_among.c | |||
@@ -213,16 +213,16 @@ static struct ebt_match filter_among = { | |||
213 | .me = THIS_MODULE, | 213 | .me = THIS_MODULE, |
214 | }; | 214 | }; |
215 | 215 | ||
216 | static int __init init(void) | 216 | static int __init ebt_among_init(void) |
217 | { | 217 | { |
218 | return ebt_register_match(&filter_among); | 218 | return ebt_register_match(&filter_among); |
219 | } | 219 | } |
220 | 220 | ||
221 | static void __exit fini(void) | 221 | static void __exit ebt_among_fini(void) |
222 | { | 222 | { |
223 | ebt_unregister_match(&filter_among); | 223 | ebt_unregister_match(&filter_among); |
224 | } | 224 | } |
225 | 225 | ||
226 | module_init(init); | 226 | module_init(ebt_among_init); |
227 | module_exit(fini); | 227 | module_exit(ebt_among_fini); |
228 | MODULE_LICENSE("GPL"); | 228 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_arp.c b/net/bridge/netfilter/ebt_arp.c index b94c48cb6e4b..a6c81d9f73b8 100644 --- a/net/bridge/netfilter/ebt_arp.c +++ b/net/bridge/netfilter/ebt_arp.c | |||
@@ -125,16 +125,16 @@ static struct ebt_match filter_arp = | |||
125 | .me = THIS_MODULE, | 125 | .me = THIS_MODULE, |
126 | }; | 126 | }; |
127 | 127 | ||
128 | static int __init init(void) | 128 | static int __init ebt_arp_init(void) |
129 | { | 129 | { |
130 | return ebt_register_match(&filter_arp); | 130 | return ebt_register_match(&filter_arp); |
131 | } | 131 | } |
132 | 132 | ||
133 | static void __exit fini(void) | 133 | static void __exit ebt_arp_fini(void) |
134 | { | 134 | { |
135 | ebt_unregister_match(&filter_arp); | 135 | ebt_unregister_match(&filter_arp); |
136 | } | 136 | } |
137 | 137 | ||
138 | module_init(init); | 138 | module_init(ebt_arp_init); |
139 | module_exit(fini); | 139 | module_exit(ebt_arp_fini); |
140 | MODULE_LICENSE("GPL"); | 140 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_arpreply.c b/net/bridge/netfilter/ebt_arpreply.c index b934de90f7c5..d19fc4b328dc 100644 --- a/net/bridge/netfilter/ebt_arpreply.c +++ b/net/bridge/netfilter/ebt_arpreply.c | |||
@@ -82,16 +82,16 @@ static struct ebt_target reply_target = | |||
82 | .me = THIS_MODULE, | 82 | .me = THIS_MODULE, |
83 | }; | 83 | }; |
84 | 84 | ||
85 | static int __init init(void) | 85 | static int __init ebt_arpreply_init(void) |
86 | { | 86 | { |
87 | return ebt_register_target(&reply_target); | 87 | return ebt_register_target(&reply_target); |
88 | } | 88 | } |
89 | 89 | ||
90 | static void __exit fini(void) | 90 | static void __exit ebt_arpreply_fini(void) |
91 | { | 91 | { |
92 | ebt_unregister_target(&reply_target); | 92 | ebt_unregister_target(&reply_target); |
93 | } | 93 | } |
94 | 94 | ||
95 | module_init(init); | 95 | module_init(ebt_arpreply_init); |
96 | module_exit(fini); | 96 | module_exit(ebt_arpreply_fini); |
97 | MODULE_LICENSE("GPL"); | 97 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_dnat.c b/net/bridge/netfilter/ebt_dnat.c index f5463086c7bd..4582659dff0e 100644 --- a/net/bridge/netfilter/ebt_dnat.c +++ b/net/bridge/netfilter/ebt_dnat.c | |||
@@ -61,16 +61,16 @@ static struct ebt_target dnat = | |||
61 | .me = THIS_MODULE, | 61 | .me = THIS_MODULE, |
62 | }; | 62 | }; |
63 | 63 | ||
64 | static int __init init(void) | 64 | static int __init ebt_dnat_init(void) |
65 | { | 65 | { |
66 | return ebt_register_target(&dnat); | 66 | return ebt_register_target(&dnat); |
67 | } | 67 | } |
68 | 68 | ||
69 | static void __exit fini(void) | 69 | static void __exit ebt_dnat_fini(void) |
70 | { | 70 | { |
71 | ebt_unregister_target(&dnat); | 71 | ebt_unregister_target(&dnat); |
72 | } | 72 | } |
73 | 73 | ||
74 | module_init(init); | 74 | module_init(ebt_dnat_init); |
75 | module_exit(fini); | 75 | module_exit(ebt_dnat_fini); |
76 | MODULE_LICENSE("GPL"); | 76 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_ip.c b/net/bridge/netfilter/ebt_ip.c index dc5d0b2427cf..65b665ce57b5 100644 --- a/net/bridge/netfilter/ebt_ip.c +++ b/net/bridge/netfilter/ebt_ip.c | |||
@@ -112,16 +112,16 @@ static struct ebt_match filter_ip = | |||
112 | .me = THIS_MODULE, | 112 | .me = THIS_MODULE, |
113 | }; | 113 | }; |
114 | 114 | ||
115 | static int __init init(void) | 115 | static int __init ebt_ip_init(void) |
116 | { | 116 | { |
117 | return ebt_register_match(&filter_ip); | 117 | return ebt_register_match(&filter_ip); |
118 | } | 118 | } |
119 | 119 | ||
120 | static void __exit fini(void) | 120 | static void __exit ebt_ip_fini(void) |
121 | { | 121 | { |
122 | ebt_unregister_match(&filter_ip); | 122 | ebt_unregister_match(&filter_ip); |
123 | } | 123 | } |
124 | 124 | ||
125 | module_init(init); | 125 | module_init(ebt_ip_init); |
126 | module_exit(fini); | 126 | module_exit(ebt_ip_fini); |
127 | MODULE_LICENSE("GPL"); | 127 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_limit.c b/net/bridge/netfilter/ebt_limit.c index 637c8844cd5f..d48fa5cb26cf 100644 --- a/net/bridge/netfilter/ebt_limit.c +++ b/net/bridge/netfilter/ebt_limit.c | |||
@@ -98,16 +98,16 @@ static struct ebt_match ebt_limit_reg = | |||
98 | .me = THIS_MODULE, | 98 | .me = THIS_MODULE, |
99 | }; | 99 | }; |
100 | 100 | ||
101 | static int __init init(void) | 101 | static int __init ebt_limit_init(void) |
102 | { | 102 | { |
103 | return ebt_register_match(&ebt_limit_reg); | 103 | return ebt_register_match(&ebt_limit_reg); |
104 | } | 104 | } |
105 | 105 | ||
106 | static void __exit fini(void) | 106 | static void __exit ebt_limit_fini(void) |
107 | { | 107 | { |
108 | ebt_unregister_match(&ebt_limit_reg); | 108 | ebt_unregister_match(&ebt_limit_reg); |
109 | } | 109 | } |
110 | 110 | ||
111 | module_init(init); | 111 | module_init(ebt_limit_init); |
112 | module_exit(fini); | 112 | module_exit(ebt_limit_fini); |
113 | MODULE_LICENSE("GPL"); | 113 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c index 288ff1d4ccc4..d159c92cca84 100644 --- a/net/bridge/netfilter/ebt_log.c +++ b/net/bridge/netfilter/ebt_log.c | |||
@@ -188,7 +188,7 @@ static struct nf_logger ebt_log_logger = { | |||
188 | .me = THIS_MODULE, | 188 | .me = THIS_MODULE, |
189 | }; | 189 | }; |
190 | 190 | ||
191 | static int __init init(void) | 191 | static int __init ebt_log_init(void) |
192 | { | 192 | { |
193 | int ret; | 193 | int ret; |
194 | 194 | ||
@@ -205,12 +205,12 @@ static int __init init(void) | |||
205 | return 0; | 205 | return 0; |
206 | } | 206 | } |
207 | 207 | ||
208 | static void __exit fini(void) | 208 | static void __exit ebt_log_fini(void) |
209 | { | 209 | { |
210 | nf_log_unregister_logger(&ebt_log_logger); | 210 | nf_log_unregister_logger(&ebt_log_logger); |
211 | ebt_unregister_watcher(&log); | 211 | ebt_unregister_watcher(&log); |
212 | } | 212 | } |
213 | 213 | ||
214 | module_init(init); | 214 | module_init(ebt_log_init); |
215 | module_exit(fini); | 215 | module_exit(ebt_log_fini); |
216 | MODULE_LICENSE("GPL"); | 216 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_mark.c b/net/bridge/netfilter/ebt_mark.c index c93d35ab95c0..770c0df972a3 100644 --- a/net/bridge/netfilter/ebt_mark.c +++ b/net/bridge/netfilter/ebt_mark.c | |||
@@ -52,16 +52,16 @@ static struct ebt_target mark_target = | |||
52 | .me = THIS_MODULE, | 52 | .me = THIS_MODULE, |
53 | }; | 53 | }; |
54 | 54 | ||
55 | static int __init init(void) | 55 | static int __init ebt_mark_init(void) |
56 | { | 56 | { |
57 | return ebt_register_target(&mark_target); | 57 | return ebt_register_target(&mark_target); |
58 | } | 58 | } |
59 | 59 | ||
60 | static void __exit fini(void) | 60 | static void __exit ebt_mark_fini(void) |
61 | { | 61 | { |
62 | ebt_unregister_target(&mark_target); | 62 | ebt_unregister_target(&mark_target); |
63 | } | 63 | } |
64 | 64 | ||
65 | module_init(init); | 65 | module_init(ebt_mark_init); |
66 | module_exit(fini); | 66 | module_exit(ebt_mark_fini); |
67 | MODULE_LICENSE("GPL"); | 67 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_mark_m.c b/net/bridge/netfilter/ebt_mark_m.c index 625102de1495..a6413e4b4982 100644 --- a/net/bridge/netfilter/ebt_mark_m.c +++ b/net/bridge/netfilter/ebt_mark_m.c | |||
@@ -47,16 +47,16 @@ static struct ebt_match filter_mark = | |||
47 | .me = THIS_MODULE, | 47 | .me = THIS_MODULE, |
48 | }; | 48 | }; |
49 | 49 | ||
50 | static int __init init(void) | 50 | static int __init ebt_mark_m_init(void) |
51 | { | 51 | { |
52 | return ebt_register_match(&filter_mark); | 52 | return ebt_register_match(&filter_mark); |
53 | } | 53 | } |
54 | 54 | ||
55 | static void __exit fini(void) | 55 | static void __exit ebt_mark_m_fini(void) |
56 | { | 56 | { |
57 | ebt_unregister_match(&filter_mark); | 57 | ebt_unregister_match(&filter_mark); |
58 | } | 58 | } |
59 | 59 | ||
60 | module_init(init); | 60 | module_init(ebt_mark_m_init); |
61 | module_exit(fini); | 61 | module_exit(ebt_mark_m_fini); |
62 | MODULE_LICENSE("GPL"); | 62 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_pkttype.c b/net/bridge/netfilter/ebt_pkttype.c index ecd3b42b19b0..4fffd70e4da7 100644 --- a/net/bridge/netfilter/ebt_pkttype.c +++ b/net/bridge/netfilter/ebt_pkttype.c | |||
@@ -44,16 +44,16 @@ static struct ebt_match filter_pkttype = | |||
44 | .me = THIS_MODULE, | 44 | .me = THIS_MODULE, |
45 | }; | 45 | }; |
46 | 46 | ||
47 | static int __init init(void) | 47 | static int __init ebt_pkttype_init(void) |
48 | { | 48 | { |
49 | return ebt_register_match(&filter_pkttype); | 49 | return ebt_register_match(&filter_pkttype); |
50 | } | 50 | } |
51 | 51 | ||
52 | static void __exit fini(void) | 52 | static void __exit ebt_pkttype_fini(void) |
53 | { | 53 | { |
54 | ebt_unregister_match(&filter_pkttype); | 54 | ebt_unregister_match(&filter_pkttype); |
55 | } | 55 | } |
56 | 56 | ||
57 | module_init(init); | 57 | module_init(ebt_pkttype_init); |
58 | module_exit(fini); | 58 | module_exit(ebt_pkttype_fini); |
59 | MODULE_LICENSE("GPL"); | 59 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_redirect.c b/net/bridge/netfilter/ebt_redirect.c index 1538b4386662..9f378eab72d0 100644 --- a/net/bridge/netfilter/ebt_redirect.c +++ b/net/bridge/netfilter/ebt_redirect.c | |||
@@ -66,16 +66,16 @@ static struct ebt_target redirect_target = | |||
66 | .me = THIS_MODULE, | 66 | .me = THIS_MODULE, |
67 | }; | 67 | }; |
68 | 68 | ||
69 | static int __init init(void) | 69 | static int __init ebt_redirect_init(void) |
70 | { | 70 | { |
71 | return ebt_register_target(&redirect_target); | 71 | return ebt_register_target(&redirect_target); |
72 | } | 72 | } |
73 | 73 | ||
74 | static void __exit fini(void) | 74 | static void __exit ebt_redirect_fini(void) |
75 | { | 75 | { |
76 | ebt_unregister_target(&redirect_target); | 76 | ebt_unregister_target(&redirect_target); |
77 | } | 77 | } |
78 | 78 | ||
79 | module_init(init); | 79 | module_init(ebt_redirect_init); |
80 | module_exit(fini); | 80 | module_exit(ebt_redirect_fini); |
81 | MODULE_LICENSE("GPL"); | 81 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_snat.c b/net/bridge/netfilter/ebt_snat.c index 1529bdcb9a48..cbb33e24ca8a 100644 --- a/net/bridge/netfilter/ebt_snat.c +++ b/net/bridge/netfilter/ebt_snat.c | |||
@@ -61,16 +61,16 @@ static struct ebt_target snat = | |||
61 | .me = THIS_MODULE, | 61 | .me = THIS_MODULE, |
62 | }; | 62 | }; |
63 | 63 | ||
64 | static int __init init(void) | 64 | static int __init ebt_snat_init(void) |
65 | { | 65 | { |
66 | return ebt_register_target(&snat); | 66 | return ebt_register_target(&snat); |
67 | } | 67 | } |
68 | 68 | ||
69 | static void __exit fini(void) | 69 | static void __exit ebt_snat_fini(void) |
70 | { | 70 | { |
71 | ebt_unregister_target(&snat); | 71 | ebt_unregister_target(&snat); |
72 | } | 72 | } |
73 | 73 | ||
74 | module_init(init); | 74 | module_init(ebt_snat_init); |
75 | module_exit(fini); | 75 | module_exit(ebt_snat_fini); |
76 | MODULE_LICENSE("GPL"); | 76 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_stp.c b/net/bridge/netfilter/ebt_stp.c index 0248c67277ee..a0bed82145ed 100644 --- a/net/bridge/netfilter/ebt_stp.c +++ b/net/bridge/netfilter/ebt_stp.c | |||
@@ -180,16 +180,16 @@ static struct ebt_match filter_stp = | |||
180 | .me = THIS_MODULE, | 180 | .me = THIS_MODULE, |
181 | }; | 181 | }; |
182 | 182 | ||
183 | static int __init init(void) | 183 | static int __init ebt_stp_init(void) |
184 | { | 184 | { |
185 | return ebt_register_match(&filter_stp); | 185 | return ebt_register_match(&filter_stp); |
186 | } | 186 | } |
187 | 187 | ||
188 | static void __exit fini(void) | 188 | static void __exit ebt_stp_fini(void) |
189 | { | 189 | { |
190 | ebt_unregister_match(&filter_stp); | 190 | ebt_unregister_match(&filter_stp); |
191 | } | 191 | } |
192 | 192 | ||
193 | module_init(init); | 193 | module_init(ebt_stp_init); |
194 | module_exit(fini); | 194 | module_exit(ebt_stp_fini); |
195 | MODULE_LICENSE("GPL"); | 195 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebt_ulog.c b/net/bridge/netfilter/ebt_ulog.c index 802baf755ef4..ee5a51761260 100644 --- a/net/bridge/netfilter/ebt_ulog.c +++ b/net/bridge/netfilter/ebt_ulog.c | |||
@@ -281,7 +281,7 @@ static struct nf_logger ebt_ulog_logger = { | |||
281 | .me = THIS_MODULE, | 281 | .me = THIS_MODULE, |
282 | }; | 282 | }; |
283 | 283 | ||
284 | static int __init init(void) | 284 | static int __init ebt_ulog_init(void) |
285 | { | 285 | { |
286 | int i, ret = 0; | 286 | int i, ret = 0; |
287 | 287 | ||
@@ -316,7 +316,7 @@ static int __init init(void) | |||
316 | return ret; | 316 | return ret; |
317 | } | 317 | } |
318 | 318 | ||
319 | static void __exit fini(void) | 319 | static void __exit ebt_ulog_fini(void) |
320 | { | 320 | { |
321 | ebt_ulog_buff_t *ub; | 321 | ebt_ulog_buff_t *ub; |
322 | int i; | 322 | int i; |
@@ -337,8 +337,8 @@ static void __exit fini(void) | |||
337 | sock_release(ebtulognl->sk_socket); | 337 | sock_release(ebtulognl->sk_socket); |
338 | } | 338 | } |
339 | 339 | ||
340 | module_init(init); | 340 | module_init(ebt_ulog_init); |
341 | module_exit(fini); | 341 | module_exit(ebt_ulog_fini); |
342 | MODULE_LICENSE("GPL"); | 342 | MODULE_LICENSE("GPL"); |
343 | MODULE_AUTHOR("Bart De Schuymer <bdschuym@pandora.be>"); | 343 | MODULE_AUTHOR("Bart De Schuymer <bdschuym@pandora.be>"); |
344 | MODULE_DESCRIPTION("ebtables userspace logging module for bridged Ethernet" | 344 | MODULE_DESCRIPTION("ebtables userspace logging module for bridged Ethernet" |
diff --git a/net/bridge/netfilter/ebt_vlan.c b/net/bridge/netfilter/ebt_vlan.c index db60d734908b..a2b452862b73 100644 --- a/net/bridge/netfilter/ebt_vlan.c +++ b/net/bridge/netfilter/ebt_vlan.c | |||
@@ -178,7 +178,7 @@ static struct ebt_match filter_vlan = { | |||
178 | .me = THIS_MODULE, | 178 | .me = THIS_MODULE, |
179 | }; | 179 | }; |
180 | 180 | ||
181 | static int __init init(void) | 181 | static int __init ebt_vlan_init(void) |
182 | { | 182 | { |
183 | DEBUG_MSG("ebtables 802.1Q extension module v" | 183 | DEBUG_MSG("ebtables 802.1Q extension module v" |
184 | MODULE_VERS "\n"); | 184 | MODULE_VERS "\n"); |
@@ -186,10 +186,10 @@ static int __init init(void) | |||
186 | return ebt_register_match(&filter_vlan); | 186 | return ebt_register_match(&filter_vlan); |
187 | } | 187 | } |
188 | 188 | ||
189 | static void __exit fini(void) | 189 | static void __exit ebt_vlan_fini(void) |
190 | { | 190 | { |
191 | ebt_unregister_match(&filter_vlan); | 191 | ebt_unregister_match(&filter_vlan); |
192 | } | 192 | } |
193 | 193 | ||
194 | module_init(init); | 194 | module_init(ebt_vlan_init); |
195 | module_exit(fini); | 195 | module_exit(ebt_vlan_fini); |
diff --git a/net/bridge/netfilter/ebtable_broute.c b/net/bridge/netfilter/ebtable_broute.c index 1767c94cd3de..9a6e548e148b 100644 --- a/net/bridge/netfilter/ebtable_broute.c +++ b/net/bridge/netfilter/ebtable_broute.c | |||
@@ -62,7 +62,7 @@ static int ebt_broute(struct sk_buff **pskb) | |||
62 | return 0; /* bridge it */ | 62 | return 0; /* bridge it */ |
63 | } | 63 | } |
64 | 64 | ||
65 | static int __init init(void) | 65 | static int __init ebtable_broute_init(void) |
66 | { | 66 | { |
67 | int ret; | 67 | int ret; |
68 | 68 | ||
@@ -74,13 +74,13 @@ static int __init init(void) | |||
74 | return ret; | 74 | return ret; |
75 | } | 75 | } |
76 | 76 | ||
77 | static void __exit fini(void) | 77 | static void __exit ebtable_broute_fini(void) |
78 | { | 78 | { |
79 | br_should_route_hook = NULL; | 79 | br_should_route_hook = NULL; |
80 | synchronize_net(); | 80 | synchronize_net(); |
81 | ebt_unregister_table(&broute_table); | 81 | ebt_unregister_table(&broute_table); |
82 | } | 82 | } |
83 | 83 | ||
84 | module_init(init); | 84 | module_init(ebtable_broute_init); |
85 | module_exit(fini); | 85 | module_exit(ebtable_broute_fini); |
86 | MODULE_LICENSE("GPL"); | 86 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebtable_filter.c b/net/bridge/netfilter/ebtable_filter.c index c18666e0392b..3d5bd44f2395 100644 --- a/net/bridge/netfilter/ebtable_filter.c +++ b/net/bridge/netfilter/ebtable_filter.c | |||
@@ -91,7 +91,7 @@ static struct nf_hook_ops ebt_ops_filter[] = { | |||
91 | }, | 91 | }, |
92 | }; | 92 | }; |
93 | 93 | ||
94 | static int __init init(void) | 94 | static int __init ebtable_filter_init(void) |
95 | { | 95 | { |
96 | int i, j, ret; | 96 | int i, j, ret; |
97 | 97 | ||
@@ -109,7 +109,7 @@ cleanup: | |||
109 | return ret; | 109 | return ret; |
110 | } | 110 | } |
111 | 111 | ||
112 | static void __exit fini(void) | 112 | static void __exit ebtable_filter_fini(void) |
113 | { | 113 | { |
114 | int i; | 114 | int i; |
115 | 115 | ||
@@ -118,6 +118,6 @@ static void __exit fini(void) | |||
118 | ebt_unregister_table(&frame_filter); | 118 | ebt_unregister_table(&frame_filter); |
119 | } | 119 | } |
120 | 120 | ||
121 | module_init(init); | 121 | module_init(ebtable_filter_init); |
122 | module_exit(fini); | 122 | module_exit(ebtable_filter_fini); |
123 | MODULE_LICENSE("GPL"); | 123 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebtable_nat.c b/net/bridge/netfilter/ebtable_nat.c index 828cac2cc4a3..04dd42efda1d 100644 --- a/net/bridge/netfilter/ebtable_nat.c +++ b/net/bridge/netfilter/ebtable_nat.c | |||
@@ -98,7 +98,7 @@ static struct nf_hook_ops ebt_ops_nat[] = { | |||
98 | }, | 98 | }, |
99 | }; | 99 | }; |
100 | 100 | ||
101 | static int __init init(void) | 101 | static int __init ebtable_nat_init(void) |
102 | { | 102 | { |
103 | int i, ret, j; | 103 | int i, ret, j; |
104 | 104 | ||
@@ -116,7 +116,7 @@ cleanup: | |||
116 | return ret; | 116 | return ret; |
117 | } | 117 | } |
118 | 118 | ||
119 | static void __exit fini(void) | 119 | static void __exit ebtable_nat_fini(void) |
120 | { | 120 | { |
121 | int i; | 121 | int i; |
122 | 122 | ||
@@ -125,6 +125,6 @@ static void __exit fini(void) | |||
125 | ebt_unregister_table(&frame_nat); | 125 | ebt_unregister_table(&frame_nat); |
126 | } | 126 | } |
127 | 127 | ||
128 | module_init(init); | 128 | module_init(ebtable_nat_init); |
129 | module_exit(fini); | 129 | module_exit(ebtable_nat_fini); |
130 | MODULE_LICENSE("GPL"); | 130 | MODULE_LICENSE("GPL"); |
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 997953367204..01eae97c53d9 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c | |||
@@ -1487,7 +1487,7 @@ static struct nf_sockopt_ops ebt_sockopts = | |||
1487 | .get = do_ebt_get_ctl, | 1487 | .get = do_ebt_get_ctl, |
1488 | }; | 1488 | }; |
1489 | 1489 | ||
1490 | static int __init init(void) | 1490 | static int __init ebtables_init(void) |
1491 | { | 1491 | { |
1492 | int ret; | 1492 | int ret; |
1493 | 1493 | ||
@@ -1501,7 +1501,7 @@ static int __init init(void) | |||
1501 | return 0; | 1501 | return 0; |
1502 | } | 1502 | } |
1503 | 1503 | ||
1504 | static void __exit fini(void) | 1504 | static void __exit ebtables_fini(void) |
1505 | { | 1505 | { |
1506 | nf_unregister_sockopt(&ebt_sockopts); | 1506 | nf_unregister_sockopt(&ebt_sockopts); |
1507 | printk(KERN_NOTICE "Ebtables v2.0 unregistered\n"); | 1507 | printk(KERN_NOTICE "Ebtables v2.0 unregistered\n"); |
@@ -1516,6 +1516,6 @@ EXPORT_SYMBOL(ebt_unregister_watcher); | |||
1516 | EXPORT_SYMBOL(ebt_register_target); | 1516 | EXPORT_SYMBOL(ebt_register_target); |
1517 | EXPORT_SYMBOL(ebt_unregister_target); | 1517 | EXPORT_SYMBOL(ebt_unregister_target); |
1518 | EXPORT_SYMBOL(ebt_do_table); | 1518 | EXPORT_SYMBOL(ebt_do_table); |
1519 | module_init(init); | 1519 | module_init(ebtables_init); |
1520 | module_exit(fini); | 1520 | module_exit(ebtables_fini); |
1521 | MODULE_LICENSE("GPL"); | 1521 | MODULE_LICENSE("GPL"); |