diff options
| author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-11-23 16:30:12 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-11-23 18:09:53 -0500 |
| commit | fa7c27ee9394fc0d52404b2a89882e95868a60b9 (patch) | |
| tree | 8f43c75075ebf05d20920d2d9877833473cdfffb /include | |
| parent | 1b145ae58035f30353d78d25bea665091df9b438 (diff) | |
hw-breakpoints: Fix misordered ifdef
Fix a misplaced ifdef. We need the perf event headers also in
off-case to avoid the following build error:
include/linux/hw_breakpoint.h:94: error: expected declaration specifiers or '...' before 'perf_callback_t'
include/linux/hw_breakpoint.h:102: error: expected declaration specifiers or '...' before 'perf_callback_t'
include/linux/hw_breakpoint.h:109: error: expected declaration specifiers or '...' before 'perf_callback_t'
include/linux/hw_breakpoint.h:116: error: expected declaration specifiers or '...' before 'perf_callback_t'
Reported-by: Kisskb-bot by Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <1259011812-8093-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/hw_breakpoint.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 76a48ab9a81e..c9f7f7c7b0e0 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h | |||
| @@ -15,10 +15,11 @@ enum { | |||
| 15 | }; | 15 | }; |
| 16 | 16 | ||
| 17 | #ifdef __KERNEL__ | 17 | #ifdef __KERNEL__ |
| 18 | #ifdef CONFIG_HAVE_HW_BREAKPOINT | ||
| 19 | 18 | ||
| 20 | #include <linux/perf_event.h> | 19 | #include <linux/perf_event.h> |
| 21 | 20 | ||
| 21 | #ifdef CONFIG_HAVE_HW_BREAKPOINT | ||
| 22 | |||
| 22 | static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) | 23 | static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) |
| 23 | { | 24 | { |
| 24 | return bp->attr.bp_addr; | 25 | return bp->attr.bp_addr; |
