Skip to contentSkip to conversation

net/tls: Make function get_rec() static

PATCH Applied Wei Yongjun 2 participants 2 messages Sep 26, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 net/tls/tls_sw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/tls/tls_sw.c +1 -1
index bcb24c4..207e3ca 100644
@@ -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);
maintainer Applied
#1 lore raw

From: Wei Yongjun <[email protected]>
Date: Wed, 26 Sep 2018 12:10:48 +0000

Quoted 7 lines

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")

Applied.