The patch titled Subject: perf, x86: Fix undefined reference to `get_ibs_caps' has been added to the -mm tree. Its filename is perf-x86-fix-undefined-reference-to-get_ibs_caps.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Robert Richter <robert.richter@xxxxxxx> Subject: perf, x86: Fix undefined reference to `get_ibs_caps' Fixing i386 allnoconfig build errors: arch/x86/built-in.o: In function `amd_pmu_hw_config': perf_event_amd.c:(.text+0xc3e1): undefined reference to `get_ibs_caps' Reported-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Signed-off-by: Robert Richter <robert.richter@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/include/asm/perf_event.h | 4 ++++ 1 file changed, 4 insertions(+) diff -puN arch/x86/include/asm/perf_event.h~perf-x86-fix-undefined-reference-to-get_ibs_caps arch/x86/include/asm/perf_event.h --- a/arch/x86/include/asm/perf_event.h~perf-x86-fix-undefined-reference-to-get_ibs_caps +++ a/arch/x86/include/asm/perf_event.h @@ -188,7 +188,11 @@ struct x86_pmu_capability { #define IBS_OP_MAX_CNT_EXT 0x007FFFFFULL /* not a register bit mask */ #define IBS_RIP_INVALID (1ULL<<38) +#ifdef CONFIG_X86_LOCAL_APIC extern u32 get_ibs_caps(void); +#else +static inline u32 get_ibs_caps(void) { return 0; } +#endif #ifdef CONFIG_PERF_EVENTS extern void perf_events_lapic_init(void); _ Subject: Subject: perf, x86: Fix undefined reference to `get_ibs_caps' Patches currently in -mm which might be from robert.richter@xxxxxxx are linux-next.patch perf-x86-fix-undefined-reference-to-get_ibs_caps.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html