All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2026-08-31 15:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-31 15:24 UTC (permalink / raw)
  Cc: oe-kbuild-all, llvm

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-31 15:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 15:24 [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 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.