[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207161450.LomRu1BD-lkp@intel.com>
Date: Sat, 16 Jul 2022 14:15:54 +0800
From: kernel test robot <lkp@...el.com>
To: Atish Patra <atishp@...osinc.com>
Cc: kbuild-all@...ts.01.org, Atish Patra <Atish.Patra@....com>,
linux-kernel@...r.kernel.org
Subject: [atishp04:kvm_perf_rfc 20/24]
arch/riscv/include/asm/kvm_vcpu_pmu.h:23:32: error: field 'cinfo' has
incomplete type
tree: https://github.com/atishp04/linux kvm_perf_rfc
head: 84a3fd7f92957f64c411595a9efcc2eed18db2be
commit: bb00c153861bc5d86bab2b4335f3f0e1ca970925 [20/24] RISC-V: KVM: Add skeleton support for perf
config: riscv-randconfig-r001-20220715
compiler: riscv64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/atishp04/linux/commit/bb00c153861bc5d86bab2b4335f3f0e1ca970925
git remote add atishp04 https://github.com/atishp04/linux
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=gcc-12.1.0 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 <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from arch/riscv/include/asm/kvm_host.h:21,
from arch/riscv/kernel/asm-offsets.c:12:
>> arch/riscv/include/asm/kvm_vcpu_pmu.h:23:32: error: field 'cinfo' has incomplete type
23 | union sbi_pmu_ctr_info cinfo;
| ^~~~~
>> arch/riscv/include/asm/kvm_vcpu_pmu.h:28:28: error: 'RISCV_MAX_COUNTERS' undeclared here (not in a function)
28 | struct kvm_pmc pmc[RISCV_MAX_COUNTERS];
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: 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 +/cinfo +23 arch/riscv/include/asm/kvm_vcpu_pmu.h
16
17 /* Per virtual pmu counter data */
18 struct kvm_pmc {
19 u8 idx;
20 struct kvm_vcpu *vcpu;
21 struct perf_event *perf_event;
22 uint64_t counter_val;
> 23 union sbi_pmu_ctr_info cinfo;
24 };
25
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 */
34 DECLARE_BITMAP(used_pmc, RISCV_MAX_COUNTERS);
35 };
36
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (101399 bytes)
Powered by blists - more mailing lists