Skip to contentSkip to conversation

net/tls: remove unused function tls_sw_sendpage_locked

PATCH Applied YueHaibing 2 participants 4 messages Jan 16, 2019 – Jan 17, 2019

Subsystems (3)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 net/tls: remove unused function tls_sw_sendpage_locked

There are no in-tree callers.

---
 net/tls/tls_sw.c | 10 ----------
 1 file changed, 10 deletions(-)
net/tls/tls_sw.c +0 -10
index 11cdc8f..c475538 100644
@@ -1143,16 +1143,6 @@ int tls_sw_do_sendpage(struct sock *sk, struct page *page,
 	return copied ? copied : ret;
 }
 
-int tls_sw_sendpage_locked(struct sock *sk, struct page *page,
-			   int offset, size_t size, int flags)
-{
-	if (flags & ~(MSG_MORE | MSG_DONTWAIT | MSG_NOSIGNAL |
-		      MSG_SENDPAGE_NOTLAST | MSG_SENDPAGE_NOPOLICY))
-		return -ENOTSUPP;
-
-	return tls_sw_do_sendpage(sk, page, offset, size, flags);
-}
-
 int tls_sw_sendpage(struct sock *sk, struct page *page,
 		    int offset, size_t size, int flags)
 {
Signature · 1 line
2.7.0
author
#1 lore raw

PATCH 1/1 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?

---
 net/tls/tls_sw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/tls/tls_sw.c +2 -2
index c475538..b8e50e2 100644
@@ -1020,8 +1020,8 @@ int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
 	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);
Signature · 1 line
2.7.0
maintainer Applied
#2 lore raw

Re: [PATCH net-next] net/tls: Make function tls_sw_do_sendpage static

From: YueHaibing <[email protected]>
Date: Wed, 16 Jan 2019 10:39:28 +0800

Quoted 6 lines

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?

Applied.