git: dd2fd62184b3 - main - libpmc: attempt to fix the build

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sun, 26 Jun 2022 23:16:17 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=dd2fd62184b3aef72d52b586c91f18858e644aaa

commit dd2fd62184b3aef72d52b586c91f18858e644aaa
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-06-26 23:14:56 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-06-26 23:14:56 +0000

    libpmc: attempt to fix the build
    
    Try to fix the build (blindly) after e3572eb654733a94e1e765fe9e95e0579981d851.
    I had missed the missing #ifdef in the review.  Hope that's all it takes.
---
 lib/libpmc/libpmc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/libpmc/libpmc.c b/lib/libpmc/libpmc.c
index 491402276468..581c05e0f8ef 100644
--- a/lib/libpmc/libpmc.c
+++ b/lib/libpmc/libpmc.c
@@ -1476,9 +1476,11 @@ pmc_init(void)
 	/* Fill soft events information. */
 	pmc_class_table[n++] = &soft_class_table_descr;
 
+#if defined(__aarch64__)
 	pmc_class_table[n++] = &cmn600_pmu_class_table_descr;
 	pmc_class_table[n++] = &dmc620_pmu_cd2_class_table_descr;
 	pmc_class_table[n++] = &dmc620_pmu_c_class_table_descr;
+#endif
 #if defined(__amd64__) || defined(__i386__)
 	if (cpu_info.pm_cputype != PMC_CPU_GENERIC)
 		pmc_class_table[n++] = &tsc_class_table_descr;