Skip to content

Commit

Permalink
tcpnv: do not export local function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed May 21, 2017
1 parent 9691724 commit c718c6d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/ipv4/tcp_nv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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,
Expand Down

0 comments on commit c718c6d

Please sign in to comment.