From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Thu, 27 Nov 2025 06:33:34 +0800 [thread overview]
Message-ID: <202511270626.hCGshYma-lkp@intel.com> (raw)
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
reply other threads:[~2025-11-26 22:34 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=202511270626.hCGshYma-lkp@intel.com \
--to=lkp@intel.com \
--cc=ardb@kernel.org \
--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