* [bcachefs:bcachefs-testing 127/129] fs/bcachefs/btree_iter.h:38:18: warning: unused variable 'idx'
@ 2024-07-17 12:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-17 12:57 UTC (permalink / raw)
To: Kent Overstreet; +Cc: oe-kbuild-all, Kent Overstreet
tree: https://evilpiepirate.org/git/bcachefs.git bcachefs-testing
head: 9d089bb2428fdbcfc5a2f00e7968d2b697c8bb20
commit: bc47374601095a64f77eb477f04b83bebef79b22 [127/129] bcachefs: Add check for btree_path ref overflow
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20240717/202407172020.86bCXnde-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240717/202407172020.86bCXnde-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/oe-kbuild-all/202407172020.86bCXnde-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from fs/bcachefs/str_hash.h:5,
from fs/bcachefs/xattr.h:5,
from fs/bcachefs/acl.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
>> fs/bcachefs/btree_iter.h:38:18: warning: unused variable 'idx' [-Wunused-variable]
38 | unsigned idx = path - trans->paths;
| ^~~
vim +/idx +38 fs/bcachefs/btree_iter.h
35
36 static inline bool __btree_path_put(struct btree_trans *trans, struct btree_path *path, bool intent)
37 {
> 38 unsigned idx = path - trans->paths;
39
40 EBUG_ON(!test_bit(idx, trans->paths_allocated));
41 EBUG_ON(!path->ref);
42 EBUG_ON(!path->intent_ref && intent);
43
44 path->intent_ref -= intent;
45 return --path->ref == 0;
46 }
47
--
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:[~2024-07-17 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 12:57 [bcachefs:bcachefs-testing 127/129] fs/bcachefs/btree_iter.h:38:18: warning: unused variable 'idx' 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.