All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh (Schneider Electric)"
	<thomas.weissschuh@linutronix.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [thomas-weissschuh:b4/hrtimer-header-dependencies 5/5] include/asm-generic/percpu.h:151:2: error: implicit declaration of function 'raw_local_irq_save'
Date: Sat, 27 Jun 2026 22:03:00 +0800	[thread overview]
Message-ID: <202606272115.eUhar4XE-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/hrtimer-header-dependencies
head:   7c6a2b4d48e905380f1c24cd685e513f547f8c0a
commit: 7c6a2b4d48e905380f1c24cd685e513f547f8c0a [5/5] hrtimer: Remove inclusion of hrtimer_bases.h remove from hrtimer.h
config: riscv-randconfig-r133-20260627 (https://download.01.org/0day-ci/archive/20260627/202606272115.eUhar4XE-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 9.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260627/202606272115.eUhar4XE-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/202606272115.eUhar4XE-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/riscv/include/asm/bug.h:90,
                    from include/linux/bug.h:5,
                    from arch/riscv/include/asm/cmpxchg.h:9,
                    from arch/riscv/include/asm/barrier.h:14,
                    from include/linux/list.h:11,
                    from include/linux/smp.h:12,
                    from include/linux/lockdep.h:14,
                    from include/linux/hrtimer_rearm.h:8,
                    from include/linux/hrtimer.h:15,
                    from kernel/time/alarmtimer.c:16:
   include/linux/hrtimer_rearm.h: In function 'hrtimer_test_and_clear_rearm_deferred_tif':
   include/asm-generic/percpu.h:141:2: error: implicit declaration of function 'preempt_disable_notrace' [-Werror=implicit-function-declaration]
     141 |  preempt_disable_notrace();     \
         |  ^~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/bug.h:120:25: note: in definition of macro 'WARN_ON_ONCE'
     120 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/percpu.h:161:11: note: in expansion of macro '__this_cpu_generic_read_nopreempt'
     161 |   __ret = __this_cpu_generic_read_nopreempt(pcp);  \
         |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:390:31: note: in expansion of macro 'this_cpu_generic_read'
     390 | #define this_cpu_read_1(pcp)  this_cpu_generic_read(pcp)
         |                               ^~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:325:23: note: in expansion of macro 'this_cpu_read_1'
     325 |  case 1: pscr_ret__ = stem##1(variable); break;   \
         |                       ^~~~
   include/linux/percpu-defs.h:499:29: note: in expansion of macro '__pcpu_size_call_return'
     499 | #define this_cpu_read(pcp)  __pcpu_size_call_return(this_cpu_read_, pcp)
         |                             ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lockdep.h:573:44: note: in expansion of macro 'this_cpu_read'
     573 | #define __lockdep_enabled (debug_locks && !this_cpu_read(lockdep_recursion))
         |                                            ^~~~~~~~~~~~~
   include/linux/lockdep.h:582:15: note: in expansion of macro '__lockdep_enabled'
     582 |  WARN_ON_ONCE(__lockdep_enabled && this_cpu_read(hardirqs_enabled)); \
         |               ^~~~~~~~~~~~~~~~~
   include/linux/hrtimer_rearm.h:20:2: note: in expansion of macro 'lockdep_assert_irqs_disabled'
      20 |  lockdep_assert_irqs_disabled();
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:143:2: error: implicit declaration of function 'preempt_enable_notrace' [-Werror=implicit-function-declaration]
     143 |  preempt_enable_notrace();     \
         |  ^~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/bug.h:120:25: note: in definition of macro 'WARN_ON_ONCE'
     120 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/percpu.h:161:11: note: in expansion of macro '__this_cpu_generic_read_nopreempt'
     161 |   __ret = __this_cpu_generic_read_nopreempt(pcp);  \
         |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:390:31: note: in expansion of macro 'this_cpu_generic_read'
     390 | #define this_cpu_read_1(pcp)  this_cpu_generic_read(pcp)
         |                               ^~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:325:23: note: in expansion of macro 'this_cpu_read_1'
     325 |  case 1: pscr_ret__ = stem##1(variable); break;   \
         |                       ^~~~
   include/linux/percpu-defs.h:499:29: note: in expansion of macro '__pcpu_size_call_return'
     499 | #define this_cpu_read(pcp)  __pcpu_size_call_return(this_cpu_read_, pcp)
         |                             ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lockdep.h:573:44: note: in expansion of macro 'this_cpu_read'
     573 | #define __lockdep_enabled (debug_locks && !this_cpu_read(lockdep_recursion))
         |                                            ^~~~~~~~~~~~~
   include/linux/lockdep.h:582:15: note: in expansion of macro '__lockdep_enabled'
     582 |  WARN_ON_ONCE(__lockdep_enabled && this_cpu_read(hardirqs_enabled)); \
         |               ^~~~~~~~~~~~~~~~~
   include/linux/hrtimer_rearm.h:20:2: note: in expansion of macro 'lockdep_assert_irqs_disabled'
      20 |  lockdep_assert_irqs_disabled();
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/asm-generic/percpu.h:151:2: error: implicit declaration of function 'raw_local_irq_save' [-Werror=implicit-function-declaration]
     151 |  raw_local_irq_save(___flags);     \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/bug.h:120:25: note: in definition of macro 'WARN_ON_ONCE'
     120 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/percpu.h:163:11: note: in expansion of macro '__this_cpu_generic_read_noirq'
     163 |   __ret = __this_cpu_generic_read_noirq(pcp);  \
         |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:390:31: note: in expansion of macro 'this_cpu_generic_read'
     390 | #define this_cpu_read_1(pcp)  this_cpu_generic_read(pcp)
         |                               ^~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:325:23: note: in expansion of macro 'this_cpu_read_1'
     325 |  case 1: pscr_ret__ = stem##1(variable); break;   \
         |                       ^~~~
   include/linux/percpu-defs.h:499:29: note: in expansion of macro '__pcpu_size_call_return'
     499 | #define this_cpu_read(pcp)  __pcpu_size_call_return(this_cpu_read_, pcp)
         |                             ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lockdep.h:573:44: note: in expansion of macro 'this_cpu_read'
     573 | #define __lockdep_enabled (debug_locks && !this_cpu_read(lockdep_recursion))
         |                                            ^~~~~~~~~~~~~
   include/linux/lockdep.h:582:15: note: in expansion of macro '__lockdep_enabled'
     582 |  WARN_ON_ONCE(__lockdep_enabled && this_cpu_read(hardirqs_enabled)); \
         |               ^~~~~~~~~~~~~~~~~
   include/linux/hrtimer_rearm.h:20:2: note: in expansion of macro 'lockdep_assert_irqs_disabled'
      20 |  lockdep_assert_irqs_disabled();
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/asm-generic/percpu.h:153:2: error: implicit declaration of function 'raw_local_irq_restore' [-Werror=implicit-function-declaration]
     153 |  raw_local_irq_restore(___flags);    \
         |  ^~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/bug.h:120:25: note: in definition of macro 'WARN_ON_ONCE'
     120 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/asm-generic/percpu.h:163:11: note: in expansion of macro '__this_cpu_generic_read_noirq'
     163 |   __ret = __this_cpu_generic_read_noirq(pcp);  \
         |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:390:31: note: in expansion of macro 'this_cpu_generic_read'
     390 | #define this_cpu_read_1(pcp)  this_cpu_generic_read(pcp)
         |                               ^~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:325:23: note: in expansion of macro 'this_cpu_read_1'
     325 |  case 1: pscr_ret__ = stem##1(variable); break;   \
         |                       ^~~~
   include/linux/percpu-defs.h:499:29: note: in expansion of macro '__pcpu_size_call_return'
     499 | #define this_cpu_read(pcp)  __pcpu_size_call_return(this_cpu_read_, pcp)
         |                             ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lockdep.h:573:44: note: in expansion of macro 'this_cpu_read'
     573 | #define __lockdep_enabled (debug_locks && !this_cpu_read(lockdep_recursion))
         |                                            ^~~~~~~~~~~~~
   include/linux/lockdep.h:582:15: note: in expansion of macro '__lockdep_enabled'
     582 |  WARN_ON_ONCE(__lockdep_enabled && this_cpu_read(hardirqs_enabled)); \
         |               ^~~~~~~~~~~~~~~~~
   include/linux/hrtimer_rearm.h:20:2: note: in expansion of macro 'lockdep_assert_irqs_disabled'
      20 |  lockdep_assert_irqs_disabled();
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


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

9c28278a24c01c Tejun Heo     2014-06-17  146  
e88d62cd4b2f0b Mark Rutland  2017-09-26  147  #define __this_cpu_generic_read_noirq(pcp)				\
e88d62cd4b2f0b Mark Rutland  2017-09-26  148  ({									\
8a3c392388c6a6 Uros Bizjak   2025-01-27  149  	TYPEOF_UNQUAL(pcp) ___ret;					\
29813a2297910d Arnd Bergmann 2020-10-26  150  	unsigned long ___flags;						\
29813a2297910d Arnd Bergmann 2020-10-26 @151  	raw_local_irq_save(___flags);					\
29813a2297910d Arnd Bergmann 2020-10-26  152  	___ret = raw_cpu_generic_read(pcp);				\
29813a2297910d Arnd Bergmann 2020-10-26 @153  	raw_local_irq_restore(___flags);				\
29813a2297910d Arnd Bergmann 2020-10-26  154  	___ret;								\
e88d62cd4b2f0b Mark Rutland  2017-09-26  155  })
e88d62cd4b2f0b Mark Rutland  2017-09-26  156  

:::::: The code at line 151 was first introduced by commit
:::::: 29813a2297910d5c4be08c7b390054f23dd794a5 asm-generic: percpu: avoid Wshadow warning

:::::: TO: Arnd Bergmann <arnd@arndb.de>
:::::: CC: Dennis Zhou <dennis@kernel.org>

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

                 reply	other threads:[~2026-06-27 14:04 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=202606272115.eUhar4XE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=thomas.weissschuh@linutronix.de \
    /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.