All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:mirror-chromeos-5.10-arcvm 6/6] drivers/cpufreq/kvm-cpufreq.c:23:2: error: unknown register name 'r1' in asm
Date: Wed, 04 Mar 2026 10:35:59 +0800	[thread overview]
Message-ID: <202603041028.3rnM0Uia-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-03-04  2:36 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=202603041028.3rnM0Uia-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --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 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.