From: Arnd Bergmann Date: Mon, 7 Dec 2009 16:12:58 +0000 (+0100) Subject: perf events: hw_breakpoints: Don't include asm/hw_breakpoint.h in user space X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ff6cfd70720780234fdfea636218c2a62b31287;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git perf events: hw_breakpoints: Don't include asm/hw_breakpoint.h in user space asm/hw_breakpoint.h is evidently a kernel internal file and should not be included globally, not even under an #ifdef. Reported-by: Geert Uytterhoeven Signed-off-by: Arnd Bergmann Cc: Frederic Weisbecker Cc: Alan Stern Cc: K.Prasad LKML-Reference: <200912071712.58650.arnd@arndb.de> Signed-off-by: Ingo Molnar --- diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 89098e35a036..bf3329413e18 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -18,10 +18,6 @@ #include #include -#ifdef CONFIG_HAVE_HW_BREAKPOINT -#include -#endif - /* * User-space ABI bits: */ @@ -451,6 +447,10 @@ enum perf_callchain_context { # include #endif +#ifdef CONFIG_HAVE_HW_BREAKPOINT +#include +#endif + #include #include #include