Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 784c372a authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: make sk_ehashfn() static



sk_ehashfn() is only used from a single file.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5361e209
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -359,7 +359,6 @@ static inline struct sock *__inet_lookup_skb(struct inet_hashinfo *hashinfo,
			     refcounted);
			     refcounted);
}
}


u32 sk_ehashfn(const struct sock *sk);
u32 inet6_ehashfn(const struct net *net,
u32 inet6_ehashfn(const struct net *net,
		  const struct in6_addr *laddr, const u16 lport,
		  const struct in6_addr *laddr, const u16 lport,
		  const struct in6_addr *faddr, const __be16 fport);
		  const struct in6_addr *faddr, const __be16 fport);
+1 −1
Original line number Original line Diff line number Diff line
@@ -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
/* This function handles inet_sock, but also timewait and request sockets
 * for IPv4/IPv6.
 * for IPv4/IPv6.
 */
 */
u32 sk_ehashfn(const struct sock *sk)
static u32 sk_ehashfn(const struct sock *sk)
{
{
#if IS_ENABLED(CONFIG_IPV6)
#if IS_ENABLED(CONFIG_IPV6)
	if (sk->sk_family == AF_INET6 &&
	if (sk->sk_family == AF_INET6 &&