From: kernel test robot <[email protected]>
To: Peter Zijlstra <[email protected]>
Cc: [email protected], [email protected],
Ammar Faizi <[email protected]>,
GNU/Weeb Mailing List <[email protected]>,
"Paul E. McKenney" <[email protected]>
Subject: [ammarfaizi2-block:paulmck/linux-rcu/peterz.2023.01.26a 64/68] kernel/trace/trace_preemptirq.c:122:2: error: call to undeclared function 'trace'; ISO C99 and later do not support implicit function declarations
Date: Thu, 2 Feb 2023 20:26:45 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
tree: https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/peterz.2023.01.26a
head: f9588508f16615daf50ae4e3e16f40b6be874154
commit: 29847e5e64b9a99e8e55c70229733f1a30bd4143 [64/68] tracing, preempt: Squash _rcuidle tracing
config: arm64-randconfig-r016-20230130 (https://download.01.org/0day-ci/archive/20230202/[email protected]/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/ammarfaizi2/linux-block/commit/29847e5e64b9a99e8e55c70229733f1a30bd4143
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/peterz.2023.01.26a
git checkout 29847e5e64b9a99e8e55c70229733f1a30bd4143
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/iommu/ kernel/trace/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
All errors (new ones prefixed by >>):
kernel/trace/trace_preemptirq.c:88:16: warning: no previous prototype for function 'trace_hardirqs_on_caller' [-Wmissing-prototypes]
__visible void trace_hardirqs_on_caller(unsigned long caller_addr)
^
kernel/trace/trace_preemptirq.c:88:11: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible void trace_hardirqs_on_caller(unsigned long caller_addr)
^
static
kernel/trace/trace_preemptirq.c:103:16: warning: no previous prototype for function 'trace_hardirqs_off_caller' [-Wmissing-prototypes]
__visible void trace_hardirqs_off_caller(unsigned long caller_addr)
^
kernel/trace/trace_preemptirq.c:103:11: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible void trace_hardirqs_off_caller(unsigned long caller_addr)
^
static
>> kernel/trace/trace_preemptirq.c:122:2: error: call to undeclared function 'trace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
trace(preempt_enable)(a0, a1);
^
>> kernel/trace/trace_preemptirq.c:122:8: error: use of undeclared identifier 'preempt_enable'
trace(preempt_enable)(a0, a1);
^
kernel/trace/trace_preemptirq.c:128:2: error: call to undeclared function 'trace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
trace(preempt_disable)(a0, a1);
^
>> kernel/trace/trace_preemptirq.c:128:8: error: use of undeclared identifier 'preempt_disable'
trace(preempt_disable)(a0, a1);
^
2 warnings and 4 errors generated.
vim +/trace +122 kernel/trace/trace_preemptirq.c
102
> 103 __visible void trace_hardirqs_off_caller(unsigned long caller_addr)
104 {
105 lockdep_hardirqs_off(caller_addr);
106
107 if (!this_cpu_read(tracing_irq_cpu)) {
108 this_cpu_write(tracing_irq_cpu, 1);
109 tracer_hardirqs_off(CALLER_ADDR0, caller_addr);
110 if (!in_nmi())
111 trace_irq_disable_rcuidle(CALLER_ADDR0, caller_addr);
112 }
113 }
114 EXPORT_SYMBOL(trace_hardirqs_off_caller);
115 NOKPROBE_SYMBOL(trace_hardirqs_off_caller);
116 #endif /* CONFIG_TRACE_IRQFLAGS */
117
118 #ifdef CONFIG_TRACE_PREEMPT_TOGGLE
119
120 void trace_preempt_on(unsigned long a0, unsigned long a1)
121 {
> 122 trace(preempt_enable)(a0, a1);
123 tracer_preempt_on(a0, a1);
124 }
125
126 void trace_preempt_off(unsigned long a0, unsigned long a1)
127 {
> 128 trace(preempt_disable)(a0, a1);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-02-02 12:27 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 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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