All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lyude Paul <lyude@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v13 05/17] irq & spin_lock: Add counted interrupt disabling/enabling
Date: Tue, 14 Oct 2025 12:45:32 +0800	[thread overview]
Message-ID: <202510141211.osWNR3ei-lkp@intel.com> (raw)
In-Reply-To: <20251013155205.2004838-6-lyude@redhat.com>

Hi Lyude,

kernel test robot noticed the following build errors:

[auto build test ERROR on 3a8660878839faadb4f1a6dd72c3179c1df56787]

url:    https://github.com/intel-lab-lkp/linux/commits/Lyude-Paul/preempt-Track-NMI-nesting-to-separate-per-CPU-counter/20251014-005451
base:   3a8660878839faadb4f1a6dd72c3179c1df56787
patch link:    https://lore.kernel.org/r/20251013155205.2004838-6-lyude%40redhat.com
patch subject: [PATCH v13 05/17] irq & spin_lock: Add counted interrupt disabling/enabling
config: hexagon-randconfig-002-20251014 (https://download.01.org/0day-ci/archive/20251014/202510141211.osWNR3ei-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 39f292ffa13d7ca0d1edff27ac8fd55024bb4d19)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251014/202510141211.osWNR3ei-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/202510141211.osWNR3ei-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/sched/affinity.h:1:
   In file included from include/linux/sched.h:37:
   In file included from include/linux/spinlock.h:59:
>> include/linux/irqflags.h:277:3: error: call to undeclared function 'raw_smp_processor_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     277 |                 raw_cpu_write(local_interrupt_disable_state.flags, flags);
         |                 ^
   include/linux/percpu-defs.h:413:34: note: expanded from macro 'raw_cpu_write'
     413 | #define raw_cpu_write(pcp, val)         __pcpu_size_call(raw_cpu_write_, pcp, val)
         |                                         ^
   include/linux/percpu-defs.h:369:11: note: expanded from macro '__pcpu_size_call'
     369 |                 case 1: stem##1(variable, __VA_ARGS__);break;           \
         |                         ^
   <scratch space>:91:1: note: expanded from here
      91 | raw_cpu_write_1
         | ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:246:2: note: expanded from macro 'raw_cpu_ptr'
     246 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^
   include/asm-generic/percpu.h:57:53: note: expanded from macro 'arch_raw_cpu_ptr'
      57 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                                                     ^
   include/asm-generic/percpu.h:44:40: note: expanded from macro '__my_cpu_offset'
      44 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
         |                                        ^
   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/sched/affinity.h:1:
   In file included from include/linux/sched.h:37:
   In file included from include/linux/spinlock.h:59:
>> include/linux/irqflags.h:277:3: error: call to undeclared function 'raw_smp_processor_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:413:34: note: expanded from macro 'raw_cpu_write'
     413 | #define raw_cpu_write(pcp, val)         __pcpu_size_call(raw_cpu_write_, pcp, val)
         |                                         ^
   include/linux/percpu-defs.h:370:11: note: expanded from macro '__pcpu_size_call'
     370 |                 case 2: stem##2(variable, __VA_ARGS__);break;           \
         |                         ^
   <scratch space>:92:1: note: expanded from here
      92 | raw_cpu_write_2
         | ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:246:2: note: expanded from macro 'raw_cpu_ptr'
     246 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^
   include/asm-generic/percpu.h:57:53: note: expanded from macro 'arch_raw_cpu_ptr'
      57 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                                                     ^
   include/asm-generic/percpu.h:44:40: note: expanded from macro '__my_cpu_offset'
      44 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
         |                                        ^
   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/sched/affinity.h:1:
   In file included from include/linux/sched.h:37:
   In file included from include/linux/spinlock.h:59:
>> include/linux/irqflags.h:277:3: error: call to undeclared function 'raw_smp_processor_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:413:34: note: expanded from macro 'raw_cpu_write'
     413 | #define raw_cpu_write(pcp, val)         __pcpu_size_call(raw_cpu_write_, pcp, val)
         |                                         ^
   include/linux/percpu-defs.h:371:11: note: expanded from macro '__pcpu_size_call'
     371 |                 case 4: stem##4(variable, __VA_ARGS__);break;           \
         |                         ^
   <scratch space>:93:1: note: expanded from here
      93 | raw_cpu_write_4
         | ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:246:2: note: expanded from macro 'raw_cpu_ptr'
     246 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^
   include/asm-generic/percpu.h:57:53: note: expanded from macro 'arch_raw_cpu_ptr'
      57 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                                                     ^
   include/asm-generic/percpu.h:44:40: note: expanded from macro '__my_cpu_offset'
      44 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
         |                                        ^
   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/sched/affinity.h:1:
   In file included from include/linux/sched.h:37:
   In file included from include/linux/spinlock.h:59:
>> include/linux/irqflags.h:277:3: error: call to undeclared function 'raw_smp_processor_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:413:34: note: expanded from macro 'raw_cpu_write'
     413 | #define raw_cpu_write(pcp, val)         __pcpu_size_call(raw_cpu_write_, pcp, val)
         |                                         ^
   include/linux/percpu-defs.h:372:11: note: expanded from macro '__pcpu_size_call'
     372 |                 case 8: stem##8(variable, __VA_ARGS__);break;           \
         |                         ^
   <scratch space>:94:1: note: expanded from here
      94 | raw_cpu_write_8
         | ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:246:2: note: expanded from macro 'raw_cpu_ptr'
     246 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^
   include/asm-generic/percpu.h:57:53: note: expanded from macro 'arch_raw_cpu_ptr'
      57 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                                                     ^
   include/asm-generic/percpu.h:44:40: note: expanded from macro '__my_cpu_offset'
      44 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
         |                                        ^
   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/sched/affinity.h:1:
   In file included from include/linux/sched.h:37:
   In file included from include/linux/spinlock.h:59:
   include/linux/irqflags.h:290:11: error: call to undeclared function 'raw_smp_processor_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     290 |                 flags = raw_cpu_read(local_interrupt_disable_state.flags);
         |                         ^
   include/linux/percpu-defs.h:412:28: note: expanded from macro 'raw_cpu_read'
     412 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^
   include/linux/percpu-defs.h:325:23: note: expanded from macro '__pcpu_size_call_return'
     325 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                              ^
   <scratch space>:95:1: note: expanded from here
      95 | raw_cpu_read_1
         | ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:246:2: note: expanded from macro 'raw_cpu_ptr'
     246 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^
   include/asm-generic/percpu.h:57:53: note: expanded from macro 'arch_raw_cpu_ptr'
      57 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                                                     ^
   include/asm-generic/percpu.h:44:40: note: expanded from macro '__my_cpu_offset'
      44 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
         |                                        ^
   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/sched/affinity.h:1:
   In file included from include/linux/sched.h:37:
   In file included from include/linux/spinlock.h:59:
   include/linux/irqflags.h:290:11: error: call to undeclared function 'raw_smp_processor_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:412:28: note: expanded from macro 'raw_cpu_read'
     412 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^
   include/linux/percpu-defs.h:326:23: note: expanded from macro '__pcpu_size_call_return'
     326 |         case 2: pscr_ret__ = stem##2(variable); break;                  \
         |                              ^
   <scratch space>:96:1: note: expanded from here
      96 | raw_cpu_read_2
         | ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:246:2: note: expanded from macro 'raw_cpu_ptr'
     246 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^
   include/asm-generic/percpu.h:57:53: note: expanded from macro 'arch_raw_cpu_ptr'
      57 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                                                     ^
   include/asm-generic/percpu.h:44:40: note: expanded from macro '__my_cpu_offset'
      44 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
         |                                        ^
   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/sched/affinity.h:1:
   In file included from include/linux/sched.h:37:
   In file included from include/linux/spinlock.h:59:
   include/linux/irqflags.h:290:11: error: call to undeclared function 'raw_smp_processor_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:412:28: note: expanded from macro 'raw_cpu_read'
     412 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^
   include/linux/percpu-defs.h:327:23: note: expanded from macro '__pcpu_size_call_return'
     327 |         case 4: pscr_ret__ = stem##4(variable); break;                  \
         |                              ^
   <scratch space>:97:1: note: expanded from here
      97 | raw_cpu_read_4
         | ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:246:2: note: expanded from macro 'raw_cpu_ptr'
     246 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^
   include/asm-generic/percpu.h:57:53: note: expanded from macro 'arch_raw_cpu_ptr'
      57 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                                                     ^
   include/asm-generic/percpu.h:44:40: note: expanded from macro '__my_cpu_offset'
      44 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
         |                                        ^
   In file included from kernel/sched/rq-offsets.c:5:
   In file included from kernel/sched/sched.h:8:
   In file included from include/linux/sched/affinity.h:1:
   In file included from include/linux/sched.h:37:


vim +/raw_smp_processor_id +277 include/linux/irqflags.h

   267	
   268	static inline void local_interrupt_disable(void)
   269	{
   270		unsigned long flags;
   271		int new_count;
   272	
   273		new_count = hardirq_disable_enter();
   274	
   275		if ((new_count & HARDIRQ_DISABLE_MASK) == HARDIRQ_DISABLE_OFFSET) {
   276			local_irq_save(flags);
 > 277			raw_cpu_write(local_interrupt_disable_state.flags, flags);
   278		}
   279	}
   280	

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

  reply	other threads:[~2025-10-14  4:51 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-13 15:48 [PATCH v13 00/17] Refcounted interrupts, SpinLockIrq for rust Lyude Paul
2025-10-13 15:48 ` [PATCH v13 01/17] preempt: Track NMI nesting to separate per-CPU counter Lyude Paul
2025-10-13 16:19   ` Lyude Paul
2025-10-13 16:32     ` Miguel Ojeda
2025-10-13 20:00   ` Peter Zijlstra
2025-10-13 21:27     ` Joel Fernandes
2025-10-14  8:25       ` Peter Zijlstra
2025-10-14 17:59         ` Joel Fernandes
2025-10-14 19:37           ` Peter Zijlstra
2025-10-14 10:48   ` Peter Zijlstra
2025-10-14 17:55     ` Joel Fernandes
2025-10-14 19:43       ` Peter Zijlstra
2025-10-14 22:05         ` Joel Fernandes
2025-10-20 20:44         ` Joel Fernandes
2025-10-30 22:56           ` Joel Fernandes
2025-10-13 15:48 ` [PATCH v13 02/17] preempt: Reduce NMI_MASK to single bit and restore HARDIRQ_BITS Lyude Paul
2025-11-04 12:15   ` Andreas Hindborg
2025-10-13 15:48 ` [PATCH v13 03/17] preempt: Introduce HARDIRQ_DISABLE_BITS Lyude Paul
2025-10-31 14:59   ` Andreas Hindborg
2025-10-31 19:59     ` Boqun Feng
2025-10-13 15:48 ` [PATCH v13 04/17] preempt: Introduce __preempt_count_{sub, add}_return() Lyude Paul
2025-10-13 15:48   ` Lyude Paul
2025-11-04 12:30   ` Andreas Hindborg
2025-11-04 12:30     ` Andreas Hindborg
2025-10-13 15:48 ` [PATCH v13 05/17] irq & spin_lock: Add counted interrupt disabling/enabling Lyude Paul
2025-10-14  4:45   ` kernel test robot [this message]
2025-10-15 20:54   ` Bart Van Assche
2025-10-16  8:15     ` Peter Zijlstra
2025-10-17  6:44       ` Boqun Feng
2025-10-16 21:24   ` David Laight
2025-10-17  6:48     ` Boqun Feng
2025-11-04 12:45   ` Andreas Hindborg
2025-11-19 21:47     ` Lyude Paul
2025-10-13 15:48 ` [PATCH v13 06/17] irq: Add KUnit test for refcounted interrupt enable/disable Lyude Paul
2025-10-13 15:48 ` [PATCH v13 07/17] rust: Introduce interrupt module Lyude Paul
2025-11-04 12:55   ` Andreas Hindborg
2025-10-13 15:48 ` [PATCH v13 08/17] rust: helper: Add spin_{un,}lock_irq_{enable,disable}() helpers Lyude Paul
2025-11-04 12:56   ` Andreas Hindborg
2025-10-13 15:48 ` [PATCH v13 09/17] rust: sync: Add SpinLockIrq Lyude Paul
2025-11-04 13:09   ` Andreas Hindborg
2025-10-13 15:48 ` [PATCH v13 10/17] rust: sync: Introduce lock::Backend::Context Lyude Paul
2025-10-13 15:48 ` [PATCH v13 11/17] rust: sync: lock: Add `Backend::BackendInContext` Lyude Paul
2025-11-05 12:45   ` Andreas Hindborg
2025-10-13 15:48 ` [PATCH v13 12/17] rust: sync: lock/global: Rename B to G in trait bounds Lyude Paul
2025-10-13 15:48 ` [PATCH v13 13/17] rust: sync: Add a lifetime parameter to lock::global::GlobalGuard Lyude Paul
2025-10-13 15:48 ` [PATCH v13 14/17] rust: sync: Expose lock::Backend Lyude Paul
2025-10-13 15:48 ` [PATCH v13 15/17] rust: sync: lock/global: Add Backend parameter to GlobalGuard Lyude Paul
2025-10-13 15:48 ` [PATCH v13 16/17] rust: sync: lock/global: Add BackendInContext support to GlobalLock Lyude Paul
2025-10-13 15:48 ` [PATCH v13 17/17] locking: Switch to _irq_{disable,enable}() variants in cleanup guards Lyude Paul

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=202510141211.osWNR3ei-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=lyude@redhat.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.