Skip to content

Commit 7fb0f1d

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
perf/x86: Fix compile warnings for intel_uncore
The uncore drivers require PCI and generate compile time warnings when !CONFIG_PCI. Reported-by: Andrew Morton <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Josh Triplett <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Yan, Zheng <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent b438b1a commit 7fb0f1d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

arch/x86/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ config INSTRUCTION_DECODER
142142
def_bool y
143143
depends on KPROBES || PERF_EVENTS || UPROBES
144144

145+
config PERF_EVENTS_INTEL_UNCORE
146+
def_bool y
147+
depends on PERF_EVENTS && SUP_SUP_INTEL && PCI
148+
145149
config OUTPUT_FORMAT
146150
string
147151
default "elf32-i386" if X86_32

arch/x86/kernel/cpu/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ obj-$(CONFIG_CPU_SUP_AMD) += perf_event_amd_iommu.o
3939
endif
4040
obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_p6.o perf_event_knc.o perf_event_p4.o
4141
obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_lbr.o perf_event_intel_ds.o perf_event_intel.o
42-
obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_uncore.o perf_event_intel_uncore_snb.o
43-
obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_uncore_snbep.o perf_event_intel_uncore_nhmex.o
4442
obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_rapl.o
43+
44+
obj-$(CONFIG_PERF_EVENTS_INTEL_UNCORE) += perf_event_intel_uncore.o \
45+
perf_event_intel_uncore_snb.o \
46+
perf_event_intel_uncore_snbep.o \
47+
perf_event_intel_uncore_nhmex.o
4548
endif
4649

4750

0 commit comments

Comments
 (0)