* [bcachefs:bcachefs-testing 955/957] fs/bcachefs/btree/iter.h:387:3: error: call to undeclared function 'trace_and_count'; ISO C99 and later do not support implicit function declarations
@ 2025-11-22 17:48 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-22 17:48 UTC (permalink / raw)
To: Kent Overstreet; +Cc: llvm, oe-kbuild-all, Kent Overstreet
tree: https://evilpiepirate.org/git/bcachefs.git bcachefs-testing
head: 018e946b823e2a10e054aa0516e254e060af3fd5
commit: e90865a4bd9471b154779be27f4e4a8ebce69d02 [955/957] bcachefs: move count_event() to sb/counters.h
config: hexagon-randconfig-002-20251122 (https://download.01.org/0day-ci/archive/20251123/202511230110.7BnaTkH2-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251123/202511230110.7BnaTkH2-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/202511230110.7BnaTkH2-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/bcachefs/data/ec.c:7:
In file included from fs/bcachefs/alloc/accounting.h:5:
In file included from fs/bcachefs/btree/update.h:5:
>> fs/bcachefs/btree/iter.h:387:3: error: call to undeclared function 'trace_and_count'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
387 | trace_and_count(trans->c, trans_restart_injected, trans, ip);
| ^
>> fs/bcachefs/btree/iter.h:387:29: error: use of undeclared identifier 'trans_restart_injected'; did you mean 'trace_trans_restart_injected'?
387 | trace_and_count(trans->c, trans_restart_injected, trans, ip);
| ^~~~~~~~~~~~~~~~~~~~~~
| trace_trans_restart_injected
fs/bcachefs/debug/trace.h:959:1: note: 'trace_trans_restart_injected' declared here
959 | DEFINE_EVENT(transaction_event, trans_restart_injected,
| ^
include/linux/tracepoint.h:608:2: note: expanded from macro 'DEFINE_EVENT'
608 | DECLARE_TRACE_EVENT(name, PARAMS(proto), PARAMS(args))
| ^
include/linux/tracepoint.h:481:2: note: expanded from macro 'DECLARE_TRACE_EVENT'
481 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^
include/linux/tracepoint.h:409:2: note: expanded from macro '__DECLARE_TRACE'
409 | __DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto))
| ^
include/linux/tracepoint.h:385:21: note: expanded from macro '__DECLARE_TRACE_COMMON'
385 | static inline void trace_##name(proto) \
| ^
<scratch space>:127:1: note: expanded from here
127 | trace_trans_restart_injected
| ^
2 errors generated.
--
In file included from fs/bcachefs/init/fs.c:12:
In file included from fs/bcachefs/alloc/backpointers.h:7:
>> fs/bcachefs/btree/iter.h:387:3: error: call to undeclared function 'trace_and_count'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
387 | trace_and_count(trans->c, trans_restart_injected, trans, ip);
| ^
>> fs/bcachefs/btree/iter.h:387:29: error: use of undeclared identifier 'trans_restart_injected'; did you mean 'trace_trans_restart_injected'?
387 | trace_and_count(trans->c, trans_restart_injected, trans, ip);
| ^~~~~~~~~~~~~~~~~~~~~~
| trace_trans_restart_injected
fs/bcachefs/debug/trace.h:959:1: note: 'trace_trans_restart_injected' declared here
959 | DEFINE_EVENT(transaction_event, trans_restart_injected,
| ^
include/linux/tracepoint.h:608:2: note: expanded from macro 'DEFINE_EVENT'
608 | DECLARE_TRACE_EVENT(name, PARAMS(proto), PARAMS(args))
| ^
include/linux/tracepoint.h:481:2: note: expanded from macro 'DECLARE_TRACE_EVENT'
481 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^
include/linux/tracepoint.h:409:2: note: expanded from macro '__DECLARE_TRACE'
409 | __DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto))
| ^
include/linux/tracepoint.h:385:21: note: expanded from macro '__DECLARE_TRACE_COMMON'
385 | static inline void trace_##name(proto) \
| ^
<scratch space>:127:1: note: expanded from here
127 | trace_trans_restart_injected
| ^
fs/bcachefs/init/fs.c:1123:25: warning: result of comparison of constant 262144 with expression of type 'u16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
1123 | c->opts.block_size > PAGE_SIZE) {
| ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
1 warning and 2 errors generated.
vim +/trace_and_count +387 fs/bcachefs/btree/iter.h
e5af273fcefb13 fs/bcachefs/btree_iter.h Kent Overstreet 2021-07-25 382
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 383 static inline int trans_maybe_inject_restart(struct btree_trans *trans, unsigned long ip)
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 384 {
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 385 #ifdef CONFIG_BCACHEFS_INJECT_TRANSACTION_RESTARTS
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 386 if (!(ktime_get_ns() & ~(~0ULL << min(63, (10 + trans->restart_count_this_trans))))) {
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 @387 trace_and_count(trans->c, trans_restart_injected, trans, ip);
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 388 return btree_trans_restart_ip(trans,
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 389 BCH_ERR_transaction_restart_fault_inject, ip);
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 390 }
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 391 #endif
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 392 return 0;
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 393 }
9cf6b84b71adb9 fs/bcachefs/btree_iter.h Kent Overstreet 2024-09-23 394
:::::: The code at line 387 was first introduced by commit
:::::: 9cf6b84b71adb97f3c19476ebb5a42228fad89b5 bcachefs: CONFIG_BCACHEFS_INJECT_TRANSACTION_RESTARTS
:::::: TO: Kent Overstreet <kent.overstreet@linux.dev>
:::::: CC: Kent Overstreet <kent.overstreet@linux.dev>
--
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-11-22 17:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-22 17:48 [bcachefs:bcachefs-testing 955/957] fs/bcachefs/btree/iter.h:387:3: error: call to undeclared function 'trace_and_count'; 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;
as well as URLs for NNTP newsgroup(s).