public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/headers 2431/2579] include/asm-generic/percpu.h:147:9: error: implicit declaration of function 'raw_local_irq_save'
Date: Sat, 23 Apr 2022 00:43:36 +0800	[thread overview]
Message-ID: <202204230044.O7aOPfOO-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe
commit: 518a4e5de1cbdbd028929db6ad968d6245b7e89a [2431/2579] headers/deps: rcu: Optimize <linux/rcupdate.h> dependencies
config: i386-debian-10.3 (https://download.01.org/0day-ci/archive/20220423/202204230044.O7aOPfOO-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=518a4e5de1cbdbd028929db6ad968d6245b7e89a
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip sched/headers
        git checkout 518a4e5de1cbdbd028929db6ad968d6245b7e89a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/

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

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/percpu.h:393,
                    from arch/x86/include/asm/current.h:6,
                    from include/linux/preempt.h:10,
                    from include/linux/bottom_half.h:7,
                    from include/linux/rcupdate.h:26,
                    from include/linux/bpf.h:9,
                    from include/linux/bpf_verifier.h:7,
                    from net/ipv4/bpf_tcp_ca.c:6:
   include/linux/bpf.h: In function 'bpf_disable_instrumentation':
>> include/asm-generic/percpu.h:147:9: error: implicit declaration of function 'raw_local_irq_save' [-Werror=implicit-function-declaration]
     147 |         raw_local_irq_save(__flags);                                    \
         |         ^~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:355:41: note: in expansion of macro 'this_cpu_generic_to_op'
     355 | #define this_cpu_add_8(pcp, val)        this_cpu_generic_to_op(pcp, val, +=)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:380:25: note: in expansion of macro 'this_cpu_add_8'
     380 |                 case 8: stem##8(variable, __VA_ARGS__);break;           \
         |                         ^~~~
   include/linux/percpu-defs.h:509:41: note: in expansion of macro '__pcpu_size_call'
     509 | #define this_cpu_add(pcp, val)          __pcpu_size_call(this_cpu_add_, pcp, val)
         |                                         ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:520:41: note: in expansion of macro 'this_cpu_add'
     520 | #define this_cpu_inc(pcp)               this_cpu_add(pcp, 1)
         |                                         ^~~~~~~~~~~~
   include/linux/bpf.h:1446:9: note: in expansion of macro 'this_cpu_inc'
    1446 |         this_cpu_inc(bpf_prog_active);
         |         ^~~~~~~~~~~~
>> include/asm-generic/percpu.h:149:9: error: implicit declaration of function 'raw_local_irq_restore' [-Werror=implicit-function-declaration]
     149 |         raw_local_irq_restore(__flags);                                 \
         |         ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:355:41: note: in expansion of macro 'this_cpu_generic_to_op'
     355 | #define this_cpu_add_8(pcp, val)        this_cpu_generic_to_op(pcp, val, +=)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:380:25: note: in expansion of macro 'this_cpu_add_8'
     380 |                 case 8: stem##8(variable, __VA_ARGS__);break;           \
         |                         ^~~~
   include/linux/percpu-defs.h:509:41: note: in expansion of macro '__pcpu_size_call'
     509 | #define this_cpu_add(pcp, val)          __pcpu_size_call(this_cpu_add_, pcp, val)
         |                                         ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:520:41: note: in expansion of macro 'this_cpu_add'
     520 | #define this_cpu_inc(pcp)               this_cpu_add(pcp, 1)
         |                                         ^~~~~~~~~~~~
   include/linux/bpf.h:1446:9: note: in expansion of macro 'this_cpu_inc'
    1446 |         this_cpu_inc(bpf_prog_active);
         |         ^~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/raw_local_irq_save +147 include/asm-generic/percpu.h

e88d62cd4b2f0b Mark Rutland    2017-09-26  143  
eba117889ac444 Tejun Heo       2014-06-17  144  #define this_cpu_generic_to_op(pcp, val, op)				\
9c28278a24c01c Tejun Heo       2014-06-17  145  do {									\
eba117889ac444 Tejun Heo       2014-06-17  146  	unsigned long __flags;						\
eba117889ac444 Tejun Heo       2014-06-17 @147  	raw_local_irq_save(__flags);					\
1b5ca12127427c Nicholas Piggin 2016-09-22  148  	raw_cpu_generic_to_op(pcp, val, op);				\
eba117889ac444 Tejun Heo       2014-06-17 @149  	raw_local_irq_restore(__flags);					\
9c28278a24c01c Tejun Heo       2014-06-17  150  } while (0)
9c28278a24c01c Tejun Heo       2014-06-17  151  
1b5ca12127427c Nicholas Piggin 2016-09-22  152  

:::::: The code at line 147 was first introduced by commit
:::::: eba117889ac444bea6e8270049cbaeed48169889 percpu: preffity percpu header files

:::::: TO: Tejun Heo <tj@kernel.org>
:::::: CC: Tejun Heo <tj@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-04-22 16:44 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=202204230044.O7aOPfOO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.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