Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: pmuv3: Add missing write_pmuacr()

Fix compilation on Arm by adding missing static inline write_pmuacr()
declaration.

Fixes: 0bbff9ed8165 ("perf/arm_pmuv3: Add PMUv3.9 per counter EL0 access control")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410291954.NiHLIwSC-lkp@intel.com/
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20241029120602.4061566-2-robh@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Rob Herring (Arm) and committed by
Will Deacon
bdc9a64c e1dce564

+2
+2
arch/arm/include/asm/arm_pmuv3.h
··· 212 212 write_sysreg(val, PMUSERENR); 213 213 } 214 214 215 + static inline void write_pmuacr(u64 val) {} 216 + 215 217 static inline void kvm_set_pmu_events(u32 set, struct perf_event_attr *attr) {} 216 218 static inline void kvm_clr_pmu_events(u32 clr) {} 217 219 static inline bool kvm_pmu_counter_deferred(struct perf_event_attr *attr)