[mark:arm64/percpu-fixup 15/17] clang diag: arch/arm64/include/asm/percpu.h:341:1: warning: value size does not match register size specified by the constraint and modifier
kernel test robot <[email protected]> Sun, 02 Aug 2026 07:11:30 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all,dev.linux.lists.llvm |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/percpu-fixup head: f118f6b23da9a83459d961ce6fffa6af0ec1bf39 commit: c45891bccd87033358a8d255b0f5ab8a74765d5d [15/17] arm64: percpu: Implement preemptible CMPXCHG ops config: arm64-randconfig-001-20260802 (https://download.01.org/0day-ci/archive/20260802/[email protected]/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) rustc: rustc 1.96.0 (ac68faa20 2026-05-25) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260802/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): >> clang diag: arch/arm64/include/asm/percpu.h:341:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] clang diag: arch/arm64/include/asm/percpu.h:342:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] clang diag: arch/arm64/include/asm/percpu.h:343:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] -- | ^ arch/arm64/include/asm/percpu.h:343:1: note: use constraint modifier "w" arch/arm64/include/asm/percpu.h:317:19: note: expanded from macro 'PERCPU_CMPXCHG_OP' 317 | " mov %[oldval], %[old]\n" \ | ^ 3 warnings generated. In file included from <built-in>:4: In file included from lib/vdso/gettimeofday.c:24: In file included from arch/arm64/include/asm/vdso/gettimeofday.h:15: In file included from arch/arm64/include/asm/arch_timer.h:18: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:12: arch/arm64/include/asm/percpu.h:341:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] 341 | PERCPU_CMPXCHG_OP(w, b, 8) | ^ arch/arm64/include/asm/percpu.h:328:15: note: expanded from macro 'PERCPU_CMPXCHG_OP' 328 | [old] "r" (xwreg_zero_extend(old, w, sz)), \ | ^ arch/arm64/include/asm/xwreg.h:11:38: note: expanded from macro 'xwreg_zero_extend' 11 | #define xwreg_zero_extend(v, xw, sz) ((xwreg_t(xw))(u##sz)(v)) | ^ arch/arm64/include/asm/percpu.h:341:1: note: use constraint modifier "w" arch/arm64/include/asm/percpu.h:317:19: note: expanded from macro 'PERCPU_CMPXCHG_OP' 317 | " mov %[oldval], %[old]\n" \ | ^ arch/arm64/include/asm/percpu.h:342:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] 342 | PERCPU_CMPXCHG_OP(w, h, 16) | ^ arch/arm64/include/asm/percpu.h:328:15: note: expanded from macro 'PERCPU_CMPXCHG_OP' 328 | [old] "r" (xwreg_zero_extend(old, w, sz)), \ | ^ arch/arm64/include/asm/xwreg.h:11:38: note: expanded from macro 'xwreg_zero_extend' 11 | #define xwreg_zero_extend(v, xw, sz) ((xwreg_t(xw))(u##sz)(v)) | ^ arch/arm64/include/asm/percpu.h:342:1: note: use constraint modifier "w" arch/arm64/include/asm/percpu.h:317:19: note: expanded from macro 'PERCPU_CMPXCHG_OP' 317 | " mov %[oldval], %[old]\n" \ | ^ arch/arm64/include/asm/percpu.h:343:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] 343 | PERCPU_CMPXCHG_OP(w, , 32) | ^ arch/arm64/include/asm/percpu.h:328:15: note: expanded from macro 'PERCPU_CMPXCHG_OP' 328 | [old] "r" (xwreg_zero_extend(old, w, sz)), \ | ^ arch/arm64/include/asm/xwreg.h:11:38: note: expanded from macro 'xwreg_zero_extend' 11 | #define xwreg_zero_extend(v, xw, sz) ((xwreg_t(xw))(u##sz)(v)) | ^ arch/arm64/include/asm/percpu.h:343:1: note: use constraint modifier "w" arch/arm64/include/asm/percpu.h:317:19: note: expanded from macro 'PERCPU_CMPXCHG_OP' 317 | " mov %[oldval], %[old]\n" \ | ^ 3 warnings generated. In file included from rust/helpers/helpers.c:41: In file included from rust/helpers/acpi.c:3: In file included from include/linux/acpi.h:14: In file included from include/linux/resource_ext.h:11: In file included from include/linux/slab.h:17: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:8: In file included from include/linux/spinlock.h:59: In file included from include/linux/irqflags.h:19: arch/arm64/include/asm/percpu.h:341:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] 341 | PERCPU_CMPXCHG_OP(w, b, 8) | ^ arch/arm64/include/asm/percpu.h:328:15: note: expanded from macro 'PERCPU_CMPXCHG_OP' 328 | [old] "r" (xwreg_zero_extend(old, w, sz)), \ | ^ arch/arm64/include/asm/xwreg.h:11:38: note: expanded from macro 'xwreg_zero_extend' 11 | #define xwreg_zero_extend(v, xw, sz) ((xwreg_t(xw))(u##sz)(v)) | ^ arch/arm64/include/asm/percpu.h:341:1: note: use constraint modifier "w" arch/arm64/include/asm/percpu.h:317:19: note: expanded from macro 'PERCPU_CMPXCHG_OP' 317 | " mov %[oldval], %[old]\n" \ | ^ arch/arm64/include/asm/percpu.h:342:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] 342 | PERCPU_CMPXCHG_OP(w, h, 16) | ^ arch/arm64/include/asm/percpu.h:328:15: note: expanded from macro 'PERCPU_CMPXCHG_OP' 328 | [old] "r" (xwreg_zero_extend(old, w, sz)), \ | ^ arch/arm64/include/asm/xwreg.h:11:38: note: expanded from macro 'xwreg_zero_extend' 11 | #define xwreg_zero_extend(v, xw, sz) ((xwreg_t(xw))(u##sz)(v)) | ^ arch/arm64/include/asm/percpu.h:342:1: note: use constraint modifier "w" arch/arm64/include/asm/percpu.h:317:19: note: expanded from macro 'PERCPU_CMPXCHG_OP' 317 | " mov %[oldval], %[old]\n" \ | ^ arch/arm64/include/asm/percpu.h:343:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] 343 | PERCPU_CMPXCHG_OP(w, , 32) | ^ arch/arm64/include/asm/percpu.h:328:15: note: expanded from macro 'PERCPU_CMPXCHG_OP' 328 | [old] "r" (xwreg_zero_extend(old, w, sz)), \ | ^ arch/arm64/include/asm/xwreg.h:11:38: note: expanded from macro 'xwreg_zero_extend' 11 | #define xwreg_zero_extend(v, xw, sz) ((xwreg_t(xw))(u##sz)(v)) | ^ arch/arm64/include/asm/percpu.h:343:1: note: use constraint modifier "w" arch/arm64/include/asm/percpu.h:317:19: note: expanded from macro 'PERCPU_CMPXCHG_OP' 317 | " mov %[oldval], %[old]\n" \ | ^ >> clang diag: arch/arm64/include/asm/percpu.h:341:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] clang diag: arch/arm64/include/asm/percpu.h:342:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] clang diag: arch/arm64/include/asm/percpu.h:343:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] >> clang diag: arch/arm64/include/asm/percpu.h:341:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] clang diag: arch/arm64/include/asm/percpu.h:342:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] clang diag: arch/arm64/include/asm/percpu.h:343:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] >> clang diag: arch/arm64/include/asm/percpu.h:341:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] clang diag: arch/arm64/include/asm/percpu.h:342:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] clang diag: arch/arm64/include/asm/percpu.h:343:1: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths] 3 warnings generated. -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki