diff options
-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 18710e0c84bd..0b98cbf76da7 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h | |||
@@ -16,6 +16,8 @@ enum { | |||
16 | HW_BREAKPOINT_X = 4, | 16 | HW_BREAKPOINT_X = 4, |
17 | }; | 17 | }; |
18 | 18 | ||
19 | #ifdef CONFIG_HAVE_HW_BREAKPOINT | ||
20 | |||
19 | static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) | 21 | static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) |
20 | { | 22 | { |
21 | return bp->attr.bp_addr; | 23 | return bp->attr.bp_addr; |
@@ -31,7 +33,6 @@ static inline int hw_breakpoint_len(struct perf_event *bp) | |||
31 | return bp->attr.bp_len; | 33 | return bp->attr.bp_len; |
32 | } | 34 | } |
33 | 35 | ||
34 | #ifdef CONFIG_HAVE_HW_BREAKPOINT | ||
35 | extern struct perf_event * | 36 | extern struct perf_event * |
36 | register_user_hw_breakpoint(unsigned long addr, | 37 | register_user_hw_breakpoint(unsigned long addr, |
37 | int len, | 38 | int len, |