diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-05-19 12:55:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-21 13:42:36 -0400 |
commit | c718c6d66b249954d38eebe74724229f635fa655 (patch) | |
tree | a81ed8e23054b7c47c6a8b543f0abdd6a3699776 | |
parent | 9691724e5658dfb19d747b00bf34ce9df0d1b20b (diff) |
tcpnv: do not export local function
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>
-rw-r--r-- | net/ipv4/tcp_nv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv4/tcp_nv.c b/net/ipv4/tcp_nv.c index 5de82a8d4d87..6d650ed3cb59 100644 --- a/net/ipv4/tcp_nv.c +++ b/net/ipv4/tcp_nv.c | |||
@@ -424,8 +424,8 @@ static void tcpnv_acked(struct sock *sk, const struct ack_sample *sample) | |||
424 | } | 424 | } |
425 | 425 | ||
426 | /* Extract info for Tcp socket info provided via netlink */ | 426 | /* Extract info for Tcp socket info provided via netlink */ |
427 | size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr, | 427 | static size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr, |
428 | union tcp_cc_info *info) | 428 | union tcp_cc_info *info) |
429 | { | 429 | { |
430 | const struct tcpnv *ca = inet_csk_ca(sk); | 430 | const struct tcpnv *ca = inet_csk_ca(sk); |
431 | 431 | ||
@@ -440,7 +440,6 @@ size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr, | |||
440 | } | 440 | } |
441 | return 0; | 441 | return 0; |
442 | } | 442 | } |
443 | EXPORT_SYMBOL_GPL(tcpnv_get_info); | ||
444 | 443 | ||
445 | static struct tcp_congestion_ops tcpnv __read_mostly = { | 444 | static struct tcp_congestion_ops tcpnv __read_mostly = { |
446 | .init = tcpnv_init, | 445 | .init = tcpnv_init, |