From 6f6e151692625e29810f2fe036b4f410540567c8 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Thu, 3 Mar 2016 09:12:27 +0100 Subject: [PATCH] perf/x86/uncore: Fix build on UP-IOAPIC configs Commit: cf6d445f6897 ("perf/x86/uncore: Track packages, not per CPU data") reorganized the uncore code to track packages, and introduced a dependency on MAX_APIC_ID. This constant is not available on UP-IOAPIC builds: arch/x86/events/intel/uncore.c:1350:44: error: 'MAX_LOCAL_APIC' undeclared here (not in a function) Include asm/apicdef.h explicitly to pick it up. Cc: Arnaldo Carvalho de Melo Cc: Borislav Petkov Cc: Harish Chegondi Cc: Jacob Pan Cc: Jiri Olsa Cc: Kan Liang Cc: Linus Torvalds Cc: Peter Zijlstra (Intel) Cc: Stephane Eranian Cc: Thomas Gleixner Cc: Vince Weaver Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/x86/events/intel/uncore.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/intel/uncore.h b/arch/x86/events/intel/uncore.h index 01c67935bb28..79766b9a3580 100644 --- a/arch/x86/events/intel/uncore.h +++ b/arch/x86/events/intel/uncore.h @@ -1,6 +1,8 @@ #include #include #include +#include + #include #include "../perf_event.h" -- GitLab