* [arm-platforms:kvm-arm64/pmu-undef-NV 1/3] arch/arm64/kvm/perf.c:58:6: error: implicit declaration of function 'perf_num_counters'; did you mean
@ 2021-02-03 4:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-03 4:26 UTC (permalink / raw)
To: Marc Zyngier; +Cc: kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 2178 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/pmu-undef-NV
head: 5893d9ecf13a260bf087d01ba16fdaad72261c61
commit: 7e2acc92692ec8d98a6c08f80d5d0c66c8c590fd [1/3] KVM: arm64: Turn kvm_arm_support_pmu_v3() into a static key
config: arm64-randconfig-r024-20210202 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=7e2acc92692ec8d98a6c08f80d5d0c66c8c590fd
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms kvm-arm64/pmu-undef-NV
git checkout 7e2acc92692ec8d98a6c08f80d5d0c66c8c590fd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/arm64/kvm/perf.c: In function 'kvm_perf_init':
>> arch/arm64/kvm/perf.c:58:6: error: implicit declaration of function 'perf_num_counters'; did you mean 'dec_mm_counter'? [-Werror=implicit-function-declaration]
58 | if (perf_num_counters() > 0)
| ^~~~~~~~~~~~~~~~~
| dec_mm_counter
cc1: some warnings being treated as errors
vim +58 arch/arm64/kvm/perf.c
50
51 int kvm_perf_init(void)
52 {
53 /*
54 * Check if HW_PERF_EVENTS are supported by checking the number of
55 * hardware performance counters. This could ensure the presence of
56 * a physical PMU and CONFIG_PERF_EVENT is selected.
57 */
> 58 if (perf_num_counters() > 0)
59 static_branch_enable(&kvm_arm_pmu_available);
60
61 return perf_register_guest_info_callbacks(&kvm_guest_cbs);
62 }
63
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 40060 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-03 4:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-03 4:26 [arm-platforms:kvm-arm64/pmu-undef-NV 1/3] arch/arm64/kvm/perf.c:58:6: error: implicit declaration of function 'perf_num_counters'; did you mean kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).