Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

stephen hemminger and committed by
David S. Miller
c718c6d6 9691724e

+2 -3
+2 -3
net/ipv4/tcp_nv.c
··· 424 424 } 425 425 426 426 /* Extract info for Tcp socket info provided via netlink */ 427 - size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr, 428 - union tcp_cc_info *info) 427 + static size_t tcpnv_get_info(struct sock *sk, u32 ext, int *attr, 428 + union tcp_cc_info *info) 429 429 { 430 430 const struct tcpnv *ca = inet_csk_ca(sk); 431 431 ··· 440 440 } 441 441 return 0; 442 442 } 443 - EXPORT_SYMBOL_GPL(tcpnv_get_info); 444 443 445 444 static struct tcp_congestion_ops tcpnv __read_mostly = { 446 445 .init = tcpnv_init,