summaryrefslogtreecommitdiff
path: root/net/tls
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-01-16 10:39:28 +0800
committerDavid S. Miller <davem@davemloft.net>2019-01-17 11:45:21 -0800
commit01cb8a1a6445e3dcb4ea949ad6771890f224b46d (patch)
treef436f86ae34830531f85bca1228d0e40d17f0446 /net/tls
parentf3de19af0f5b18dcbb6d445db02120656ebf9cfb (diff)
net/tls: Make function tls_sw_do_sendpage static
Fixes the following sparse warning: net/tls/tls_sw.c:1023:5: warning: symbol 'tls_sw_do_sendpage' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tls')
-rw-r--r--net/tls/tls_sw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c
index c4755388ed03..b8e50e22b777 100644
--- a/net/tls/tls_sw.c
+++ b/net/tls/tls_sw.c
@@ -1020,8 +1020,8 @@ send_end:
return copied ? copied : ret;
}
-int tls_sw_do_sendpage(struct sock *sk, struct page *page,
- int offset, size_t size, int flags)
+static int tls_sw_do_sendpage(struct sock *sk, struct page *page,
+ int offset, size_t size, int flags)
{
long timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT);
struct tls_context *tls_ctx = tls_get_ctx(sk);