* [koverstreet-bcachefs:bcachefs-testing 198/199] fs/bcachefs/bset.c:535:3: error: call to undeclared function '__bch2_bset_verify_rw_aux_tree'; ISO C99 and later do not support implicit function declarations
@ 2025-05-10 23:43 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-10 23:43 UTC (permalink / raw)
To: Kent Overstreet; +Cc: llvm, oe-kbuild-all
tree: https://github.com/koverstreet/bcachefs bcachefs-testing
head: d815fb1b379fb43f7a33d1bede6efea16b6405e6
commit: e8a89a1d80edd0d477f297b75cbc2dce8ce4da11 [198/199] bcachefs: debug_check_bset_lookups
config: i386-buildonly-randconfig-004-20250511 (https://download.01.org/0day-ci/archive/20250511/202505110711.TyfjEvFi-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250511/202505110711.TyfjEvFi-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/202505110711.TyfjEvFi-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
>> fs/bcachefs/bset.c:531:8: warning: attribute declaration must precede definition [-Wignored-attributes]
531 | static inline void bch2_bset_verify_rw_aux_tree(struct btree *b,
| ^
include/linux/compiler_types.h:236:23: note: expanded from macro 'inline'
236 | #define inline inline __gnu_inline __inline_maybe_unused notrace
| ^
include/linux/compiler_attributes.h:165:56: note: expanded from macro '__gnu_inline'
165 | #define __gnu_inline __attribute__((__gnu_inline__))
| ^
fs/bcachefs/bset.c:499:13: note: previous definition is here
499 | static void bch2_bset_verify_rw_aux_tree(struct btree *b,
| ^
>> fs/bcachefs/bset.c:531:8: warning: attribute declaration must precede definition [-Wignored-attributes]
531 | static inline void bch2_bset_verify_rw_aux_tree(struct btree *b,
| ^
include/linux/compiler_types.h:236:58: note: expanded from macro 'inline'
236 | #define inline inline __gnu_inline __inline_maybe_unused notrace
| ^
arch/x86/include/asm/linkage.h:9:32: note: expanded from macro 'notrace'
9 | #define notrace __attribute__((no_instrument_function))
| ^
fs/bcachefs/bset.c:499:13: note: previous definition is here
499 | static void bch2_bset_verify_rw_aux_tree(struct btree *b,
| ^
fs/bcachefs/bset.c:531:20: error: redefinition of 'bch2_bset_verify_rw_aux_tree'
531 | static inline void bch2_bset_verify_rw_aux_tree(struct btree *b,
| ^
fs/bcachefs/bset.c:499:13: note: previous definition is here
499 | static void bch2_bset_verify_rw_aux_tree(struct btree *b,
| ^
>> fs/bcachefs/bset.c:535:3: error: call to undeclared function '__bch2_bset_verify_rw_aux_tree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
535 | __bch2_bset_verify_rw_aux_tree(b, t);
| ^
fs/bcachefs/bset.c:535:3: note: did you mean 'bch2_bset_verify_rw_aux_tree'?
fs/bcachefs/bset.c:531:20: note: 'bch2_bset_verify_rw_aux_tree' declared here
531 | static inline void bch2_bset_verify_rw_aux_tree(struct btree *b,
| ^
532 | struct bset_tree *t)
533 | {
534 | if (static_branch_unlikely(&bch2_debug_check_bset_lookups))
535 | __bch2_bset_verify_rw_aux_tree(b, t);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| bch2_bset_verify_rw_aux_tree
2 warnings and 2 errors generated.
vim +/__bch2_bset_verify_rw_aux_tree +535 fs/bcachefs/bset.c
498
> 499 static void bch2_bset_verify_rw_aux_tree(struct btree *b,
500 struct bset_tree *t)
501 {
502 struct bkey_packed *k = btree_bkey_first(b, t);
503 unsigned j = 0;
504
505 BUG_ON(bset_has_ro_aux_tree(t));
506
507 if (!bset_has_rw_aux_tree(t))
508 return;
509
510 BUG_ON(t->size < 1);
511 BUG_ON(rw_aux_to_bkey(b, t, j) != k);
512
513 goto start;
514 while (1) {
515 if (rw_aux_to_bkey(b, t, j) == k) {
516 BUG_ON(!bpos_eq(rw_aux_tree(b, t)[j].k,
517 bkey_unpack_pos(b, k)));
518 start:
519 if (++j == t->size)
520 break;
521
522 BUG_ON(rw_aux_tree(b, t)[j].offset <=
523 rw_aux_tree(b, t)[j - 1].offset);
524 }
525
526 k = bkey_p_next(k);
527 BUG_ON(k >= btree_bkey_last(b, t));
528 }
529 }
530
> 531 static inline void bch2_bset_verify_rw_aux_tree(struct btree *b,
532 struct bset_tree *t)
533 {
534 if (static_branch_unlikely(&bch2_debug_check_bset_lookups))
> 535 __bch2_bset_verify_rw_aux_tree(b, t);
536 }
537
--
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:[~2025-05-10 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-10 23:43 [koverstreet-bcachefs:bcachefs-testing 198/199] fs/bcachefs/bset.c:535:3: error: call to undeclared function '__bch2_bset_verify_rw_aux_tree'; ISO C99 and later do not support implicit function declarations 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