提交 bf17b671 编写于 作者: W Wei Yongjun 提交者: David S. Miller

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: a42055e8 ("net/tls: Add support for async encryption of records for performance")
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5d70a670
无相关合并请求
......@@ -637,7 +637,7 @@ static int memcopy_from_iter(struct sock *sk, struct iov_iter *from,
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部