* [nfs:testing 39/48] net/sunrpc/xprt.c:893:17: sparse: cast from restricted __be32
@ 2018-09-10 18:48 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-09-10 18:48 UTC (permalink / raw)
To: Trond Myklebust; +Cc: kbuild-all, linux-nfs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-10 23:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-10 18:48 [nfs:testing 39/48] net/sunrpc/xprt.c:893:17: sparse: cast from restricted __be32 kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).