tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: aa4db8324c4d0e67aa4670356df4e9fae14b4d37 commit: a857ec99c72bfd31275300bdda28ef499a75a182 [8475/9096] bcachefs: btree_node_u64s_with_format() takes nr keys config: i386-randconfig-061-20231219 (https://download.01.org/0day-ci/archive/20231219/202312191829.ZkroAQDV-lkp@xxxxxxxxx/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231219/202312191829.ZkroAQDV-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/202312191829.ZkroAQDV-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): >> fs/bcachefs/btree_update_interior.c:158: warning: Function parameter or struct member 'nr' not described in 'bch2_btree_node_format_fits' vim +158 fs/bcachefs/btree_update_interior.c 1c6fdbd8f2465d Kent Overstreet 2017-03-16 143 1c6fdbd8f2465d Kent Overstreet 2017-03-16 144 /** 7cb0e6992e5c56 Colin Ian King 2023-09-12 145 * bch2_btree_node_format_fits - check if we could rewrite node with a new format 1c6fdbd8f2465d Kent Overstreet 2017-03-16 146 * 96dea3d599dbc3 Kent Overstreet 2023-09-12 147 * @c: filesystem handle 96dea3d599dbc3 Kent Overstreet 2023-09-12 148 * @b: btree node to rewrite 96dea3d599dbc3 Kent Overstreet 2023-09-12 149 * @new_f: bkey format to translate keys to 96dea3d599dbc3 Kent Overstreet 2023-09-12 150 * 96dea3d599dbc3 Kent Overstreet 2023-09-12 151 * Returns: true if all re-packed keys will be able to fit in a new node. 96dea3d599dbc3 Kent Overstreet 2023-09-12 152 * 96dea3d599dbc3 Kent Overstreet 2023-09-12 153 * Assumes all keys will successfully pack with the new format. 1c6fdbd8f2465d Kent Overstreet 2017-03-16 154 */ a857ec99c72bfd Kent Overstreet 2023-12-17 155 static bool bch2_btree_node_format_fits(struct bch_fs *c, struct btree *b, a857ec99c72bfd Kent Overstreet 2023-12-17 156 struct btree_nr_keys nr, 1c6fdbd8f2465d Kent Overstreet 2017-03-16 157 struct bkey_format *new_f) 1c6fdbd8f2465d Kent Overstreet 2017-03-16 @158 { a857ec99c72bfd Kent Overstreet 2023-12-17 159 size_t u64s = btree_node_u64s_with_format(nr, &b->format, new_f); 1c6fdbd8f2465d Kent Overstreet 2017-03-16 160 1c6fdbd8f2465d Kent Overstreet 2017-03-16 161 return __vstruct_bytes(struct btree_node, u64s) < btree_bytes(c); 1c6fdbd8f2465d Kent Overstreet 2017-03-16 162 } 1c6fdbd8f2465d Kent Overstreet 2017-03-16 163 :::::: The code at line 158 was first introduced by commit :::::: 1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a bcachefs: Initial commit :::::: 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