oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [bcachefs:master 177/177] fs/bcachefs/btree_key_cache.c:1055:64: error: no member named 'srcu_sup' in 'struct srcu_struct'
@ 2024-04-20 22:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-20 22:54 UTC (permalink / raw
  To: Kent Overstreet; +Cc: llvm, oe-kbuild-all, Kent Overstreet

tree:   https://evilpiepirate.org/git/bcachefs.git master
head:   1be1637797fc37118b08b8528d8f2ede8e0c7f1e
commit: 1be1637797fc37118b08b8528d8f2ede8e0c7f1e [177/177] bcachefs: Btree key cache instrumentation
config: i386-buildonly-randconfig-002-20240421 (https://download.01.org/0day-ci/archive/20240421/202404210640.c8U58dNE-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240421/202404210640.c8U58dNE-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/202404210640.c8U58dNE-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> fs/bcachefs/btree_key_cache.c:1044:48: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
    1044 |         prt_printf(out, "nonpcpu freelist:\t%lu\r\n",   bc->nr_freed_nonpcpu);
         |                                             ~~~         ^~~~~~~~~~~~~~~~~~~~
         |                                             %zu
   fs/bcachefs/util.h:192:54: note: expanded from macro 'prt_printf'
     192 | #define prt_printf(_out, ...)           bch2_prt_printf(_out, __VA_ARGS__)
         |                                                               ^~~~~~~~~~~
   fs/bcachefs/btree_key_cache.c:1045:45: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
    1045 |         prt_printf(out, "pcpu freelist:\t%lu\r\n",      bc->nr_freed_pcpu);
         |                                          ~~~            ^~~~~~~~~~~~~~~~~
         |                                          %zu
   fs/bcachefs/util.h:192:54: note: expanded from macro 'prt_printf'
     192 | #define prt_printf(_out, ...)           bch2_prt_printf(_out, __VA_ARGS__)
         |                                                               ^~~~~~~~~~~
>> fs/bcachefs/btree_key_cache.c:1055:64: error: no member named 'srcu_sup' in 'struct srcu_struct'
    1055 |         prt_printf(out, "srcu seq:\t%lu\r\n",           c->btree_trans_barrier.srcu_sup->srcu_gp_seq);
         |                                                         ~~~~~~~~~~~~~~~~~~~~~~ ^
   fs/bcachefs/util.h:192:54: note: expanded from macro 'prt_printf'
     192 | #define prt_printf(_out, ...)           bch2_prt_printf(_out, __VA_ARGS__)
         |                                                               ^~~~~~~~~~~
   2 warnings and 1 error generated.


vim +1055 fs/bcachefs/btree_key_cache.c

  1033	
  1034	void bch2_btree_key_cache_to_text(struct printbuf *out, struct btree_key_cache *bc)
  1035	{
  1036		struct bch_fs *c = container_of(bc, struct bch_fs, btree_key_cache);
  1037	
  1038		printbuf_tabstop_push(out, 24);
  1039		printbuf_tabstop_push(out, 12);
  1040	
  1041		prt_printf(out, "keys:\t%lu\r\n",		atomic_long_read(&bc->nr_keys));
  1042		prt_printf(out, "dirty:\t%lu\r\n",		atomic_long_read(&bc->nr_dirty));
  1043		prt_printf(out, "freelist:\t%lu\r\n",		atomic_long_read(&bc->nr_freed));
> 1044		prt_printf(out, "nonpcpu freelist:\t%lu\r\n",	bc->nr_freed_nonpcpu);
  1045		prt_printf(out, "pcpu freelist:\t%lu\r\n",	bc->nr_freed_pcpu);
  1046	
  1047		prt_printf(out, "\nshrinker:\n");
  1048		prt_printf(out, "requested_to_free:\t%lu\r\n",	bc->requested_to_free);
  1049		prt_printf(out, "freed:\t%lu\r\n",		bc->freed);
  1050		prt_printf(out, "moved_to_freelist:\t%lu\r\n",	bc->moved_to_freelist);
  1051		prt_printf(out, "skipped_dirty:\t%lu\r\n",	bc->skipped_dirty);
  1052		prt_printf(out, "skipped_accessed:\t%lu\r\n",	bc->skipped_accessed);
  1053		prt_printf(out, "skipped_lock_fail:\t%lu\r\n",	bc->skipped_lock_fail);
  1054	
> 1055		prt_printf(out, "srcu seq:\t%lu\r\n",		c->btree_trans_barrier.srcu_sup->srcu_gp_seq);
  1056	
  1057		struct bkey_cached *ck;
  1058		unsigned iter = 0;
  1059		list_for_each_entry(ck, &bc->freed_nonpcpu, list) {
  1060			prt_printf(out, "freed_nonpcpu:\t%lu\r\n", ck->btree_trans_barrier_seq);
  1061			if (++iter > 10)
  1062				break;
  1063		}
  1064	
  1065		iter = 0;
  1066		list_for_each_entry(ck, &bc->freed_pcpu, list) {
  1067			prt_printf(out, "freed_pcpu:\t%lu\r\n", ck->btree_trans_barrier_seq);
  1068			if (++iter > 10)
  1069				break;
  1070		}
  1071	}
  1072	

-- 
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-04-20 22:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-20 22:54 [bcachefs:master 177/177] fs/bcachefs/btree_key_cache.c:1055:64: error: no member named 'srcu_sup' in 'struct srcu_struct' 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).