From: kernel test robot <lkp@intel.com>
To: Jul Lang <jullanggit@proton.me>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [koverstreet-bcachefs:pr/1073 8/9] fs/bcachefs/alloc/buckets.c:902:35: error: use of undeclared identifier 'level'
Date: Thu, 02 Jul 2026 15:31:24 +0800 [thread overview]
Message-ID: <202607021538.bBjU2Ri4-lkp@intel.com> (raw)
tree: https://github.com/koverstreet/bcachefs pr/1073
head: f74372111084f9b50dc52eaeb9e8ec40399b2609
commit: d3c3cc61c9901c4e26f719f9b905c6766e8ca06d [8/9] bcachefs: rename bch2_trigger_extent_same_backpointers to bch2_trigger_extent_reconcile_phys_update and update comments
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260702/202607021538.bBjU2Ri4-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 0a2fb2a2269da0e2a3e230beb6cad39ca314db33)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607021538.bBjU2Ri4-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/202607021538.bBjU2Ri4-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/bcachefs/alloc/buckets.c:902:35: error: use of undeclared identifier 'level'
902 | bch2_extent_ptr_to_bp(c, btree, level, old, p, entry, &old_bp[nr_old++]);
| ^~~~~
fs/bcachefs/alloc/buckets.c:908:35: error: use of undeclared identifier 'level'
908 | bch2_extent_ptr_to_bp(c, btree, level, new.s_c, p, entry, &new_bp[nr_new++]);
| ^~~~~
2 errors generated.
vim +/level +902 fs/bcachefs/alloc/buckets.c
1f34c21bc685f6 fs/bcachefs/buckets.c Kent Overstreet 2023-12-29 880
d3c3cc61c9901c fs/bcachefs/alloc/buckets.c Jul Lang 2026-07-01 881 /* in-place update RECONCILE_PHYS if it is the only thing that changed */
d3c3cc61c9901c fs/bcachefs/alloc/buckets.c Jul Lang 2026-07-01 882 static int bch2_trigger_extent_reconcile_phys_update(struct btree_trans *trans,
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 883 enum btree_id btree,
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 884 struct bkey_s_c old,
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 885 struct bkey_s new,
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 886 bool *handled)
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 887 {
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 888 struct bch_fs *c = trans->c;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 889 struct bkey_i_backpointer old_bp[BCH_REPLICAS_MAX * 2];
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 890 struct bkey_i_backpointer new_bp[BCH_REPLICAS_MAX * 2];
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 891 struct bkey_ptrs_c ptrs;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 892 const union bch_extent_entry *entry;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 893 struct extent_ptr_decoded p;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 894 unsigned nr_old = 0, nr_new = 0;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 895 unsigned i;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 896
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 897 *handled = false;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 898
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 899 ptrs = bch2_bkey_ptrs_c(old);
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 900 bkey_for_each_ptr_decode(old.k, ptrs, p, entry) {
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 901 BUG_ON(nr_old == ARRAY_SIZE(old_bp));
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 @902 bch2_extent_ptr_to_bp(c, btree, level, old, p, entry, &old_bp[nr_old++]);
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 903 }
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 904
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 905 ptrs = bch2_bkey_ptrs_c(new.s_c);
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 906 bkey_for_each_ptr_decode(new.k, ptrs, p, entry) {
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 907 BUG_ON(nr_new == ARRAY_SIZE(new_bp));
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 908 bch2_extent_ptr_to_bp(c, btree, level, new.s_c, p, entry, &new_bp[nr_new++]);
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 909 }
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 910
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 911 if (nr_old != nr_new)
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 912 return 0;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 913
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 914 for (i = 0; i < nr_old; i++) {
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 915 struct bch_backpointer old_v = old_bp[i].v;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 916 struct bch_backpointer new_v = new_bp[i].v;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 917
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 918 SET_BACKPOINTER_RECONCILE_PHYS(&old_v, 0);
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 919 SET_BACKPOINTER_RECONCILE_PHYS(&new_v, 0);
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 920
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 921 if (!bpos_eq(old_bp[i].k.p, new_bp[i].k.p) ||
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 922 memcmp(&old_v, &new_v, sizeof(old_v)))
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 923 return 0;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 924 }
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 925
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 926 for (i = 0; i < nr_old; i++) {
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 927 unsigned old_phys = BACKPOINTER_RECONCILE_PHYS(&old_bp[i].v);
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 928 unsigned new_phys = BACKPOINTER_RECONCILE_PHYS(&new_bp[i].v);
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 929
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 930 if (!old_phys && !new_phys)
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 931 continue;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 932
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 933 if (old_phys)
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 934 try(bch2_btree_bit_mod_buffered(trans,
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 935 reconcile_work_phys_btree[old_phys],
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 936 old_bp[i].k.p, false));
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 937
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 938 if (new_phys)
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 939 try(bch2_btree_bit_mod_buffered(trans,
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 940 reconcile_work_phys_btree[new_phys],
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 941 new_bp[i].k.p, true));
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 942
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 943 try(bch2_trans_update_buffered(trans,
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 944 backpointer_btree(&new_bp[i].v),
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 945 &new_bp[i].k_i));
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 946 }
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 947
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 948 *handled = true;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 949 return 0;
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 950 }
34c31c9633661a fs/bcachefs/alloc/buckets.c Codex 2026-04-13 951
:::::: The code at line 902 was first introduced by commit
:::::: 34c31c9633661a2b7901a1712d8516633f4fdbb6 bcachefs: update reconcile-only backpointer flags in place
:::::: TO: Codex <jullanggit@proton.me>
:::::: CC: Jul Lang <jullanggit@proton.me>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-07-02 7:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202607021538.bBjU2Ri4-lkp@intel.com \
--to=lkp@intel.com \
--cc=jullanggit@proton.me \
--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