Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, llvm@lists.linux.dev
Subject: [tglx-devel:irqflags 4/22] rust/helpers/spinlock.h:53:34: error: call to undeclared function '__LOCK'; ISO C99 and later do not support implicit function declarations
Date: Mon, 31 Aug 2026 23:24:11 +0800	[thread overview]
Message-ID: <202608312301.kMILkNug-lkp@intel.com> (raw)

TO: Thomas Gleixner <tglx@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git irqflags
head:   ec3ae38eecb47043e2e2d2138e35ee22dedfced4
commit: e4ad033b57310ea8804a2fb5a32a23fdd93e4329 [4/22] movestuff
config: x86_64-randconfig-005-20260831 (https://download.01.org/0day-ci/archive/20260831/202608312301.kMILkNug-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260831/202608312301.kMILkNug-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/202608312301.kMILkNug-lkp@intel.com/

All errors (new ones prefixed by >>):

>> rust/helpers/spinlock.h:53:34: error: call to undeclared function '__LOCK'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.h:53:34: error: call to undeclared function '__LOCK'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.h:55:7: error: call to undeclared function '__UNLOCK'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.h:53:2: error: expected identifier or '('
>> rust/helpers/spinlock.h:53:65: error: while loop outside of a function
>> rust/helpers/spinlock.c:31:19: error: use of undeclared identifier '_raw_spin_lock_irq_disable'
   rust/helpers/spinlock.h:55:2: error: expected identifier or '('
   rust/helpers/spinlock.h:55:66: error: while loop outside of a function
>> rust/helpers/spinlock.c:39:19: error: use of undeclared identifier '_raw_spin_unlock_irq_enable'
>> Unable to generate bindings: clang diagnosed error: rust/helpers/spinlock.h:53:34: error: call to undeclared function '__LOCK'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.h:53:34: error: call to undeclared function '__LOCK'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.h:55:7: error: call to undeclared function '__UNLOCK'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> rust/helpers/spinlock.h:53:2: error: expected identifier or '('
>> rust/helpers/spinlock.h:53:65: error: while loop outside of a function
>> rust/helpers/spinlock.c:31:19: error: use of undeclared identifier '_raw_spin_lock_irq_disable'
   rust/helpers/spinlock.h:55:2: error: expected identifier or '('
   rust/helpers/spinlock.h:55:66: error: while loop outside of a function
>> rust/helpers/spinlock.c:39:19: error: use of undeclared identifier '_raw_spin_unlock_irq_enable'


vim +/__LOCK +53 rust/helpers/spinlock.h

    51	
    52	#define __LOCK_IRQ_DISABLE(lock, ...)						\
  > 53		do { local_interrupt_disable(); __LOCK(lock, ##__VA_ARGS__); } while (0)
    54	#define __UNLOCK_IRQ_ENABLE(lock, ...)						\
  > 55		do { __UNLOCK(lock, ##__VA_ARGS__); local_interrupt_enable(); } while (0)
    56	

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

                 reply	other threads:[~2026-08-31 15:25 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=202608312301.kMILkNug-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox