diff options
author | Wei Yongjun | 2018-09-26 14:10:48 +0200 |
---|---|---|
committer | David S. Miller | 2018-09-28 19:25:11 +0200 |
commit | bf17b671982f8bd17bdf63a9bb4eba5b270209e9 (patch) | |
tree | 27ce4fc234cd115f031008b3641420d5b5d2d832 /net/tls | |
parent | net/core: make function ___gnet_stats_copy_basic() static (diff) | |
download | kernel-qcow2-linux-bf17b671982f8bd17bdf63a9bb4eba5b270209e9.tar.gz kernel-qcow2-linux-bf17b671982f8bd17bdf63a9bb4eba5b270209e9.tar.xz kernel-qcow2-linux-bf17b671982f8bd17bdf63a9bb4eba5b270209e9.zip |
net/tls: Make function get_rec() static
Fixes the following sparse warning:
net/tls/tls_sw.c:655:16: warning:
symbol 'get_rec' was not declared. Should it be static?
Fixes: a42055e8d2c3 ("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>
Diffstat (limited to 'net/tls')
-rw-r--r-- | net/tls/tls_sw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index 4c18b4dba284..2176678a5b69 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c @@ -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); |