projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3de19a
)
net/tls: Make function tls_sw_do_sendpage static
author
YueHaibing
<
[email protected]
>
Wed, 16 Jan 2019 02:39:28 +0000
(10:39 +0800)
committer
David S. Miller
<
[email protected]
>
Thu, 17 Jan 2019 19:45:21 +0000
(11:45 -0800)
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/tls/tls_sw.c
patch
|
blob
|
history
diff --git
a/net/tls/tls_sw.c
b/net/tls/tls_sw.c
index c4755388ed035712ef565202104b00fde1b95444..b8e50e22b777200ae9b556f112007d3e812d24bc 100644
(file)
--- 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);