From: YueHaibing <yuehaibing@huawei.com> Date: Wed, 16 Jan 2019 02:39:28 +0000 (+0800) Subject: net/tls: Make function tls_sw_do_sendpage static X-Git-Tag: v5.1-rc1~178^2~514 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=01cb8a1a6445e3dcb4ea949ad6771890f224b46d;p=users%2Fwilly%2Flinux.git 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> --- 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);