Re: [PATCH v2] KVM: arm64: Remove cyclical dependency in arm_pmuv3.h
From: kernel test robot
Date: Thu Feb 06 2025 - 18:28:56 EST
Hi Colton,
kernel test robot noticed the following build errors:
[auto build test ERROR on 2014c95afecee3e76ca4a56956a936e23283f05b]
url: https://github.com/intel-lab-lkp/linux/commits/Colton-Lewis/KVM-arm64-Remove-cyclical-dependency-in-arm_pmuv3-h/20250206-082034
base: 2014c95afecee3e76ca4a56956a936e23283f05b
patch link: https://lore.kernel.org/r/20250206001744.3155465-1-coltonlewis%40google.com
patch subject: [PATCH v2] KVM: arm64: Remove cyclical dependency in arm_pmuv3.h
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20250207/202502070744.hqS7ZVVX-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250207/202502070744.hqS7ZVVX-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502070744.hqS7ZVVX-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from arch/arm64/include/asm/kvm_host.h:38,
from include/linux/kvm_host.h:45,
from arch/arm64/kernel/asm-offsets.c:15:
>> include/kvm/arm_pmu.h:177:20: error: static declaration of 'kvm_vcpu_pmu_resync_el0' follows non-static declaration
177 | static inline void kvm_vcpu_pmu_resync_el0(void) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/arm_pmuv3.h:10,
from include/linux/perf/arm_pmuv3.h:316,
from include/kvm/arm_pmu.h:11:
arch/arm64/include/asm/kvm_pmu.h:6:6: note: previous declaration of 'kvm_vcpu_pmu_resync_el0' with type 'void(void)'
6 | void kvm_vcpu_pmu_resync_el0(void);
| ^~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:102: arch/arm64/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1264: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:251: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:251: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/kvm_vcpu_pmu_resync_el0 +177 include/kvm/arm_pmu.h
5421db1be3b11c5 Marc Zyngier 2021-04-14 163
20492a62b99bd43 Marc Zyngier 2022-05-16 164 #define kvm_vcpu_has_pmu(vcpu) ({ false; })
20492a62b99bd43 Marc Zyngier 2022-05-16 165 static inline void kvm_pmu_update_vcpu_events(struct kvm_vcpu *vcpu) {}
20492a62b99bd43 Marc Zyngier 2022-05-16 166 static inline void kvm_vcpu_pmu_restore_guest(struct kvm_vcpu *vcpu) {}
20492a62b99bd43 Marc Zyngier 2022-05-16 167 static inline void kvm_vcpu_pmu_restore_host(struct kvm_vcpu *vcpu) {}
27131b199f9fdc0 Raghavendra Rao Ananta 2023-10-20 168 static inline void kvm_vcpu_reload_pmu(struct kvm_vcpu *vcpu) {}
3d0dba5764b9430 Marc Zyngier 2022-11-13 169 static inline u8 kvm_arm_pmu_get_pmuver_limit(void)
3d0dba5764b9430 Marc Zyngier 2022-11-13 170 {
3d0dba5764b9430 Marc Zyngier 2022-11-13 171 return 0;
3d0dba5764b9430 Marc Zyngier 2022-11-13 172 }
bc512d6a9b92390 Oliver Upton 2023-10-19 173 static inline u64 kvm_pmu_evtyper_mask(struct kvm *kvm)
bc512d6a9b92390 Oliver Upton 2023-10-19 174 {
bc512d6a9b92390 Oliver Upton 2023-10-19 175 return 0;
bc512d6a9b92390 Oliver Upton 2023-10-19 176 }
b1f778a223a2a8a Marc Zyngier 2023-08-20 @177 static inline void kvm_vcpu_pmu_resync_el0(void) {}
20492a62b99bd43 Marc Zyngier 2022-05-16 178
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki