* [ardb:lockless-random-v2 4/5] arch/arm/include/asm/cmpxchg.h:260:1: error: instruction requires: !armv*m
@ 2025-12-06 9:48 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-06 9:48 UTC (permalink / raw)
To: Ard Biesheuvel; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git lockless-random-v2
head: fb8e9bf37065a1be2dbea93f0325d087d5903226
commit: f9262c3f6085ab01d23f1bff483530df38d9ee42 [4/5] random: Use a lockless fast path for get_random_uXX()
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20251206/202512061708.5jgWJenI-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 6d8714b52375b3b7a7f269cd1ec4cc73baece38b)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251206/202512061708.5jgWJenI-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/202512061708.5jgWJenI-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/char/random.c:28:
In file included from include/linux/utsname.h:6:
In file included from include/linux/sched.h:14:
In file included from include/linux/thread_info.h:27:
In file included from include/linux/bitops.h:67:
In file included from arch/arm/include/asm/bitops.h:245:
In file included from include/asm-generic/bitops/lock.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/arm/include/asm/atomic.h:16:
>> arch/arm/include/asm/cmpxchg.h:260:1: error: instruction requires: !armv*m
260 | "1: ldrexd %1, %H1, [%3]\n"
| ^
<inline asm>:1:5: note: instantiated into assembly here
1 | 1: ldrexd r6, r7, [r1]
| ^
In file included from drivers/char/random.c:28:
In file included from include/linux/utsname.h:6:
In file included from include/linux/sched.h:14:
In file included from include/linux/thread_info.h:27:
In file included from include/linux/bitops.h:67:
In file included from arch/arm/include/asm/bitops.h:245:
In file included from include/asm-generic/bitops/lock.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/arm/include/asm/atomic.h:16:
arch/arm/include/asm/cmpxchg.h:264:2: error: instruction requires: !armv*m
264 | " strexd %0, %5, %H5, [%3]\n"
| ^
<inline asm>:5:2: note: instantiated into assembly here
5 | strexd r5, r10, r11, [r1]
| ^
In file included from drivers/char/random.c:28:
In file included from include/linux/utsname.h:6:
In file included from include/linux/sched.h:14:
In file included from include/linux/thread_info.h:27:
In file included from include/linux/bitops.h:67:
In file included from arch/arm/include/asm/bitops.h:245:
In file included from include/asm-generic/bitops/lock.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/arm/include/asm/atomic.h:16:
>> arch/arm/include/asm/cmpxchg.h:260:1: error: instruction requires: !armv*m
260 | "1: ldrexd %1, %H1, [%3]\n"
| ^
<inline asm>:1:5: note: instantiated into assembly here
1 | 1: ldrexd r6, r7, [r1]
| ^
In file included from drivers/char/random.c:28:
In file included from include/linux/utsname.h:6:
In file included from include/linux/sched.h:14:
In file included from include/linux/thread_info.h:27:
In file included from include/linux/bitops.h:67:
In file included from arch/arm/include/asm/bitops.h:245:
In file included from include/asm-generic/bitops/lock.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/arm/include/asm/atomic.h:16:
arch/arm/include/asm/cmpxchg.h:264:2: error: instruction requires: !armv*m
264 | " strexd %0, %5, %H5, [%3]\n"
| ^
<inline asm>:5:2: note: instantiated into assembly here
5 | strexd r5, r10, r11, [r1]
| ^
In file included from drivers/char/random.c:28:
In file included from include/linux/utsname.h:6:
In file included from include/linux/sched.h:14:
In file included from include/linux/thread_info.h:27:
In file included from include/linux/bitops.h:67:
In file included from arch/arm/include/asm/bitops.h:245:
In file included from include/asm-generic/bitops/lock.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/arm/include/asm/atomic.h:16:
>> arch/arm/include/asm/cmpxchg.h:260:1: error: instruction requires: !armv*m
260 | "1: ldrexd %1, %H1, [%3]\n"
| ^
<inline asm>:1:5: note: instantiated into assembly here
1 | 1: ldrexd r6, r7, [r1]
| ^
In file included from drivers/char/random.c:28:
In file included from include/linux/utsname.h:6:
In file included from include/linux/sched.h:14:
In file included from include/linux/thread_info.h:27:
In file included from include/linux/bitops.h:67:
In file included from arch/arm/include/asm/bitops.h:245:
In file included from include/asm-generic/bitops/lock.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/arm/include/asm/atomic.h:16:
arch/arm/include/asm/cmpxchg.h:264:2: error: instruction requires: !armv*m
264 | " strexd %0, %5, %H5, [%3]\n"
| ^
<inline asm>:5:2: note: instantiated into assembly here
5 | strexd r5, r10, r11, [r1]
| ^
In file included from drivers/char/random.c:28:
In file included from include/linux/utsname.h:6:
In file included from include/linux/sched.h:14:
In file included from include/linux/thread_info.h:27:
In file included from include/linux/bitops.h:67:
In file included from arch/arm/include/asm/bitops.h:245:
In file included from include/asm-generic/bitops/lock.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/arm/include/asm/atomic.h:16:
>> arch/arm/include/asm/cmpxchg.h:260:1: error: instruction requires: !armv*m
260 | "1: ldrexd %1, %H1, [%3]\n"
| ^
<inline asm>:1:5: note: instantiated into assembly here
1 | 1: ldrexd r6, r7, [r5]
| ^
In file included from drivers/char/random.c:28:
In file included from include/linux/utsname.h:6:
In file included from include/linux/sched.h:14:
In file included from include/linux/thread_info.h:27:
In file included from include/linux/bitops.h:67:
In file included from arch/arm/include/asm/bitops.h:245:
In file included from include/asm-generic/bitops/lock.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/arm/include/asm/atomic.h:16:
arch/arm/include/asm/cmpxchg.h:264:2: error: instruction requires: !armv*m
264 | " strexd %0, %5, %H5, [%3]\n"
| ^
<inline asm>:5:2: note: instantiated into assembly here
5 | strexd r4, r8, r9, [r5]
| ^
8 errors generated.
vim +260 arch/arm/include/asm/cmpxchg.h
e001bbae7147b1 Russell King 2015-05-26 249
2523c67bb6962f Will Deacon 2013-10-09 250 static inline unsigned long long __cmpxchg64(unsigned long long *ptr,
2523c67bb6962f Will Deacon 2013-10-09 251 unsigned long long old,
2523c67bb6962f Will Deacon 2013-10-09 252 unsigned long long new)
2523c67bb6962f Will Deacon 2013-10-09 253 {
2523c67bb6962f Will Deacon 2013-10-09 254 unsigned long long oldval;
2523c67bb6962f Will Deacon 2013-10-09 255 unsigned long res;
2523c67bb6962f Will Deacon 2013-10-09 256
c32ffce0f66e5d Will Deacon 2014-02-21 257 prefetchw(ptr);
c32ffce0f66e5d Will Deacon 2014-02-21 258
2523c67bb6962f Will Deacon 2013-10-09 259 __asm__ __volatile__(
2523c67bb6962f Will Deacon 2013-10-09 @260 "1: ldrexd %1, %H1, [%3]\n"
2523c67bb6962f Will Deacon 2013-10-09 261 " teq %1, %4\n"
2523c67bb6962f Will Deacon 2013-10-09 262 " teqeq %H1, %H4\n"
2523c67bb6962f Will Deacon 2013-10-09 263 " bne 2f\n"
2523c67bb6962f Will Deacon 2013-10-09 264 " strexd %0, %5, %H5, [%3]\n"
2523c67bb6962f Will Deacon 2013-10-09 265 " teq %0, #0\n"
2523c67bb6962f Will Deacon 2013-10-09 266 " bne 1b\n"
2523c67bb6962f Will Deacon 2013-10-09 267 "2:"
2523c67bb6962f Will Deacon 2013-10-09 268 : "=&r" (res), "=&r" (oldval), "+Qo" (*ptr)
2523c67bb6962f Will Deacon 2013-10-09 269 : "r" (ptr), "r" (old), "r" (new)
2523c67bb6962f Will Deacon 2013-10-09 270 : "cc");
2523c67bb6962f Will Deacon 2013-10-09 271
2523c67bb6962f Will Deacon 2013-10-09 272 return oldval;
2523c67bb6962f Will Deacon 2013-10-09 273 }
2523c67bb6962f Will Deacon 2013-10-09 274
:::::: The code at line 260 was first introduced by commit
:::::: 2523c67bb6962f98193dce1c73b6efb65a6ea92c ARM: 7852/1: cmpxchg: implement barrier-less cmpxchg64_local
:::::: TO: Will Deacon <will.deacon@arm.com>
:::::: CC: Russell King <rmk+kernel@arm.linux.org.uk>
--
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-12-06 9:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-06 9:48 [ardb:lockless-random-v2 4/5] arch/arm/include/asm/cmpxchg.h:260:1: error: instruction requires: !armv*m 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