[nfs:testing 39/48] net/sunrpc/xprt.c:893:17: sparse: cast from restricted __be32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git testing
head:   11dddfd20094d3d05af7aa2ac8ef0c9435a11856
commit: 19568b491e9a59b2e5a07ce18e3194625e59aa6c [39/48] SUNRPC: Convert xprt receive queue to use an rbtree
reproduce:
        # apt-get install sparse
        git checkout 19568b491e9a59b2e5a07ce18e3194625e59aa6c
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> net/sunrpc/xprt.c:893:17: sparse: cast from restricted __be32
   net/sunrpc/xprt.c:893:29: sparse: cast from restricted __be32
   net/sunrpc/xprt.c:1512:32: sparse: expression using sizeof(void)
   net/sunrpc/xprt.c:1512:32: sparse: expression using sizeof(void)

vim +893 net/sunrpc/xprt.c

   882	
   883	enum xprt_xid_rb_cmp {
   884		XID_RB_EQUAL,
   885		XID_RB_LEFT,
   886		XID_RB_RIGHT,
   887	};
   888	static enum xprt_xid_rb_cmp
   889	xprt_xid_cmp(__be32 xid1, __be32 xid2)
   890	{
   891		if (xid1 == xid2)
   892			return XID_RB_EQUAL;
 > 893		return (u32)xid1 < (u32)xid2 ? XID_RB_LEFT : XID_RB_RIGHT;
   894	}
   895	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux