]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
tcpnv: do not export local function
authorstephen hemminger <stephen@networkplumber.org>
Fri, 19 May 2017 16:55:52 +0000 (09:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 17:42:36 +0000 (13:42 -0400)
The TCP New Vegas congestion control was exporting an internal
function tcpnv_get_info which is not used by any other in tree
kernel code. Make it static.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_nv.c

index 5de82a8d4d87e63e0e7538eddcb8903f38c27148..6d650ed3cb598c0027b1c25e75f115b01402da31 100644 (file)
@@ -424,8 +424,8 @@ static void tcpnv_acked(struct sock *sk, const struct ack_sample *sample)
 }
 
 /* Extract info for Tcp socket info provided via netlink */
-size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr,
-                     union tcp_cc_info *info)
+static size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr,
+                            union tcp_cc_info *info)
 {
        const struct tcpnv *ca = inet_csk_ca(sk);
 
@@ -440,7 +440,6 @@ size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr,
        }
        return 0;
 }
-EXPORT_SYMBOL_GPL(tcpnv_get_info);
 
 static struct tcp_congestion_ops tcpnv __read_mostly = {
        .init           = tcpnv_init,