From: Eric Dumazet Date: Mon, 3 Jul 2017 09:57:54 +0000 (-0700) Subject: net: make sk_ehashfn() static X-Git-Tag: MMI-PSA29.97-13-9~5285^2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=784c372a8184bdb8ae722c94250c2d57dc327a8e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net: make sk_ehashfn() static sk_ehashfn() is only used from a single file. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h index b9e6e0e1f55c..5026b1f08bb8 100644 --- a/include/net/inet_hashtables.h +++ b/include/net/inet_hashtables.h @@ -359,7 +359,6 @@ static inline struct sock *__inet_lookup_skb(struct inet_hashinfo *hashinfo, refcounted); } -u32 sk_ehashfn(const struct sock *sk); u32 inet6_ehashfn(const struct net *net, const struct in6_addr *laddr, const u16 lport, const struct in6_addr *faddr, const __be16 fport); 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 &&