summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-07-03 11:57:54 +0200
committerDavid S. Miller <davem@davemloft.net>2017-07-03 12:29:14 +0200
commit784c372a8184bdb8ae722c94250c2d57dc327a8e (patch)
tree786bee3c89ccfa0ca8f4bc97a3090ea5fdaa222c /net
parentnet: avoid one splat in fib_nl_delrule() (diff)
downloadlinux-784c372a8184bdb8ae722c94250c2d57dc327a8e.tar.xz
linux-784c372a8184bdb8ae722c94250c2d57dc327a8e.zip
net: make sk_ehashfn() static
sk_ehashfn() is only used from a single file. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/inet_hashtables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c
index a4be2c1cb688..2e3389d614d1 100644
--- a/net/ipv4/inet_hashtables.c
+++ b/net/ipv4/inet_hashtables.c
@@ -43,7 +43,7 @@ static u32 inet_ehashfn(const struct net *net, const __be32 laddr,
/* This function handles inet_sock, but also timewait and request sockets
* for IPv4/IPv6.
*/
-u32 sk_ehashfn(const struct sock *sk)
+static u32 sk_ehashfn(const struct sock *sk)
{
#if IS_ENABLED(CONFIG_IPV6)
if (sk->sk_family == AF_INET6 &&