Skip to content

Commit 24569f0

Browse files
jtlaytonchucklever
authored andcommitted
sunrpc: make svc_tcp_sendmsg() take a signed sentp pointer
The return value of sock_sendmsg() is signed, and svc_tcp_sendto() wants a signed value to return. Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 2bac9a4 commit 24569f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

net/sunrpc/svcsock.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
11971197
* that the pages backing @xdr are unchanging.
11981198
*/
11991199
static int svc_tcp_sendmsg(struct svc_sock *svsk, struct svc_rqst *rqstp,
1200-
rpc_fraghdr marker, unsigned int *sentp)
1200+
rpc_fraghdr marker, int *sentp)
12011201
{
12021202
struct msghdr msg = {
12031203
.msg_flags = MSG_SPLICE_PAGES,
@@ -1247,8 +1247,7 @@ static int svc_tcp_sendto(struct svc_rqst *rqstp)
12471247
struct xdr_buf *xdr = &rqstp->rq_res;
12481248
rpc_fraghdr marker = cpu_to_be32(RPC_LAST_STREAM_FRAGMENT |
12491249
(u32)xdr->len);
1250-
unsigned int sent;
1251-
int err;
1250+
int sent, err;
12521251

12531252
svc_tcp_release_ctxt(xprt, rqstp->rq_xprt_ctxt);
12541253
rqstp->rq_xprt_ctxt = NULL;

0 commit comments

Comments
 (0)