From: kernel test robot <lkp@intel.com>
To: Boqun Feng <boqun@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, Thomas Gleixner <tglx@kernel.org>,
Lyude Paul <lyude@redhat.com>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>
Subject: [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
Date: Sat, 29 Aug 2026 07:46:50 +0200 [thread overview]
Message-ID: <202608290725.a5kydlkP-lkp@intel.com> (raw)
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
reply other threads:[~2026-08-29 5:47 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=202608290725.a5kydlkP-lkp@intel.com \
--to=lkp@intel.com \
--cc=boqun@kernel.org \
--cc=lyude@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peterz@infradead.org \
--cc=tglx@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 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.