]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/tls: Make function get_rec() static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 26 Sep 2018 12:10:48 +0000 (12:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2018 17:25:11 +0000 (10:25 -0700)
Fixes the following sparse warning:

net/tls/tls_sw.c:655:16: warning:
 symbol 'get_rec' was not declared. Should it be static?

Fixes: b574142da9d5 ("net/tls: Add support for async encryption of records for performance")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c

index 4c18b4dba284615870299480876b7dd78dd4bc2c..2176678a5b690820cd0de6c589e6a2d13a53917a 100644 (file)
@@ -637,7 +637,7 @@ out:
        return rc;
 }
 
-struct tls_rec *get_rec(struct sock *sk)
+static struct tls_rec *get_rec(struct sock *sk)
 {
        struct tls_context *tls_ctx = tls_get_ctx(sk);
        struct tls_sw_context_tx *ctx = tls_sw_ctx_tx(tls_ctx);