From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Yongjun Subject: [PATCH net-next] net/tls: Make function get_rec() static Date: Wed, 26 Sep 2018 12:10:48 +0000 Message-ID: <1537963848-166323-1-git-send-email-weiyongjun1@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: Wei Yongjun , , To: Boris Pismenny , Aviad Yehezkel , Dave Watson , Vakul Garg Return-path: Received: from szxga06-in.huawei.com ([45.249.212.32]:41059 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726593AbeIZSOU (ORCPT ); Wed, 26 Sep 2018 14:14:20 -0400 Sender: netdev-owner@vger.kernel.org List-ID: 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 --- net/tls/tls_sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index bcb24c4..207e3ca 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c @@ -652,7 +652,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);