[linux-next:master 6565/7300] fs/bcachefs/btree_iter.c:1442:28: warning: variable 'path' set but not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   48e8992e33abf054bcc0bb2e77b2d43bb899212e
commit: 1270c98a2de83dd8d9151f9564d5a5e523c13f70 [6565/7300] bcachefs: bch2_btree_path_to_text() -> btree_path_idx_t
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20231213/202312131758.NED6TvQK-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231213/202312131758.NED6TvQK-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312131758.NED6TvQK-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from fs/bcachefs/btree_iter.c:13:
   fs/bcachefs/error.h: In function 'bch2_bkey_fsck_err':
   fs/bcachefs/error.h:168:9: warning: function 'bch2_bkey_fsck_err' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
     168 |         prt_vprintf(err_msg, fmt, args);
         |         ^~~~~~~~~~~
   fs/bcachefs/btree_iter.c: In function '__bch2_trans_paths_to_text':
>> fs/bcachefs/btree_iter.c:1442:28: warning: variable 'path' set but not used [-Wunused-but-set-variable]
    1442 |         struct btree_path *path;
         |                            ^~~~


vim +/path +1442 fs/bcachefs/btree_iter.c

67e0dd8f0d8b4b Kent Overstreet 2021-08-30  1436  
73bd774d28d2b2 Kent Overstreet 2023-07-06  1437  static noinline __cold
5c0bb66ae341c7 Kent Overstreet 2022-08-11  1438  void __bch2_trans_paths_to_text(struct printbuf *out, struct btree_trans *trans,
5c0bb66ae341c7 Kent Overstreet 2022-08-11  1439  				bool nosort)
5c0bb66ae341c7 Kent Overstreet 2022-08-11  1440  {
d7040e061f1283 Kent Overstreet 2023-12-10  1441  	struct trans_for_each_path_inorder_iter iter;
5c0bb66ae341c7 Kent Overstreet 2022-08-11 @1442  	struct btree_path *path;
5c0bb66ae341c7 Kent Overstreet 2022-08-11  1443  
5c0bb66ae341c7 Kent Overstreet 2022-08-11  1444  	if (!nosort)
5c0bb66ae341c7 Kent Overstreet 2022-08-11  1445  		btree_trans_sort_paths(trans);
5c0bb66ae341c7 Kent Overstreet 2022-08-11  1446  
d7040e061f1283 Kent Overstreet 2023-12-10  1447  	trans_for_each_path_inorder(trans, path, iter)
1270c98a2de83d Kent Overstreet 2023-12-10  1448  		bch2_btree_path_to_text(out, trans, iter.path_idx);
5c0bb66ae341c7 Kent Overstreet 2022-08-11  1449  }
5c0bb66ae341c7 Kent Overstreet 2022-08-11  1450  

:::::: The code at line 1442 was first introduced by commit
:::::: 5c0bb66ae341c71e5f62c193ea4d7b0cf278a914 bcachefs: Track the maximum btree_paths ever allocated by each transaction

:::::: TO: Kent Overstreet <kent.overstreet@xxxxxxxxx>
:::::: CC: Kent Overstreet <kent.overstreet@xxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux