Skip to content

Commit 01cb8a1

Browse files
YueHaibingdavem330
authored andcommitted
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>
1 parent f3de19a commit 01cb8a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/tls/tls_sw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,8 +1020,8 @@ int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
10201020
return copied ? copied : ret;
10211021
}
10221022

1023-
int tls_sw_do_sendpage(struct sock *sk, struct page *page,
1024-
int offset, size_t size, int flags)
1023+
static int tls_sw_do_sendpage(struct sock *sk, struct page *page,
1024+
int offset, size_t size, int flags)
10251025
{
10261026
long timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT);
10271027
struct tls_context *tls_ctx = tls_get_ctx(sk);

0 commit comments

Comments
 (0)