* [android-common:mirror-chromeos-5.10-arcvm 6/6] drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r1' in asm
@ 2026-03-04 2:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-04 2:35 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi David,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common mirror-chromeos-5.10-arcvm
head: 8426c769398ef6f4ac3f61df3f3ec10bd11b0e50
commit: adc2b4c6af434db264d6e58e740fca5ae876df86 [6/6] CHROMIUM: BACKPORT: FROMLIST: cpufreq: add kvm-cpufreq driver
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20260304/202603041028.3rnM0Uia-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 9a109fbb6e184ec9bcce10615949f598f4c974a9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260304/202603041028.3rnM0Uia-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/202603041028.3rnM0Uia-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from <built-in>:2:
In file included from include/linux/compiler_types.h:69:
include/linux/compiler-clang.h:34:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
34 | #define __SANITIZE_ADDRESS__
| ^
<built-in>:353:9: note: previous definition is here
353 | #define __SANITIZE_ADDRESS__ 1
| ^
drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r0' in asm
23 | arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_GET_CUR_CPUFREQ_FUNC_ID,
| ^
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:32: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:387:33: note: expanded from macro '__arm_smccc_1_1'
387 | register unsigned long r0 asm("r0"); \
| ^
>> drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r1' in asm
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:32: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:388:33: note: expanded from macro '__arm_smccc_1_1'
388 | register unsigned long r1 asm("r1"); \
| ^
>> drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r2' in asm
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:32: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:389:33: note: expanded from macro '__arm_smccc_1_1'
389 | register unsigned long r2 asm("r2"); \
| ^
>> drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r3' in asm
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:32: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:390:33: note: expanded from macro '__arm_smccc_1_1'
390 | register unsigned long r3 asm("r3"); \
| ^
drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r0' in asm
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:32: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:391:3: note: expanded from macro '__arm_smccc_1_1'
391 | __declare_args(__count_args(__VA_ARGS__), __VA_ARGS__); \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/arm-smccc.h:372:37: note: expanded from macro '___declare_args'
372 | #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
| ^
<scratch space>:228:1: note: expanded from here
228 | __declare_arg_1
| ^
include/linux/arm-smccc.h:331:34: note: expanded from macro '__declare_arg_1'
331 | register unsigned long arg0 asm("r0") = (u32)a0; \
| ^
>> drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r1' in asm
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:32: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:391:3: note: expanded from macro '__arm_smccc_1_1'
391 | __declare_args(__count_args(__VA_ARGS__), __VA_ARGS__); \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/arm-smccc.h:372:37: note: expanded from macro '___declare_args'
372 | #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
| ^
<scratch space>:228:1: note: expanded from here
228 | __declare_arg_1
| ^
include/linux/arm-smccc.h:332:31: note: expanded from macro '__declare_arg_1'
332 | register typeof(a1) arg1 asm("r1") = __a1
| ^
drivers/cpufreq/kvm-cpufreq.c:23:2: error: expected string literal in 'asm'
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:48: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r0' in asm
include/linux/arm-smccc.h:466:4: note: expanded from macro 'arm_smccc_1_1_invoke'
466 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:413:32: note: expanded from macro 'arm_smccc_1_1_smc'
413 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:387:33: note: expanded from macro '__arm_smccc_1_1'
387 | register unsigned long r0 asm("r0"); \
| ^
>> drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r1' in asm
include/linux/arm-smccc.h:466:4: note: expanded from macro 'arm_smccc_1_1_invoke'
466 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:413:32: note: expanded from macro 'arm_smccc_1_1_smc'
413 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:388:33: note: expanded from macro '__arm_smccc_1_1'
388 | register unsigned long r1 asm("r1"); \
| ^
>> drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r2' in asm
include/linux/arm-smccc.h:466:4: note: expanded from macro 'arm_smccc_1_1_invoke'
466 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:413:32: note: expanded from macro 'arm_smccc_1_1_smc'
413 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:389:33: note: expanded from macro '__arm_smccc_1_1'
389 | register unsigned long r2 asm("r2"); \
| ^
>> drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r3' in asm
include/linux/arm-smccc.h:466:4: note: expanded from macro 'arm_smccc_1_1_invoke'
466 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:413:32: note: expanded from macro 'arm_smccc_1_1_smc'
413 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:390:33: note: expanded from macro '__arm_smccc_1_1'
390 | register unsigned long r3 asm("r3"); \
| ^
drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r0' in asm
include/linux/arm-smccc.h:466:4: note: expanded from macro 'arm_smccc_1_1_invoke'
466 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:413:32: note: expanded from macro 'arm_smccc_1_1_smc'
413 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:391:3: note: expanded from macro '__arm_smccc_1_1'
391 | __declare_args(__count_args(__VA_ARGS__), __VA_ARGS__); \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/arm-smccc.h:372:37: note: expanded from macro '___declare_args'
372 | #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
| ^
<scratch space>:230:1: note: expanded from here
230 | __declare_arg_1
| ^
include/linux/arm-smccc.h:331:34: note: expanded from macro '__declare_arg_1'
331 | register unsigned long arg0 asm("r0") = (u32)a0; \
| ^
>> drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r1' in asm
include/linux/arm-smccc.h:466:4: note: expanded from macro 'arm_smccc_1_1_invoke'
466 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:413:32: note: expanded from macro 'arm_smccc_1_1_smc'
413 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:391:3: note: expanded from macro '__arm_smccc_1_1'
391 | __declare_args(__count_args(__VA_ARGS__), __VA_ARGS__); \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/arm-smccc.h:372:37: note: expanded from macro '___declare_args'
372 | #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
| ^
<scratch space>:230:1: note: expanded from here
230 | __declare_arg_1
| ^
include/linux/arm-smccc.h:332:31: note: expanded from macro '__declare_arg_1'
332 | register typeof(a1) arg1 asm("r1") = __a1
| ^
drivers/cpufreq/kvm-cpufreq.c:23:2: error: expected string literal in 'asm'
include/linux/arm-smccc.h:466:4: note: expanded from macro 'arm_smccc_1_1_invoke'
466 | arm_smccc_1_1_smc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:413:48: note: expanded from macro 'arm_smccc_1_1_smc'
413 | #define arm_smccc_1_1_smc(...) __arm_smccc_1_1(SMCCC_SMC_INST, __VA_ARGS__)
| ^
drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r0' in asm
include/linux/arm-smccc.h:469:4: note: expanded from macro 'arm_smccc_1_1_invoke'
469 | __fail_smccc_1_1(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:438:3: note: expanded from macro '__fail_smccc_1_1'
438 | __declare_args(__count_args(__VA_ARGS__), __VA_ARGS__); \
| ^
include/linux/arm-smccc.h:373:37: note: expanded from macro '__declare_args'
373 | #define __declare_args(count, ...) ___declare_args(count, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:372:37: note: expanded from macro '___declare_args'
372 | #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
| ^
<scratch space>:232:1: note: expanded from here
232 | __declare_arg_1
| ^
include/linux/arm-smccc.h:331:34: note: expanded from macro '__declare_arg_1'
331 | register unsigned long arg0 asm("r0") = (u32)a0; \
| ^
>> drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r1' in asm
include/linux/arm-smccc.h:469:4: note: expanded from macro 'arm_smccc_1_1_invoke'
469 | __fail_smccc_1_1(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:438:3: note: expanded from macro '__fail_smccc_1_1'
438 | __declare_args(__count_args(__VA_ARGS__), __VA_ARGS__); \
| ^
include/linux/arm-smccc.h:373:37: note: expanded from macro '__declare_args'
373 | #define __declare_args(count, ...) ___declare_args(count, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:372:37: note: expanded from macro '___declare_args'
372 | #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
| ^
<scratch space>:232:1: note: expanded from here
232 | __declare_arg_1
| ^
include/linux/arm-smccc.h:332:31: note: expanded from macro '__declare_arg_1'
332 | register typeof(a1) arg1 asm("r1") = __a1
| ^
drivers/cpufreq/kvm-cpufreq.c:50:3: error: unknown register name 'r0' in asm
50 | arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_GET_CPUFREQ_TBL_FUNC_ID,
| ^
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:32: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:387:33: note: expanded from macro '__arm_smccc_1_1'
387 | register unsigned long r0 asm("r0"); \
| ^
drivers/cpufreq/kvm-cpufreq.c:50:3: error: unknown register name 'r1' in asm
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:32: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:388:33: note: expanded from macro '__arm_smccc_1_1'
388 | register unsigned long r1 asm("r1"); \
| ^
drivers/cpufreq/kvm-cpufreq.c:50:3: error: unknown register name 'r2' in asm
include/linux/arm-smccc.h:463:4: note: expanded from macro 'arm_smccc_1_1_invoke'
463 | arm_smccc_1_1_hvc(__VA_ARGS__); \
| ^
include/linux/arm-smccc.h:429:32: note: expanded from macro 'arm_smccc_1_1_hvc'
429 | #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
| ^
include/linux/arm-smccc.h:389:33: note: expanded from macro '__arm_smccc_1_1'
389 | register unsigned long r2 asm("r2"); \
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
vim +/r1 +23 drivers/cpufreq/kvm-cpufreq.c
17
18 static void kvm_scale_freq_tick(void)
19 {
20 unsigned long scale, cur_freq, max_freq;
21 struct arm_smccc_res hvc_res;
22
> 23 arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_GET_CUR_CPUFREQ_FUNC_ID,
24 0, &hvc_res);
25
26 cur_freq = hvc_res.a0;
27 max_freq = cpufreq_get_hw_max_freq(task_cpu(current));
28 scale = (cur_freq << SCHED_CAPACITY_SHIFT) / max_freq;
29
30 this_cpu_write(freq_scale, (unsigned long)scale);
31 }
32
--
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:[~2026-03-04 2:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 2:35 [android-common:mirror-chromeos-5.10-arcvm 6/6] drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r1' in asm kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.