* [ardb:for-kernelci 2/4] drivers/char/random.c:570:1: error: call to undeclared function 'arch_cmpxchg64_local'; ISO C99 and later do not support implicit function declarations
@ 2025-11-26 22:33 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-26 22:33 UTC (permalink / raw)
To: Ard Biesheuvel; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git for-kernelci
head: 36c8d6393fcd1f917beed0c0b3cbd2969cfda4c4
commit: 93d36d27a0ec6d3d42148038c6e3d50a443c8a16 [2/4] random: Use a lockless fast path for get_random_uXX()
config: hexagon-allnoconfig (https://download.01.org/0day-ci/archive/20251127/202511270626.hCGshYma-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9e9fe08b16ea2c4d9867fb4974edf2a3776d6ece)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251127/202511270626.hCGshYma-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/202511270626.hCGshYma-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/char/random.c:570:1: error: call to undeclared function 'arch_cmpxchg64_local'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
570 | DEFINE_BATCHED_ENTROPY(u8)
| ^
drivers/char/random.c:552:6: note: expanded from macro 'DEFINE_BATCHED_ENTROPY'
552 | if (cmpxchg64_local(&batch->posgen, next, next - 1) != next - 1) { \
| ^
include/linux/atomic/atomic-instrumented.h:4998:2: note: expanded from macro 'cmpxchg64_local'
4998 | raw_cmpxchg64_local(__ai_ptr, __VA_ARGS__); \
| ^
include/linux/atomic/atomic-arch-fallback.h:399:29: note: expanded from macro 'raw_cmpxchg64_local'
399 | #define raw_cmpxchg64_local arch_cmpxchg64_local
| ^
drivers/char/random.c:571:1: error: call to undeclared function 'arch_cmpxchg64_local'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
571 | DEFINE_BATCHED_ENTROPY(u16)
| ^
drivers/char/random.c:552:6: note: expanded from macro 'DEFINE_BATCHED_ENTROPY'
552 | if (cmpxchg64_local(&batch->posgen, next, next - 1) != next - 1) { \
| ^
include/linux/atomic/atomic-instrumented.h:4998:2: note: expanded from macro 'cmpxchg64_local'
4998 | raw_cmpxchg64_local(__ai_ptr, __VA_ARGS__); \
| ^
include/linux/atomic/atomic-arch-fallback.h:399:29: note: expanded from macro 'raw_cmpxchg64_local'
399 | #define raw_cmpxchg64_local arch_cmpxchg64_local
| ^
drivers/char/random.c:572:1: error: call to undeclared function 'arch_cmpxchg64_local'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
572 | DEFINE_BATCHED_ENTROPY(u32)
| ^
drivers/char/random.c:552:6: note: expanded from macro 'DEFINE_BATCHED_ENTROPY'
552 | if (cmpxchg64_local(&batch->posgen, next, next - 1) != next - 1) { \
| ^
include/linux/atomic/atomic-instrumented.h:4998:2: note: expanded from macro 'cmpxchg64_local'
4998 | raw_cmpxchg64_local(__ai_ptr, __VA_ARGS__); \
| ^
include/linux/atomic/atomic-arch-fallback.h:399:29: note: expanded from macro 'raw_cmpxchg64_local'
399 | #define raw_cmpxchg64_local arch_cmpxchg64_local
| ^
drivers/char/random.c:573:1: error: call to undeclared function 'arch_cmpxchg64_local'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
573 | DEFINE_BATCHED_ENTROPY(u64)
| ^
drivers/char/random.c:552:6: note: expanded from macro 'DEFINE_BATCHED_ENTROPY'
552 | if (cmpxchg64_local(&batch->posgen, next, next - 1) != next - 1) { \
| ^
include/linux/atomic/atomic-instrumented.h:4998:2: note: expanded from macro 'cmpxchg64_local'
4998 | raw_cmpxchg64_local(__ai_ptr, __VA_ARGS__); \
| ^
include/linux/atomic/atomic-arch-fallback.h:399:29: note: expanded from macro 'raw_cmpxchg64_local'
399 | #define raw_cmpxchg64_local arch_cmpxchg64_local
| ^
4 errors generated.
vim +/arch_cmpxchg64_local +570 drivers/char/random.c
3092adcef3ffd2 Jason A. Donenfeld 2022-05-15 569
585cd5fe9f7378 Jason A. Donenfeld 2022-09-28 @570 DEFINE_BATCHED_ENTROPY(u8)
a890d1c657ecba Jason A. Donenfeld 2022-10-05 571 DEFINE_BATCHED_ENTROPY(u16)
a890d1c657ecba Jason A. Donenfeld 2022-10-05 572 DEFINE_BATCHED_ENTROPY(u32)
a890d1c657ecba Jason A. Donenfeld 2022-10-05 573 DEFINE_BATCHED_ENTROPY(u64)
3655adc7089da4 Jason A. Donenfeld 2022-02-11 574
:::::: The code at line 570 was first introduced by commit
:::::: 585cd5fe9f7378601b1d4915ad6e9088333b5e5e random: add 8-bit and 16-bit batches
:::::: TO: Jason A. Donenfeld <Jason@zx2c4.com>
:::::: CC: Jason A. Donenfeld <Jason@zx2c4.com>
--
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:[~2025-11-26 22:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-26 22:33 [ardb:for-kernelci 2/4] drivers/char/random.c:570:1: error: call to undeclared function 'arch_cmpxchg64_local'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox