diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2015-02-04 16:59:32 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2015-02-05 15:38:29 -0500 |
commit | b625a61698619c7af652de2701a2fb17c5c5d66e (patch) | |
tree | e3e89d27e63bc0dddd8dc0bc3eb42f7922b6f876 /net | |
parent | a0a1d50cd1e80652142af5cddcde500d06c71bdd (diff) |
xprtrdma: Address sparse complaint in rpcr_to_rdmar()
With "make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__":
linux-2.6/net/sunrpc/xprtrdma/xprt_rdma.h:273:30: warning: incorrect
type in initializer (different base types)
linux-2.6/net/sunrpc/xprtrdma/xprt_rdma.h:273:30: expected restricted
__be32 [usertype] *buffer
linux-2.6/net/sunrpc/xprtrdma/xprt_rdma.h:273:30: got unsigned int
[usertype] *rq_buffer
As far as I can tell this is a false positive.
Reported-by: kbuild-all@01.org
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net')
-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 | ||