l2tp: make local functions static

Avoid needless export of local functions

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
stephen hemminger 2014-01-09 22:22:27 -08:00 committed by David S. Miller
parent a8f47eb701
commit b5d2b2858f
2 changed files with 2 additions and 6 deletions

View File

@ -176,7 +176,7 @@ l2tp_session_id_hash_2(struct l2tp_net *pn, u32 session_id)
* owned by userspace. A struct sock returned from this function must be * owned by userspace. A struct sock returned from this function must be
* released using l2tp_tunnel_sock_put once you're done with it. * released using l2tp_tunnel_sock_put once you're done with it.
*/ */
struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel) static struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel)
{ {
int err = 0; int err = 0;
struct socket *sock = NULL; struct socket *sock = NULL;
@ -202,10 +202,9 @@ struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel)
out: out:
return sk; return sk;
} }
EXPORT_SYMBOL_GPL(l2tp_tunnel_sock_lookup);
/* Drop a reference to a tunnel socket obtained via. l2tp_tunnel_sock_put */ /* Drop a reference to a tunnel socket obtained via. l2tp_tunnel_sock_put */
void l2tp_tunnel_sock_put(struct sock *sk) static void l2tp_tunnel_sock_put(struct sock *sk)
{ {
struct l2tp_tunnel *tunnel = l2tp_sock_to_tunnel(sk); struct l2tp_tunnel *tunnel = l2tp_sock_to_tunnel(sk);
if (tunnel) { if (tunnel) {
@ -217,7 +216,6 @@ void l2tp_tunnel_sock_put(struct sock *sk)
} }
sock_put(sk); sock_put(sk);
} }
EXPORT_SYMBOL_GPL(l2tp_tunnel_sock_put);
/* Lookup a session by id in the global session list /* Lookup a session by id in the global session list
*/ */

View File

@ -238,8 +238,6 @@ out:
return tunnel; return tunnel;
} }
struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel);
void l2tp_tunnel_sock_put(struct sock *sk);
struct l2tp_session *l2tp_session_find(struct net *net, struct l2tp_session *l2tp_session_find(struct net *net,
struct l2tp_tunnel *tunnel, struct l2tp_tunnel *tunnel,
u32 session_id); u32 session_id);