From: kernel test robot <lkp@intel.com>
To: Atish Patra <atishp@rivosinc.com>
Cc: kbuild-all@lists.01.org, Atish Patra <Atish.Patra@wdc.com>,
linux-kernel@vger.kernel.org
Subject: [atishp04:kvm_perf_rfc 24/24] arch/riscv/include/asm/kvm_vcpu_pmu.h:62:60: warning: 'enum sbi_pmu_fw_generic_events_t' declared inside parameter list will not be visible outside of this definition or declaration
Date: Sat, 16 Jul 2022 14:49:20 +0800 [thread overview]
Message-ID: <202207161431.vy05qNVI-lkp@intel.com> (raw)
tree: https://github.com/atishp04/linux kvm_perf_rfc
head: 84a3fd7f92957f64c411595a9efcc2eed18db2be
commit: 84a3fd7f92957f64c411595a9efcc2eed18db2be [24/24] RISC-V: KVM: Implement firmware events
config: riscv-randconfig-r001-20220715 (https://download.01.org/0day-ci/archive/20220716/202207161431.vy05qNVI-lkp@intel.com/config)
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/84a3fd7f92957f64c411595a9efcc2eed18db2be
git remote add atishp04 https://github.com/atishp04/linux
git fetch --no-tags atishp04 kvm_perf_rfc
git checkout 84a3fd7f92957f64c411595a9efcc2eed18db2be
# 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@intel.com>
All warnings (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:31:32: error: field 'cinfo' has incomplete type
31 | union sbi_pmu_ctr_info cinfo;
| ^~~~~
arch/riscv/include/asm/kvm_vcpu_pmu.h:38:28: error: 'RISCV_MAX_COUNTERS' undeclared here (not in a function)
38 | struct kvm_pmc pmc[RISCV_MAX_COUNTERS];
| ^~~~~~~~~~~~~~~~~~
>> arch/riscv/include/asm/kvm_vcpu_pmu.h:62:60: warning: 'enum sbi_pmu_fw_generic_events_t' declared inside parameter list will not be visible outside of this definition or declaration
62 | int kvm_riscv_vcpu_pmu_incr_fw(struct kvm_vcpu *vcpu, enum sbi_pmu_fw_generic_events_t fid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
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 +62 arch/riscv/include/asm/kvm_vcpu_pmu.h
61
> 62 int kvm_riscv_vcpu_pmu_incr_fw(struct kvm_vcpu *vcpu, enum sbi_pmu_fw_generic_events_t fid);
63 int kvm_riscv_vcpu_pmu_read_hpm(struct kvm_vcpu *vcpu, unsigned int csr_num,
64 unsigned long *val, unsigned long new_val,
65 unsigned long wr_mask);
66
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-07-16 6:50 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=202207161431.vy05qNVI-lkp@intel.com \
--to=lkp@intel.com \
--cc=Atish.Patra@wdc.com \
--cc=atishp@rivosinc.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®