diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-08 10:37:34 -0500 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-08 10:37:34 -0500 |
| commit | bc3203cdca962bcfaf2d59a5bc59b9f0171c7df4 (patch) | |
| tree | bb76b60fd2ba3f676d0a0b0a57a9f49b85173eec | |
| parent | 4ef2e4f84c523ebbc930ce05fa27b9b1350f4a4b (diff) | |
| parent | b625a61698619c7af652de2701a2fb17c5c5d66e (diff) | |
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()
| -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 { | |||
| 270 | static inline struct rpcrdma_req * | 270 | static inline struct rpcrdma_req * |
| 271 | rpcr_to_rdmar(struct rpc_rqst *rqst) | 271 | rpcr_to_rdmar(struct rpc_rqst *rqst) |
| 272 | { | 272 | { |
| 273 | struct rpcrdma_regbuf *rb = container_of(rqst->rq_buffer, | 273 | void *buffer = rqst->rq_buffer; |
| 274 | struct rpcrdma_regbuf, | 274 | struct rpcrdma_regbuf *rb; |
| 275 | rg_base[0]); | 275 | |
| 276 | rb = container_of(buffer, struct rpcrdma_regbuf, rg_base); | ||
| 276 | return rb->rg_owner; | 277 | return rb->rg_owner; |
| 277 | } | 278 | } |
| 278 | 279 | ||
