Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [trace:trace/fixes 1/2] kernel/torture.c:665:3: error: call to undeclared function 'tracing_off'; ISO C99 and later do not support implicit function declarations
Date: Thu, 25 Jun 2026 08:04:45 +0800	[thread overview]
Message-ID: <202606250752.nfAGUJol-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace trace/fixes
head:   9cbc3d9806d31abda2718ceac587ddee3a04849b
commit: b48f507ce7b25e1903d4a7330d9ad6171ba4feed [1/2] tracing: Move non-trace_printk prototypes into trace_controls.h
config: x86_64-randconfig-072-20260625 (https://download.01.org/0day-ci/archive/20260625/202606250752.nfAGUJol-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260625/202606250752.nfAGUJol-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/202606250752.nfAGUJol-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/torture.c:665:3: error: call to undeclared function 'tracing_off'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     665 |                 rcu_ftrace_dump(DUMP_ALL);
         |                 ^
   kernel/rcu/rcu.h:337:3: note: expanded from macro 'rcu_ftrace_dump'
     337 |                 tracing_off(); \
         |                 ^
>> kernel/torture.c:665:3: error: call to undeclared function 'ftrace_dump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   kernel/rcu/rcu.h:339:3: note: expanded from macro 'rcu_ftrace_dump'
     339 |                 ftrace_dump(oops_dump_mode); \
         |                 ^
>> kernel/torture.c:665:19: error: use of undeclared identifier 'DUMP_ALL'
     665 |                 rcu_ftrace_dump(DUMP_ALL);
         |                                 ^~~~~~~~
   3 errors generated.
--
>> kernel/rcu/rcuscale.c:609:5: error: call to undeclared function 'tracing_off'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     609 |                                 rcu_ftrace_dump(DUMP_ALL);
         |                                 ^
   kernel/rcu/rcu.h:337:3: note: expanded from macro 'rcu_ftrace_dump'
     337 |                 tracing_off(); \
         |                 ^
>> kernel/rcu/rcuscale.c:609:5: error: call to undeclared function 'ftrace_dump'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   kernel/rcu/rcu.h:339:3: note: expanded from macro 'rcu_ftrace_dump'
     339 |                 ftrace_dump(oops_dump_mode); \
         |                 ^
>> kernel/rcu/rcuscale.c:609:21: error: use of undeclared identifier 'DUMP_ALL'
     609 |                                 rcu_ftrace_dump(DUMP_ALL);
         |                                                 ^~~~~~~~
   3 errors generated.


vim +/tracing_off +665 kernel/torture.c

b5daa8f3b3b2b0 Paul E. McKenney 2014-01-30  629  
e991dbc0770b01 Paul E. McKenney 2014-01-31  630  /*
e991dbc0770b01 Paul E. McKenney 2014-01-31  631   * Cause the torture test to shutdown the system after the test has
e991dbc0770b01 Paul E. McKenney 2014-01-31  632   * run for the time specified by the shutdown_secs parameter.
e991dbc0770b01 Paul E. McKenney 2014-01-31  633   */
e991dbc0770b01 Paul E. McKenney 2014-01-31  634  static int torture_shutdown(void *arg)
e991dbc0770b01 Paul E. McKenney 2014-01-31  635  {
31257c3c8b7307 Paul E. McKenney 2016-06-18  636  	ktime_t ktime_snap;
e991dbc0770b01 Paul E. McKenney 2014-01-31  637  
e991dbc0770b01 Paul E. McKenney 2014-01-31  638  	VERBOSE_TOROUT_STRING("torture_shutdown task started");
31257c3c8b7307 Paul E. McKenney 2016-06-18  639  	ktime_snap = ktime_get();
31257c3c8b7307 Paul E. McKenney 2016-06-18  640  	while (ktime_before(ktime_snap, shutdown_time) &&
e991dbc0770b01 Paul E. McKenney 2014-01-31  641  	       !torture_must_stop()) {
e991dbc0770b01 Paul E. McKenney 2014-01-31  642  		if (verbose)
e991dbc0770b01 Paul E. McKenney 2014-01-31  643  			pr_alert("%s" TORTURE_FLAG
31257c3c8b7307 Paul E. McKenney 2016-06-18  644  				 "torture_shutdown task: %llu ms remaining\n",
31257c3c8b7307 Paul E. McKenney 2016-06-18  645  				 torture_type,
31257c3c8b7307 Paul E. McKenney 2016-06-18  646  				 ktime_ms_delta(shutdown_time, ktime_snap));
31257c3c8b7307 Paul E. McKenney 2016-06-18  647  		set_current_state(TASK_INTERRUPTIBLE);
31257c3c8b7307 Paul E. McKenney 2016-06-18  648  		schedule_hrtimeout(&shutdown_time, HRTIMER_MODE_ABS);
31257c3c8b7307 Paul E. McKenney 2016-06-18  649  		ktime_snap = ktime_get();
e991dbc0770b01 Paul E. McKenney 2014-01-31  650  	}
e991dbc0770b01 Paul E. McKenney 2014-01-31  651  	if (torture_must_stop()) {
7fafaac5b9ce22 Paul E. McKenney 2014-01-31  652  		torture_kthread_stopping("torture_shutdown");
e991dbc0770b01 Paul E. McKenney 2014-01-31  653  		return 0;
e991dbc0770b01 Paul E. McKenney 2014-01-31  654  	}
e991dbc0770b01 Paul E. McKenney 2014-01-31  655  
e991dbc0770b01 Paul E. McKenney 2014-01-31  656  	/* OK, shut down the system. */
e991dbc0770b01 Paul E. McKenney 2014-01-31  657  
e991dbc0770b01 Paul E. McKenney 2014-01-31  658  	VERBOSE_TOROUT_STRING("torture_shutdown task shutting down system");
e991dbc0770b01 Paul E. McKenney 2014-01-31  659  	shutdown_task = NULL;	/* Avoid self-kill deadlock. */
f881825a73543e Paul E. McKenney 2014-02-07  660  	if (torture_shutdown_hook)
f881825a73543e Paul E. McKenney 2014-02-07  661  		torture_shutdown_hook();
f881825a73543e Paul E. McKenney 2014-02-07  662  	else
f881825a73543e Paul E. McKenney 2014-02-07  663  		VERBOSE_TOROUT_STRING("No torture_shutdown_hook(), skipping.");
2102ad290af061 Paul E. McKenney 2020-06-16  664  	if (ftrace_dump_at_shutdown)
dac95906003fec Paul E. McKenney 2017-10-04 @665  		rcu_ftrace_dump(DUMP_ALL);
e991dbc0770b01 Paul E. McKenney 2014-01-31  666  	kernel_power_off();	/* Shut down the system. */
e991dbc0770b01 Paul E. McKenney 2014-01-31  667  	return 0;
e991dbc0770b01 Paul E. McKenney 2014-01-31  668  }
e991dbc0770b01 Paul E. McKenney 2014-01-31  669  

:::::: The code at line 665 was first introduced by commit
:::::: dac95906003fec1b4801115830cc14ec61c74960 torture: Suppress CPU stall warnings during shutdown ftrace dump

:::::: TO: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-06-25  0:05 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=202606250752.nfAGUJol-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rostedt@goodmis.org \
    /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