llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kent.overstreet@linux.dev>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Kent Overstreet <kent.overstreet@linux.dev>
Subject: [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
Date: Sun, 23 Nov 2025 01:48:15 +0800	[thread overview]
Message-ID: <202511230110.7BnaTkH2-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-11-22 17:49 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=202511230110.7BnaTkH2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kent.overstreet@linux.dev \
    --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;
as well as URLs for NNTP newsgroup(s).