summaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-02-08 10:37:34 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-02-08 10:37:34 -0500
commitbc3203cdca962bcfaf2d59a5bc59b9f0171c7df4 (patch)
treebb76b60fd2ba3f676d0a0b0a57a9f49b85173eec /net/sunrpc
parent4ef2e4f84c523ebbc930ce05fa27b9b1350f4a4b (diff)
parentb625a61698619c7af652de2701a2fb17c5c5d66e (diff)
downloadblackbird-op-linux-bc3203cdca962bcfaf2d59a5bc59b9f0171c7df4.tar.gz
blackbird-op-linux-bc3203cdca962bcfaf2d59a5bc59b9f0171c7df4.zip
Merge tag 'nfs-rdma-for-3.20-part-2' of git://git.linux-nfs.org/projects/anna/nfs-rdma
NFS: RDMA Client Sparse Fixes This patch fixes a sparse warning in the initial submission. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> * tag 'nfs-rdma-for-3.20-part-2' of git://git.linux-nfs.org/projects/anna/nfs-rdma: xprtrdma: Address sparse complaint in rpcr_to_rdmar()
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/xprtrdma/xprt_rdma.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h
index c9d2a02f631b..d1b70397c60f 100644
--- a/net/sunrpc/xprtrdma/xprt_rdma.h
+++ b/net/sunrpc/xprtrdma/xprt_rdma.h
@@ -270,9 +270,10 @@ struct rpcrdma_req {
static inline struct rpcrdma_req *
rpcr_to_rdmar(struct rpc_rqst *rqst)
{
- struct rpcrdma_regbuf *rb = container_of(rqst->rq_buffer,
- struct rpcrdma_regbuf,
- rg_base[0]);
+ void *buffer = rqst->rq_buffer;
+ struct rpcrdma_regbuf *rb;
+
+ rb = container_of(buffer, struct rpcrdma_regbuf, rg_base);
return rb->rg_owner;
}
OpenPOWER on IntegriCloud