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

arm64: perf_event: Remove wrongfully used inline

The functions armv8pmu_read_counter() and armv8pmu_write_counter()
are `static inline` while they are only referenced when assigned
to a function pointer field in a `struct arm_pmu` instance.

The inline keyword is thus counter intuitive and shouldn't be used.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Raphael Gault <raphael.gault@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>

authored by

Raphael Gault and committed by
Will Deacon
3d659e7d 24062fe8

+2 -2
+2 -2
arch/arm64/kernel/perf_event.c
··· 431 431 return val; 432 432 } 433 433 434 - static inline u64 armv8pmu_read_counter(struct perf_event *event) 434 + static u64 armv8pmu_read_counter(struct perf_event *event) 435 435 { 436 436 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); 437 437 struct hw_perf_event *hwc = &event->hw; ··· 468 468 } 469 469 } 470 470 471 - static inline void armv8pmu_write_counter(struct perf_event *event, u64 value) 471 + static void armv8pmu_write_counter(struct perf_event *event, u64 value) 472 472 { 473 473 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); 474 474 struct hw_perf_event *hwc = &event->hw;