From: YueHaibing Date: Wed, 16 Jan 2019 02:39:28 +0000 (+0800) Subject: net/tls: Make function tls_sw_do_sendpage static X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=01cb8a1a6445e3dcb4ea949ad6771890f224b46d;p=openwrt%2Fstaging%2Fblogic.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 Signed-off-by: David S. Miller --- 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);