diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-08 16:37:34 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-08 16:37:34 +0100 |
commit | bc3203cdca962bcfaf2d59a5bc59b9f0171c7df4 (patch) | |
tree | bb76b60fd2ba3f676d0a0b0a57a9f49b85173eec /net/sunrpc | |
parent | NFSv4.1: Fix pnfs_put_lseg races (diff) | |
parent | xprtrdma: Address sparse complaint in rpcr_to_rdmar() (diff) | |
download | linux-bc3203cdca962bcfaf2d59a5bc59b9f0171c7df4.tar.xz 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.h | 7 |
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; } |