kernel/trace/trace_irqsoff.c:855:2: error: implicit declaration of function 'trace_preempt_enable_rcuidle'; did you mean 'trace_irq_enable_rcuidle'?

From: kbuild test robot
Date: Sun Dec 03 2017 - 13:54:07 EST


Hi Joel,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ae64f9bd1d3621b5e60d7363bc20afb46aede215
commit: d59158162e032917a428704160a2063a02405ec6 tracing: Add support for preempt and irq enable/disable events
date: 8 weeks ago
config: x86_64-randconfig-x001-201749 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
git checkout d59158162e032917a428704160a2063a02405ec6
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

kernel/trace/trace_irqsoff.c: In function 'trace_preempt_on':
>> kernel/trace/trace_irqsoff.c:855:2: error: implicit declaration of function 'trace_preempt_enable_rcuidle'; did you mean 'trace_irq_enable_rcuidle'? [-Werror=implicit-function-declaration]
trace_preempt_enable_rcuidle(a0, a1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace_irq_enable_rcuidle
kernel/trace/trace_irqsoff.c: In function 'trace_preempt_off':
>> kernel/trace/trace_irqsoff.c:861:2: error: implicit declaration of function 'trace_preempt_disable_rcuidle'; did you mean 'trace_irq_disable_rcuidle'? [-Werror=implicit-function-declaration]
trace_preempt_disable_rcuidle(a0, a1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace_irq_disable_rcuidle
cc1: some warnings being treated as errors

vim +855 kernel/trace/trace_irqsoff.c

850
851 #if defined(CONFIG_PREEMPT_TRACER) || \
852 (defined(CONFIG_DEBUG_PREEMPT) && defined(CONFIG_PREEMPTIRQ_EVENTS))
853 void trace_preempt_on(unsigned long a0, unsigned long a1)
854 {
> 855 trace_preempt_enable_rcuidle(a0, a1);
856 tracer_preempt_on(a0, a1);
857 }
858
859 void trace_preempt_off(unsigned long a0, unsigned long a1)
860 {
> 861 trace_preempt_disable_rcuidle(a0, a1);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip