tree:
https://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs.git
xlog-write-rework
head: a205e517349494d7b3ab2ca314a5a2fb4ac042ff
commit: d16a295349c6a39d4c90b6386754466d9c8f5146 [7/16] xfs: reserve space and initialise
xlog_op_header in item formatting
config: i386-randconfig-s001-20211115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs.git/commit/...
git remote add dgc-xfs
https://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs.git
git fetch --no-tags dgc-xfs xlog-write-rework
git checkout d16a295349c6a39d4c90b6386754466d9c8f5146
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
fs/xfs/xfs_bmap_item.c: note: in included file:
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
--
fs/xfs/xfs_refcount_item.c: note: in included file:
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
--
fs/xfs/xfs_rmap_item.c: note: in included file:
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
--
fs/xfs/xfs_dquot_item.c: note: in included file:
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
--
fs/xfs/xfs_extfree_item.c: note: in included file:
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
--
fs/xfs/xfs_buf_item.c: note: in included file:
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
--
fs/xfs/xfs_icreate_item.c: note: in included file:
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
--
fs/xfs/xfs_inode_item.c: note: in included file:
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
> fs/xfs/xfs_log.h:33:21: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __be32 [usertype] oh_len @@
got int len @@
fs/xfs/xfs_log.h:33:21: sparse: expected restricted __be32
[usertype] oh_len
fs/xfs/xfs_log.h:33:21: sparse: got int len
vim +33 fs/xfs/xfs_log.h
23
24 void *xlog_prepare_iovec(struct xfs_log_vec *lv, struct xfs_log_iovec **vecp,
25 uint type);
26
27 static inline void
28 xlog_finish_iovec(struct xfs_log_vec *lv, struct xfs_log_iovec *vec, int len)
29 {
30 struct xlog_op_header *oph = vec->i_addr;
31
32 /* opheader tracks payload length, logvec tracks region length */
33 oph->oh_len = len;
34
35 len += sizeof(struct xlog_op_header);
36 lv->lv_buf_len += len;
37 lv->lv_bytes += len;
38 vec->i_len = len;
39 }
40
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org