perf events: hw_breakpoints: Don't include asm/hw_breakpoint.h in user space
authorArnd Bergmann <arnd@arndb.de>
Mon, 7 Dec 2009 16:12:58 +0000 (17:12 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Dec 2009 01:58:40 +0000 (02:58 +0100)
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 <geert@linux-m68k.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: K.Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <200912071712.58650.arnd@arndb.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h

index 89098e35a036d29897060e1075c92fbcdd40684a..bf3329413e181681bec5bf8d775df5d52654d91f 100644 (file)
 #include <linux/ioctl.h>
 #include <asm/byteorder.h>
 
-#ifdef CONFIG_HAVE_HW_BREAKPOINT
-#include <asm/hw_breakpoint.h>
-#endif
-
 /*
  * User-space ABI bits:
  */
@@ -451,6 +447,10 @@ enum perf_callchain_context {
 # include <asm/perf_event.h>
 #endif
 
+#ifdef CONFIG_HAVE_HW_BREAKPOINT
+#include <asm/hw_breakpoint.h>
+#endif
+
 #include <linux/list.h>
 #include <linux/mutex.h>
 #include <linux/rculist.h>