]> err.no Git - linux-2.6/commitdiff
[SUNRPC]: Use htonl() where appropriate.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 11 Dec 2007 18:55:42 +0000 (03:55 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:05 +0000 (14:58 -0800)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sunrpc/xprtrdma/rpc_rdma.c

index ee8de7af2a5bd8b0b757d2f581f1cb8c127e235b..1aa1580cda6d82c247d202596ddfa9676d8f1e08 100644 (file)
@@ -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;