Skip to content
Commit 9b80b967 authored by Marc Zyngier's avatar Marc Zyngier
Browse files

KVM: arm64: pmu: Guard PMU emulation definitions with CONFIG_KVM



Most of the internal definitions for PMU emulation are guarded with
CONFIG_HW_PERF_EVENTS. However, this isn't enough, and leads to
these definitions leaking if CONFIG_KVM isn't enabled.

This leads to some compilation breakage in this exact configuration.
Fix it by falling back to the dummy stubs if either perf or KVM
isn't selected.

Reported-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Tested-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent b1f778a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment