@@ -221,8 +221,8 @@ int nf_ct_l4proto_register_one(const struct nf_conntrack_l4proto *l4proto)
221
221
}
222
222
EXPORT_SYMBOL_GPL (nf_ct_l4proto_register_one );
223
223
224
- int nf_ct_l4proto_pernet_register_one (struct net * net ,
225
- const struct nf_conntrack_l4proto * l4proto )
224
+ static int nf_ct_l4proto_pernet_register_one (struct net * net ,
225
+ const struct nf_conntrack_l4proto * l4proto )
226
226
{
227
227
int ret = 0 ;
228
228
struct nf_proto_net * pn = NULL ;
@@ -245,7 +245,6 @@ int nf_ct_l4proto_pernet_register_one(struct net *net,
245
245
out :
246
246
return ret ;
247
247
}
248
- EXPORT_SYMBOL_GPL (nf_ct_l4proto_pernet_register_one );
249
248
250
249
static void __nf_ct_l4proto_unregister_one (const struct nf_conntrack_l4proto * l4proto )
251
250
@@ -272,7 +271,7 @@ void nf_ct_l4proto_unregister_one(const struct nf_conntrack_l4proto *l4proto)
272
271
}
273
272
EXPORT_SYMBOL_GPL (nf_ct_l4proto_unregister_one );
274
273
275
- void nf_ct_l4proto_pernet_unregister_one (struct net * net ,
274
+ static void nf_ct_l4proto_pernet_unregister_one (struct net * net ,
276
275
const struct nf_conntrack_l4proto * l4proto )
277
276
{
278
277
struct nf_proto_net * pn = nf_ct_l4proto_net (net , l4proto );
@@ -283,7 +282,6 @@ void nf_ct_l4proto_pernet_unregister_one(struct net *net,
283
282
pn -> users -- ;
284
283
nf_ct_l4proto_unregister_sysctl (pn );
285
284
}
286
- EXPORT_SYMBOL_GPL (nf_ct_l4proto_pernet_unregister_one );
287
285
288
286
static void
289
287
nf_ct_l4proto_unregister (const struct nf_conntrack_l4proto * const l4proto [],
@@ -322,7 +320,15 @@ nf_ct_l4proto_register(const struct nf_conntrack_l4proto * const l4proto[],
322
320
return ret ;
323
321
}
324
322
325
- int nf_ct_l4proto_pernet_register (struct net * net ,
323
+ static void nf_ct_l4proto_pernet_unregister (struct net * net ,
324
+ const struct nf_conntrack_l4proto * const l4proto [],
325
+ unsigned int num_proto )
326
+ {
327
+ while (num_proto -- != 0 )
328
+ nf_ct_l4proto_pernet_unregister_one (net , l4proto [num_proto ]);
329
+ }
330
+
331
+ static int nf_ct_l4proto_pernet_register (struct net * net ,
326
332
const struct nf_conntrack_l4proto * const l4proto [],
327
333
unsigned int num_proto )
328
334
{
@@ -341,16 +347,6 @@ int nf_ct_l4proto_pernet_register(struct net *net,
341
347
}
342
348
return ret ;
343
349
}
344
- EXPORT_SYMBOL_GPL (nf_ct_l4proto_pernet_register );
345
-
346
- void nf_ct_l4proto_pernet_unregister (struct net * net ,
347
- const struct nf_conntrack_l4proto * const l4proto [],
348
- unsigned int num_proto )
349
- {
350
- while (num_proto -- != 0 )
351
- nf_ct_l4proto_pernet_unregister_one (net , l4proto [num_proto ]);
352
- }
353
- EXPORT_SYMBOL_GPL (nf_ct_l4proto_pernet_unregister );
354
350
355
351
static unsigned int nf_confirm (struct sk_buff * skb ,
356
352
unsigned int protoff ,
0 commit comments