* [linux-next:fs-next 337/433] fs/bcachefs/btree_key_cache.c:758:9: sparse: sparse: dereference of noderef expression
@ 2024-08-22 7:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-08-22 7:01 UTC (permalink / raw)
To: Kent Overstreet; +Cc: oe-kbuild-all, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git fs-next
head: 7ba615b05fbe745265e898c3bf8db40453c59b8a
commit: f316d2e88651ba94dff468e038621a5385002b2d [337/433] bcachefs: Rip out freelists from btree key cache
config: csky-randconfig-r132-20240822 (https://download.01.org/0day-ci/archive/20240822/202408221407.KnZ1VF8O-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240822/202408221407.KnZ1VF8O-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/202408221407.KnZ1VF8O-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
fs/bcachefs/btree_key_cache.c: note: in included file:
fs/bcachefs/bcachefs.h:996:9: sparse: sparse: array of flexible structures
fs/bcachefs/btree_key_cache.c:687:32: sparse: sparse: context imbalance in 'bch2_fs_btree_key_cache_exit' - different lock contexts for basic block
>> fs/bcachefs/btree_key_cache.c:758:9: sparse: sparse: dereference of noderef expression
vim +758 fs/bcachefs/btree_key_cache.c
750
751 void bch2_btree_key_cache_to_text(struct printbuf *out, struct btree_key_cache *bc)
752 {
753 printbuf_tabstop_push(out, 24);
754 printbuf_tabstop_push(out, 12);
755
756 prt_printf(out, "keys:\t%lu\r\n", atomic_long_read(&bc->nr_keys));
757 prt_printf(out, "dirty:\t%lu\r\n", atomic_long_read(&bc->nr_dirty));
> 758 prt_printf(out, "table size:\t%u\r\n", bc->table.tbl->size);
759
760 prt_printf(out, "\nshrinker:\n");
761 prt_printf(out, "requested_to_free:\t%lu\r\n", bc->requested_to_free);
762 prt_printf(out, "freed:\t%lu\r\n", bc->freed);
763 prt_printf(out, "skipped_dirty:\t%lu\r\n", bc->skipped_dirty);
764 prt_printf(out, "skipped_accessed:\t%lu\r\n", bc->skipped_accessed);
765 prt_printf(out, "skipped_lock_fail:\t%lu\r\n", bc->skipped_lock_fail);
766 }
767
--
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-08-22 7:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-22 7:01 [linux-next:fs-next 337/433] fs/bcachefs/btree_key_cache.c:758:9: sparse: sparse: dereference of noderef expression kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox