tcp: md5: tcp_md5_do_lookup_exact() can be static
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 5 Jul 2017 23:58:53 +0000 (07:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jul 2017 09:54:15 +0000 (10:54 +0100)
Fixes: 6797318e623d ("tcp: md5: add an address prefix for key lookup")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c

index 6ec6900eb300364bc908de8707b2a175abf04b77..a20e7f03d5f7d81ccf7e92de9bfbbcc3e2df6718 100644 (file)
@@ -943,9 +943,9 @@ struct tcp_md5sig_key *tcp_md5_do_lookup(const struct sock *sk,
 }
 EXPORT_SYMBOL(tcp_md5_do_lookup);
 
-struct tcp_md5sig_key *tcp_md5_do_lookup_exact(const struct sock *sk,
-                                              const union tcp_md5_addr *addr,
-                                              int family, u8 prefixlen)
+static struct tcp_md5sig_key *tcp_md5_do_lookup_exact(const struct sock *sk,
+                                                     const union tcp_md5_addr *addr,
+                                                     int family, u8 prefixlen)
 {
        const struct tcp_sock *tp = tcp_sk(sk);
        struct tcp_md5sig_key *key;