* fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false
@ 2023-11-16 0:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-16 0:39 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "low confidence static check warning: fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Kent Overstreet <kmo@daterainc.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c42d9eeef8e5ba9292eda36fd8e3c11f35ee065c
commit: 1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a bcachefs: Initial commit
date: 3 weeks ago
:::::: branch date: 20 hours ago
:::::: commit date: 3 weeks ago
config: x86_64-randconfig-121-20231114 (https://download.01.org/0day-ci/archive/20231116/202311160807.grnMbMEK-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231116/202311160807.grnMbMEK-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202311160807.grnMbMEK-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
fs/bcachefs/bset.c: note: in included file:
>> fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false
--
fs/bcachefs/btree_io.c: note: in included file (through fs/bcachefs/bcachefs.h):
fs/bcachefs/bcachefs_format.h:1022:42: sparse: sparse: array of flexible structures
fs/bcachefs/btree_io.c: note: in included file (through fs/bcachefs/btree_io.h):
>> fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false
>> fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false
fs/bcachefs/btree_io.c: note: in included file (through include/linux/backing-dev-defs.h, fs/bcachefs/bcachefs.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
fs/bcachefs/btree_io.c: note: in included file (through fs/bcachefs/btree_cache.h):
fs/bcachefs/extents.h:287:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:287:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:287:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:301:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:301:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:301:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/extents.h:287:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:287:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:287:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:301:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:301:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:301:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/extents.h:287:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:287:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:287:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:301:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:301:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:301:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/extents.h:287:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:287:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:287:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:301:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:301:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:301:44: sparse: got unsigned long long const [usertype] csum_hi:16
--
fs/bcachefs/btree_update_interior.c: note: in included file (through fs/bcachefs/bcachefs.h):
fs/bcachefs/bcachefs_format.h:1022:42: sparse: sparse: array of flexible structures
fs/bcachefs/btree_update_interior.c: note: in included file (through fs/bcachefs/btree_cache.h):
fs/bcachefs/extents.h:287:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:287:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:287:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:301:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:301:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:301:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/extents.h:287:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] csum @@
fs/bcachefs/extents.h:287:44: sparse: expected restricted __le32 [usertype]
fs/bcachefs/extents.h:287:44: sparse: got unsigned int const [usertype] csum
fs/bcachefs/extents.h:301:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got unsigned long long const [usertype] csum_hi:16 @@
fs/bcachefs/extents.h:301:44: sparse: expected restricted __le16 [usertype]
fs/bcachefs/extents.h:301:44: sparse: got unsigned long long const [usertype] csum_hi:16
fs/bcachefs/btree_update_interior.c: note: in included file (through include/linux/backing-dev-defs.h, fs/bcachefs/bcachefs.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
fs/bcachefs/btree_update_interior.c: note: in included file (through fs/bcachefs/btree_io.h, fs/bcachefs/btree_locking.h, fs/bcachefs/btree_update_interior.h):
>> fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false
>> fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false
fs/bcachefs/btree_update_interior.c: note: in included file (through include/linux/backing-dev-defs.h, fs/bcachefs/bcachefs.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
fs/bcachefs/btree_update_interior.c: note: in included file (through fs/bcachefs/btree_io.h, fs/bcachefs/btree_locking.h, fs/bcachefs/btree_update_interior.h):
>> fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false
>> fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false
fs/bcachefs/btree_update_interior.c: note: in included file (through include/linux/backing-dev-defs.h, fs/bcachefs/bcachefs.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
fs/bcachefs/btree_update_interior.c: note: in included file (through fs/bcachefs/btree_io.h, fs/bcachefs/btree_locking.h, fs/bcachefs/btree_update_interior.h):
>> fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false
vim +303 fs/bcachefs/bset.h
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 299
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 300 static inline void bch2_bset_set_no_aux_tree(struct btree *b,
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 301 struct bset_tree *t)
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 302 {
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 @303 BUG_ON(t < b->set);
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 304
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 305 for (; t < b->set + ARRAY_SIZE(b->set); t++) {
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 306 t->size = 0;
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 307 t->extra = BSET_NO_AUX_TREE_VAL;
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 308 t->aux_data_offset = U16_MAX;
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 309 }
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 310 }
1c6fdbd8f2465dd Kent Overstreet 2017-03-16 311
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-16 0:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-16 0:39 fs/bcachefs/bset.h:303:9: sparse: sparse: self-comparison always evaluates to false kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.