]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
l2tp: don't export l2tp_tunnel_closeall()
authorGuillaume Nault <g.nault@alphalink.fr>
Mon, 25 Jun 2018 14:07:23 +0000 (16:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 13:55:51 +0000 (22:55 +0900)
This function is only used in l2tp_core.c.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h

index 3adef4c35a3aebd3c07a96f60dee149d17296bd9..96e31f2ae7cd3f2bff734243eeb3ebab82d6d8a9 100644 (file)
@@ -1192,7 +1192,7 @@ end:
 
 /* When the tunnel is closed, all the attached sessions need to go too.
  */
-void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel)
+static void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel)
 {
        int hash;
        struct hlist_node *walk;
@@ -1241,7 +1241,6 @@ again:
        }
        write_unlock_bh(&tunnel->hlist_lock);
 }
-EXPORT_SYMBOL_GPL(l2tp_tunnel_closeall);
 
 /* Tunnel socket destroy hook for UDP encapsulation */
 static void l2tp_udp_encap_destroy(struct sock *sk)
index 0a6e582f84d34875200e06063e9ba903d4940151..a5c09d3a569877dbd945e105d3ad4c3d8520a514 100644 (file)
@@ -219,7 +219,6 @@ int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id,
 int l2tp_tunnel_register(struct l2tp_tunnel *tunnel, struct net *net,
                         struct l2tp_tunnel_cfg *cfg);
 
-void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel);
 void l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
 struct l2tp_session *l2tp_session_create(int priv_size,
                                         struct l2tp_tunnel *tunnel,