From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jpoimboe:asm-call 24/42] arch/x86/include/asm/cmpxchg_32.h:134:9: error: expected ')'
Date: Sun, 9 Mar 2025 13:39:25 +0800 [thread overview]
Message-ID: <202503091314.YoYafIjT-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git asm-call
head: 3688c8209c27cd871041b38371e3c44e219ed75a
commit: 9d370256c94ac8fae08150c247d35872dd4e270f [24/42] x86/locking: Use asm_call() in *_cmpxchg64_emu()
config: i386-buildonly-randconfig-002-20250309 (https://download.01.org/0day-ci/archive/20250309/202503091314.YoYafIjT-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250309/202503091314.YoYafIjT-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/202503091314.YoYafIjT-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:15:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:18:
In file included from arch/x86/include/asm/irqflags.h:9:
In file included from arch/x86/include/asm/nospec-branch.h:6:
In file included from include/linux/static_key.h:1:
In file included from include/linux/jump_label.h:257:
In file included from include/linux/atomic.h:7:
In file included from arch/x86/include/asm/atomic.h:8:
In file included from arch/x86/include/asm/cmpxchg.h:143:
arch/x86/include/asm/cmpxchg_32.h:104:9: error: too few arguments provided to function-like macro invocation
104 | return __arch_cmpxchg64_emu(ptr, old, new, LOCK_PREFIX_HERE, "lock ");
| ^
arch/x86/include/asm/cmpxchg_32.h:97:17: note: expanded from macro '__arch_cmpxchg64_emu'
97 | ARG("memory")); \
| ^
arch/x86/include/asm/asm.h:246:9: note: macro 'asm_call' defined here
246 | #define asm_call(vol, insns, output, input, clobbers...) \
| ^
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:15:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:18:
In file included from arch/x86/include/asm/irqflags.h:9:
In file included from arch/x86/include/asm/nospec-branch.h:6:
In file included from include/linux/static_key.h:1:
In file included from include/linux/jump_label.h:257:
In file included from include/linux/atomic.h:7:
In file included from arch/x86/include/asm/atomic.h:8:
In file included from arch/x86/include/asm/cmpxchg.h:143:
arch/x86/include/asm/cmpxchg_32.h:104:9: error: use of undeclared identifier 'asm_call'
104 | return __arch_cmpxchg64_emu(ptr, old, new, LOCK_PREFIX_HERE, "lock ");
| ^
arch/x86/include/asm/cmpxchg_32.h:93:2: note: expanded from macro '__arch_cmpxchg64_emu'
93 | asm_call(ALTERNATIVE(_lock_loc "call cmpxchg8b_emu", \
| ^
arch/x86/include/asm/cmpxchg_32.h:110:9: error: too few arguments provided to function-like macro invocation
110 | return __arch_cmpxchg64_emu(ptr, old, new, ,);
| ^
arch/x86/include/asm/cmpxchg_32.h:97:17: note: expanded from macro '__arch_cmpxchg64_emu'
97 | ARG("memory")); \
| ^
arch/x86/include/asm/asm.h:246:9: note: macro 'asm_call' defined here
246 | #define asm_call(vol, insns, output, input, clobbers...) \
| ^
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:15:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:18:
In file included from arch/x86/include/asm/irqflags.h:9:
In file included from arch/x86/include/asm/nospec-branch.h:6:
In file included from include/linux/static_key.h:1:
In file included from include/linux/jump_label.h:257:
In file included from include/linux/atomic.h:7:
In file included from arch/x86/include/asm/atomic.h:8:
In file included from arch/x86/include/asm/cmpxchg.h:143:
arch/x86/include/asm/cmpxchg_32.h:110:9: error: use of undeclared identifier 'asm_call'
110 | return __arch_cmpxchg64_emu(ptr, old, new, ,);
| ^
arch/x86/include/asm/cmpxchg_32.h:93:2: note: expanded from macro '__arch_cmpxchg64_emu'
93 | asm_call(ALTERNATIVE(_lock_loc "call cmpxchg8b_emu", \
| ^
>> arch/x86/include/asm/cmpxchg_32.h:134:9: error: expected ')'
134 | return __arch_try_cmpxchg64_emu(ptr, oldp, new, LOCK_PREFIX_HERE, "lock ");
| ^
arch/x86/include/asm/cmpxchg_32.h:122:18: note: expanded from macro '__arch_try_cmpxchg64_emu'
122 | ARG(CC_OUT(e) (ret), "+a" (o.low), "+d" (o.high)), \
| ^
arch/x86/include/asm/cmpxchg_32.h:140:9: error: expected ')'
140 | return __arch_try_cmpxchg64_emu(ptr, oldp, new, ,);
| ^
arch/x86/include/asm/cmpxchg_32.h:122:18: note: expanded from macro '__arch_try_cmpxchg64_emu'
122 | ARG(CC_OUT(e) (ret), "+a" (o.low), "+d" (o.high)), \
| ^
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:15:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:18:
In file included from arch/x86/include/asm/irqflags.h:9:
In file included from arch/x86/include/asm/nospec-branch.h:6:
In file included from include/linux/static_key.h:1:
In file included from include/linux/jump_label.h:257:
In file included from include/linux/atomic.h:7:
In file included from arch/x86/include/asm/atomic.h:172:
arch/x86/include/asm/atomic64_32.h:114:19: error: expected ')'
114 | ARG("=&A" (o)),
| ^
arch/x86/include/asm/atomic64_32.h:125:2: error: expected string literal in 'asm'
125 | alternative_atomic64(set,
| ^
arch/x86/include/asm/atomic64_32.h:78:2: note: expanded from macro 'alternative_atomic64'
78 | __alternative_atomic64(f, f, ARG(out), ARG(in), ARG(clobbers))
| ^
arch/x86/include/asm/atomic64_32.h:62:2: note: expanded from macro '__alternative_atomic64'
62 | alternative_call(atomic64_##f##_386, \
| ^
arch/x86/include/asm/alternative.h:244:2: note: expanded from macro 'alternative_call'
244 | asm_call(ALTERNATIVE("call %c[old]", \
| ^
arch/x86/include/asm/asm.h:248:10: note: expanded from macro 'asm_call'
248 | : ASM_CALL_OUTPUT(output) \
| ^
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:15:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:18:
In file included from arch/x86/include/asm/irqflags.h:9:
In file included from arch/x86/include/asm/nospec-branch.h:6:
In file included from include/linux/static_key.h:1:
In file included from include/linux/jump_label.h:257:
In file included from include/linux/atomic.h:7:
In file included from arch/x86/include/asm/atomic.h:172:
arch/x86/include/asm/atomic64_32.h:135:19: error: expected ')'
135 | ARG("=&A" (r)),
| ^
arch/x86/include/asm/atomic64_32.h:144:18: error: expected ')'
144 | ARG("+A" (i), "+c" (v)),
| ^
arch/x86/include/asm/atomic64_32.h:154:18: error: expected ')'
154 | ARG("+A" (i), "+c" (v)),
| ^
arch/x86/include/asm/atomic64_32.h:165:19: error: expected ')'
165 | ARG("=&A" (a)),
| ^
arch/x86/include/asm/atomic64_32.h:176:19: error: expected ')'
176 | ARG("=&A" (a)),
| ^
arch/x86/include/asm/atomic64_32.h:186:20: error: expected ')'
186 | ARG("+A" (i), "+c" (v)),
| ^
arch/x86/include/asm/atomic64_32.h:194:20: error: expected ')'
194 | ARG("+A" (i), "+c" (v)),
| ^
arch/x86/include/asm/atomic64_32.h:201:2: error: expected string literal in 'asm'
201 | __alternative_atomic64(inc, inc_return,
| ^
arch/x86/include/asm/atomic64_32.h:62:2: note: expanded from macro '__alternative_atomic64'
62 | alternative_call(atomic64_##f##_386, \
| ^
arch/x86/include/asm/alternative.h:244:2: note: expanded from macro 'alternative_call'
244 | asm_call(ALTERNATIVE("call %c[old]", \
| ^
arch/x86/include/asm/asm.h:248:10: note: expanded from macro 'asm_call'
248 | : ASM_CALL_OUTPUT(output) \
| ^
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:15:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:18:
In file included from arch/x86/include/asm/irqflags.h:9:
In file included from arch/x86/include/asm/nospec-branch.h:6:
In file included from include/linux/static_key.h:1:
In file included from include/linux/jump_label.h:257:
In file included from include/linux/atomic.h:7:
In file included from arch/x86/include/asm/atomic.h:172:
arch/x86/include/asm/atomic64_32.h:210:2: error: expected string literal in 'asm'
210 | __alternative_atomic64(dec, dec_return,
vim +134 arch/x86/include/asm/cmpxchg_32.h
aef95dac9ce4f2 Uros Bizjak 2024-04-08 131
aef95dac9ce4f2 Uros Bizjak 2024-04-08 132 static __always_inline bool arch_try_cmpxchg64(volatile u64 *ptr, u64 *oldp, u64 new)
aef95dac9ce4f2 Uros Bizjak 2024-04-08 133 {
023f3290b02552 Uros Bizjak 2025-02-28 @134 return __arch_try_cmpxchg64_emu(ptr, oldp, new, LOCK_PREFIX_HERE, "lock ");
aef95dac9ce4f2 Uros Bizjak 2024-04-08 135 }
aef95dac9ce4f2 Uros Bizjak 2024-04-08 136 #define arch_try_cmpxchg64 arch_try_cmpxchg64
aef95dac9ce4f2 Uros Bizjak 2024-04-08 137
:::::: The code at line 134 was first introduced by commit
:::::: 023f3290b02552ea006c1a2013e373750d2cbff6 x86/locking: Remove semicolon from "lock" prefix
:::::: TO: Uros Bizjak <ubizjak@gmail.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-03-09 5:40 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=202503091314.YoYafIjT-lkp@intel.com \
--to=lkp@intel.com \
--cc=jpoimboe@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