mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[SUNRPC]: Use htonl() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ae445d172a
commit
8d614434ab
1 changed files with 3 additions and 3 deletions
|
|
@ -380,7 +380,7 @@ rpcrdma_marshal_req(struct rpc_rqst *rqst)
|
|||
headerp->rm_xid = rqst->rq_xid;
|
||||
headerp->rm_vers = xdr_one;
|
||||
headerp->rm_credit = htonl(r_xprt->rx_buf.rb_max_requests);
|
||||
headerp->rm_type = __constant_htonl(RDMA_MSG);
|
||||
headerp->rm_type = htonl(RDMA_MSG);
|
||||
|
||||
/*
|
||||
* Chunks needed for results?
|
||||
|
|
@ -458,11 +458,11 @@ rpcrdma_marshal_req(struct rpc_rqst *rqst)
|
|||
RPCRDMA_INLINE_PAD_VALUE(rqst));
|
||||
|
||||
if (padlen) {
|
||||
headerp->rm_type = __constant_htonl(RDMA_MSGP);
|
||||
headerp->rm_type = htonl(RDMA_MSGP);
|
||||
headerp->rm_body.rm_padded.rm_align =
|
||||
htonl(RPCRDMA_INLINE_PAD_VALUE(rqst));
|
||||
headerp->rm_body.rm_padded.rm_thresh =
|
||||
__constant_htonl(RPCRDMA_INLINE_PAD_THRESH);
|
||||
htonl(RPCRDMA_INLINE_PAD_THRESH);
|
||||
headerp->rm_body.rm_padded.rm_pempty[0] = xdr_zero;
|
||||
headerp->rm_body.rm_padded.rm_pempty[1] = xdr_zero;
|
||||
headerp->rm_body.rm_padded.rm_pempty[2] = xdr_zero;
|
||||
|
|
|
|||
Loading…
Reference in a new issue