* [tglx-devel:irqflags 2/20] rust/helpers/interrupt.c:7:2: error: call to undeclared function 'local_interrupt_disable'; ISO C99 and later do not support implicit function declarations
@ 2026-08-29 5:46 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-29 5:46 UTC (permalink / raw)
To: Boqun Feng
Cc: oe-kbuild-all, Thomas Gleixner, Lyude Paul,
Peter Zijlstra (Intel)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git irqflags
head: 59394501f5a285ef270931207a67d2f129403151
commit: 80deadb1a815addda89fa7d485109a13b4a851a7 [2/20] Revert: irq,spin_lock: Add counted interrupt disabling/enabling
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260829/202608290725.a5kydlkP-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260829/202608290725.a5kydlkP-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/202608290725.a5kydlkP-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from rust/helpers/helpers.c:69:
>> rust/helpers/interrupt.c:7:2: error: call to undeclared function 'local_interrupt_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
7 | local_interrupt_disable();
| ^
>> rust/helpers/interrupt.c:12:2: error: call to undeclared function 'local_interrupt_enable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
12 | local_interrupt_enable();
| ^
In file included from rust/helpers/helpers.c:97:
>> rust/helpers/spinlock.c:42:2: error: call to undeclared function 'spin_lock_irq_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
42 | spin_lock_irq_disable(lock);
| ^
rust/helpers/spinlock.c:42:2: note: did you mean 'arch_local_irq_disable'?
arch/x86/include/asm/irqflags.h:112:29: note: 'arch_local_irq_disable' declared here
112 | static __always_inline void arch_local_irq_disable(void)
| ^
In file included from rust/helpers/helpers.c:97:
>> rust/helpers/spinlock.c:47:2: error: call to undeclared function 'spin_unlock_irq_enable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
47 | spin_unlock_irq_enable(lock);
| ^
rust/helpers/spinlock.c:47:2: note: did you mean 'spin_unlock_irqrestore'?
include/linux/spinlock.h:405:29: note: 'spin_unlock_irqrestore' declared here
405 | static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
| ^
In file included from rust/helpers/helpers.c:97:
>> rust/helpers/spinlock.c:52:9: error: call to undeclared function 'spin_trylock_irq_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
52 | return spin_trylock_irq_disable(lock);
| ^
rust/helpers/spinlock.c:52:9: note: did you mean '_spin_trylock_irqsave'?
include/linux/spinlock.h:423:29: note: '_spin_trylock_irqsave' declared here
423 | static __always_inline bool _spin_trylock_irqsave(spinlock_t *lock, unsigned long *flags)
| ^
5 errors generated.
--
>> rust/helpers/interrupt.c:7:2: error: call to undeclared function 'local_interrupt_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/interrupt.c:12:2: error: call to undeclared function 'local_interrupt_enable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.c:42:2: error: call to undeclared function 'spin_lock_irq_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.c:47:2: error: call to undeclared function 'spin_unlock_irq_enable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.c:52:9: error: call to undeclared function 'spin_trylock_irq_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> Unable to generate bindings: clang diagnosed error: rust/helpers/interrupt.c:7:2: error: call to undeclared function 'local_interrupt_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/interrupt.c:12:2: error: call to undeclared function 'local_interrupt_enable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.c:42:2: error: call to undeclared function 'spin_lock_irq_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.c:47:2: error: call to undeclared function 'spin_unlock_irq_enable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.c:52:9: error: call to undeclared function 'spin_trylock_irq_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
vim +/local_interrupt_disable +7 rust/helpers/interrupt.c
c1f0451ec748f7 Lyude Paul 2026-08-07 4
c1f0451ec748f7 Lyude Paul 2026-08-07 5 __rust_helper void rust_helper_local_interrupt_disable(void)
c1f0451ec748f7 Lyude Paul 2026-08-07 6 {
c1f0451ec748f7 Lyude Paul 2026-08-07 @7 local_interrupt_disable();
c1f0451ec748f7 Lyude Paul 2026-08-07 8 }
c1f0451ec748f7 Lyude Paul 2026-08-07 9
c1f0451ec748f7 Lyude Paul 2026-08-07 10 __rust_helper void rust_helper_local_interrupt_enable(void)
c1f0451ec748f7 Lyude Paul 2026-08-07 11 {
c1f0451ec748f7 Lyude Paul 2026-08-07 @12 local_interrupt_enable();
:::::: The code at line 7 was first introduced by commit
:::::: c1f0451ec748f7a58a4e50bcb8f75bd89718be78 rust: Introduce interrupt module
:::::: TO: Lyude Paul <lyude@redhat.com>
:::::: CC: Peter Zijlstra <peterz@infradead.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-29 5:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-29 5:46 [tglx-devel:irqflags 2/20] rust/helpers/interrupt.c:7:2: error: call to undeclared function 'local_interrupt_disable'; ISO C99 and later do not support implicit function declarations kernel test robot
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.