[lkml]   [2022]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[atishp04:kvm_perf_rfc 20/24] arch/riscv/include/asm/kvm_vcpu_pmu.h:28:21: error: use of undeclared identifier 'RISCV_MAX_COUNTERS'
tree: kvm_perf_rfc
head: 84a3fd7f92957f64c411595a9efcc2eed18db2be
commit: bb00c153861bc5d86bab2b4335f3f0e1ca970925 [20/24] RISC-V: KVM: Add skeleton support for perf
config: riscv-randconfig-r042-20220715 (
compiler: clang version 15.0.0 ( 07022e6cf9b5b3baa642be53d0b3c3f1c403dbfd)
reproduce (this is a W=1 build):
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv-linux-gnu
git remote add atishp04
git fetch --no-tags atishp04 kvm_perf_rfc
git checkout bb00c153861bc5d86bab2b4335f3f0e1ca970925
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv prepare

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <>

All errors (new ones prefixed by >>):

In file included from arch/riscv/kernel/asm-offsets.c:12:
In file included from arch/riscv/include/asm/kvm_host.h:21:
>> arch/riscv/include/asm/kvm_vcpu_pmu.h:28:21: error: use of undeclared identifier 'RISCV_MAX_COUNTERS'
struct kvm_pmc pmc[RISCV_MAX_COUNTERS];
arch/riscv/include/asm/kvm_vcpu_pmu.h:34:27: error: use of undeclared identifier 'RISCV_MAX_COUNTERS'
2 errors generated.
make[2]: *** [scripts/ arch/riscv/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1200: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.

vim +/RISCV_MAX_COUNTERS +28 arch/riscv/include/asm/kvm_vcpu_pmu.h

26 /* PMU data structure per vcpu */
27 struct kvm_pmu {
> 28 struct kvm_pmc pmc[RISCV_MAX_COUNTERS];
29 /* Number of the virtual firmware counters available */
30 int num_fw_ctrs;
31 /* Number of the virtual hardware counters available */
32 int num_hw_ctrs;
33 /* Bit map of all the virtual counter used */
35 };

0-DAY CI Kernel Test Service

 \ /
  Last update: 2022-07-16 08:40    [W:0.046 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site