OSDN Git Service

xprtrdma: Address sparse complaint in rpcr_to_rdmar()
authorChuck Lever <chuck.lever@oracle.com>
Wed, 4 Feb 2015 21:59:32 +0000 (16:59 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 5 Feb 2015 20:38:29 +0000 (15:38 -0500)
commitb625a61698619c7af652de2701a2fb17c5c5d66e
treee3e89d27e63bc0dddd8dc0bc3eb42f7922b6f876
parenta0a1d50cd1e80652142af5cddcde500d06c71bdd
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>
net/sunrpc/xprtrdma/xprt_rdma.h