Skip to content

Commit

Permalink
perf events: hw_breakpoints: Don't include asm/hw_breakpoint.h in use…
Browse files Browse the repository at this point in the history
…r 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 <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>
  • Loading branch information
Arnd Bergmann authored and Ingo Molnar committed Dec 8, 2009
1 parent d3a2dbf commit 2ff6cfd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
#include <linux/ioctl.h>
#include <asm/byteorder.h>

#ifdef CONFIG_HAVE_HW_BREAKPOINT
#include <asm/hw_breakpoint.h>
#endif

/*
* User-space ABI bits:
*/
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 2ff6cfd

Please sign in to comment.