From: kernel test robot <lkp@intel.com>
To: "Roger L. Beckermeyer III" <beckerlee3@gmail.com>,
linux-btrfs@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Roger L. Beckermeyer III" <beckerlee3@gmail.com>
Subject: Re: [PATCH] btrfs: edit prelim_ref_insert() to use rb helpers
Date: Mon, 9 Dec 2024 13:06:49 +0800 [thread overview]
Message-ID: <202412090958.CtUdYRwP-lkp@intel.com> (raw)
In-Reply-To: <8201f6ae724c5dbc7c82f2ed294d457db208b2fa.1733695544.git.beckerlee3@gmail.com>
Hi Roger,
kernel test robot noticed the following build errors:
[auto build test ERROR on kdave/for-next]
[also build test ERROR on linus/master v6.13-rc2 next-20241206]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Roger-L-Beckermeyer-III/btrfs-edit-prelim_ref_insert-to-use-rb-helpers/20241209-064043
base: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
patch link: https://lore.kernel.org/r/8201f6ae724c5dbc7c82f2ed294d457db208b2fa.1733695544.git.beckerlee3%40gmail.com
patch subject: [PATCH] btrfs: edit prelim_ref_insert() to use rb helpers
config: arm-randconfig-001-20241209 (https://download.01.org/0day-ci/archive/20241209/202412090958.CtUdYRwP-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241209/202412090958.CtUdYRwP-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/202412090958.CtUdYRwP-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/btrfs/backref.c:6:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> fs/btrfs/backref.c:302:10: error: call to undeclared function 'rb_find_add_cached'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
302 | exist = rb_find_add_cached(&newref->rbnode, root, prelim_ref_cmp);
| ^
>> fs/btrfs/backref.c:302:8: error: incompatible integer to pointer conversion assigning to 'struct rb_node *' from 'int' [-Wint-conversion]
302 | exist = rb_find_add_cached(&newref->rbnode, root, prelim_ref_cmp);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 2 errors generated.
vim +/rb_find_add_cached +302 fs/btrfs/backref.c
280
281 /*
282 * Add @newref to the @root rbtree, merging identical refs.
283 *
284 * Callers should assume that newref has been freed after calling.
285 */
286 static void prelim_ref_insert(const struct btrfs_fs_info *fs_info,
287 struct preftree *preftree,
288 struct prelim_ref *newref,
289 struct share_check *sc)
290 {
291 struct rb_root_cached *root;
292 struct rb_node **p;
293 struct rb_node *parent = NULL;
294 struct prelim_ref *ref;
295 struct rb_node *exist;
296
297 root = &preftree->root;
298 p = &root->rb_root.rb_node;
299 parent = *p;
300 ref = rb_entry(parent, struct prelim_ref, rbnode);
301
> 302 exist = rb_find_add_cached(&newref->rbnode, root, prelim_ref_cmp);
303 if (exist != NULL) {
304 /* Identical refs, merge them and free @newref */
305 struct extent_inode_elem *eie = ref->inode_list;
306
307 while (eie && eie->next)
308 eie = eie->next;
309
310 if (!eie)
311 ref->inode_list = newref->inode_list;
312 else
313 eie->next = newref->inode_list;
314 trace_btrfs_prelim_ref_merge(fs_info, ref, newref,
315 preftree->count);
316 /*
317 * A delayed ref can have newref->count < 0.
318 * The ref->count is updated to follow any
319 * BTRFS_[ADD|DROP]_DELAYED_REF actions.
320 */
321 update_share_count(sc, ref->count,
322 ref->count + newref->count, newref);
323 ref->count += newref->count;
324 free_pref(newref);
325 return;
326 }
327
328 update_share_count(sc, 0, newref->count, newref);
329 preftree->count++;
330 trace_btrfs_prelim_ref_insert(fs_info, newref, NULL, preftree->count);
331 }
332
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-12-09 5:07 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-08 22:37 [PATCHi 0/6] reduce boilerplate code within btrfs Roger L. Beckermeyer III
2024-12-08 22:38 ` [PATCH] rbtree: add rb_find_add_cached() to rbtree.h Roger L. Beckermeyer III
2024-12-08 22:38 ` [PATCH] btrfs: edit btrfs_add_block_group_cache() to use rb helper Roger L. Beckermeyer III
2024-12-09 5:05 ` kernel test robot
2024-12-08 22:38 ` [PATCH] btrfs: edit prelim_ref_insert() to use rb helpers Roger L. Beckermeyer III
2024-12-09 5:02 ` kernel test robot
2024-12-09 5:06 ` kernel test robot [this message]
2024-12-08 22:38 ` [PATCH] btrfs: edit __btrfs_add_delayed_item() to use rb helper Roger L. Beckermeyer III
2024-12-09 5:00 ` kernel test robot
2024-12-09 5:07 ` kernel test robot
2024-12-12 1:18 ` kernel test robot
2024-12-08 22:38 ` [PATCH] btrfs: edit btrfs_add_chunk_map() to use rb helpers Roger L. Beckermeyer III
2024-12-09 5:05 ` kernel test robot
2024-12-09 5:07 ` kernel test robot
2024-12-08 22:38 ` [PATCH] btrfs: edits tree_insert() " Roger L. Beckermeyer III
2024-12-09 5:04 ` kernel test robot
2024-12-09 5:08 ` kernel test robot
2024-12-09 12:36 ` kernel test robot
2024-12-09 12:46 ` Filipe Manana
2024-12-11 22:17 ` kernel test robot
2024-12-09 6:10 ` [PATCHi 0/6] reduce boilerplate code within btrfs Qu Wenruo
2024-12-09 14:05 ` Josef Bacik
2024-12-10 19:06 ` [PATCH " Roger L. Beckermeyer III
2024-12-10 19:06 ` [PATCH 1/6] rbtree: add rb_find_add_cached() to rbtree.h Roger L. Beckermeyer III
2024-12-10 19:58 ` Johannes Thumshirn
2024-12-11 17:47 ` Roger L. Beckermeyer III
2024-12-11 18:41 ` David Sterba
2024-12-12 16:46 ` Roger L. Beckermeyer III
2024-12-13 7:21 ` Qu Wenruo
2024-12-13 9:05 ` Peter Zijlstra
2024-12-13 9:06 ` Peter Zijlstra
2024-12-16 22:13 ` Qu Wenruo
2024-12-16 22:22 ` Peter Zijlstra
2024-12-16 22:40 ` Qu Wenruo
2024-12-10 19:06 ` [PATCH 2/6] btrfs: edit btrfs_add_block_group_cache() to use rb helper Roger L. Beckermeyer III
2024-12-11 18:45 ` David Sterba
2024-12-11 18:49 ` David Sterba
2024-12-10 19:06 ` [PATCH 3/6] btrfs: edit prelim_ref_insert() to use rb helpers Roger L. Beckermeyer III
2024-12-11 18:47 ` David Sterba
2024-12-10 19:06 ` [PATCH 4/6] btrfs: edit __btrfs_add_delayed_item() to use rb helper Roger L. Beckermeyer III
2024-12-10 19:06 ` [PATCH 5/6] btrfs: edit btrfs_add_chunk_map() to use rb helpers Roger L. Beckermeyer III
2024-12-10 19:06 ` [PATCH 6/6] btrfs: edit tree_insert() " Roger L. Beckermeyer III
2024-12-12 20:29 ` [PATCH 0/6] reduce boilerplate code within btrfs Roger L. Beckermeyer III
2024-12-12 20:29 ` [PATCH 2/6] btrfs: update btrfs_add_block_group_cache() to use rb helpers Roger L. Beckermeyer III
2024-12-13 7:19 ` Qu Wenruo
2024-12-12 20:29 ` [PATCH 3/6] btrfs: update prelim_ref_insert() " Roger L. Beckermeyer III
2024-12-12 20:29 ` [PATCH 4/6] btrfs: update __btrfs_add_delayed_item() " Roger L. Beckermeyer III
2024-12-12 20:29 ` [PATCH 5/6] btrfs: update btrfs_add_chunk_map() " Roger L. Beckermeyer III
2024-12-12 20:29 ` [PATCH 6/6] btrfs: update tree_insert() " Roger L. Beckermeyer III
2024-12-13 6:19 ` Qu Wenruo
2024-12-13 7:30 ` Johannes Thumshirn
2024-12-13 7:32 ` Qu Wenruo
2024-12-13 17:14 ` Lee Beckermeyer
2024-12-13 20:28 ` Qu Wenruo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202412090958.CtUdYRwP-lkp@intel.com \
--to=lkp@intel.com \
--cc=beckerlee3@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox