All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [peterz-queue:sched/core 5/10] kernel/trace/trace_preemptirq.c:103:9: error: implicit declaration of function 'trace'; did you mean 'notrace'?
Date: Sat, 28 Jan 2023 20:55:07 +0800	[thread overview]
Message-ID: <202301282055.i3hqtrHw-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head:   be06c7d02443a4ce151434fed1ca2c9502f6816d
commit: 013918b05da9a651cba310028d94101abecaaf7b [5/10] tracing, preempt: Squash _rcuidle tracing
config: arm64-randconfig-r001-20230123 (https://download.01.org/0day-ci/archive/20230128/202301282055.i3hqtrHw-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=013918b05da9a651cba310028d94101abecaaf7b
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/core
        git checkout 013918b05da9a651cba310028d94101abecaaf7b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash kernel/trace/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/trace/trace_preemptirq.c: In function 'trace_preempt_on':
>> kernel/trace/trace_preemptirq.c:103:9: error: implicit declaration of function 'trace'; did you mean 'notrace'? [-Werror=implicit-function-declaration]
     103 |         trace(preempt_enable)(a0, a1);
         |         ^~~~~
         |         notrace
>> kernel/trace/trace_preemptirq.c:103:15: error: 'preempt_enable' undeclared (first use in this function); did you mean 'perf_pmu_enable'?
     103 |         trace(preempt_enable)(a0, a1);
         |               ^~~~~~~~~~~~~~
         |               perf_pmu_enable
   kernel/trace/trace_preemptirq.c:103:15: note: each undeclared identifier is reported only once for each function it appears in
   kernel/trace/trace_preemptirq.c: In function 'trace_preempt_off':
>> kernel/trace/trace_preemptirq.c:109:15: error: 'preempt_disable' undeclared (first use in this function); did you mean 'perf_pmu_disable'?
     109 |         trace(preempt_disable)(a0, a1);
         |               ^~~~~~~~~~~~~~~
         |               perf_pmu_disable
   cc1: some warnings being treated as errors


vim +103 kernel/trace/trace_preemptirq.c

   100	
   101	void trace_preempt_on(unsigned long a0, unsigned long a1)
   102	{
 > 103		trace(preempt_enable)(a0, a1);
   104		tracer_preempt_on(a0, a1);
   105	}
   106	
   107	void trace_preempt_off(unsigned long a0, unsigned long a1)
   108	{
 > 109		trace(preempt_disable)(a0, a1);

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

                 reply	other threads:[~2023-01-28 12:55 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=202301282055.i3hqtrHw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peterz@infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.