Messages in this thread Patch in this message | | | Date | Fri, 10 Feb 2023 11:54:56 -0500 | Subject | [PATCH v2 4/8] perf: pmuv3: Move inclusion of kvm_host.h to the arch-specific helper | From | Zaid Al-Bassam <> |
| |
KVM host support is available only on arm64.
By moving the inclusion of kvm_host.h to an arm64-specific file, the 32bit architecture will be able to implement dummy helpers.
Signed-off-by: Zaid Al-Bassam <zalbassam@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230126204444.2204061-5-zalbassam@google.com --- arch/arm64/include/asm/arm_pmuv3.h | 2 ++ drivers/perf/arm_pmuv3.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/include/asm/arm_pmuv3.h b/arch/arm64/include/asm/arm_pmuv3.h index b13651a06adf9..1c460515b02bd 100644 --- a/arch/arm64/include/asm/arm_pmuv3.h +++ b/arch/arm64/include/asm/arm_pmuv3.h @@ -18,6 +18,8 @@ #ifndef __ASM_PMUV3_H #define __ASM_PMUV3_H +#include <linux/kvm_host.h> + #include <asm/cpufeature.h> #include <asm/sysreg.h> diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c index 46e89e92f8236..b3683fdf8d0b9 100644 --- a/drivers/perf/arm_pmuv3.c +++ b/drivers/perf/arm_pmuv3.c @@ -16,7 +16,6 @@ #include <linux/acpi.h> #include <linux/clocksource.h> -#include <linux/kvm_host.h> #include <linux/of.h> #include <linux/perf/arm_pmu.h> #include <linux/perf/arm_pmuv3.h> -- 2.39.1.581.gbfd45094c4-goog
| |