]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/hw_breakpoint.h
hw-breakpoints: Fix build on !perf architectures
[karo-tx-linux.git] / include / linux / hw_breakpoint.h
index 18710e0c84bd5680a49b8c7470a820481e2bc409..0b98cbf76da7adc5e9ef6b8f47d0b51e52ffd501 100644 (file)
@@ -16,6 +16,8 @@ enum {
        HW_BREAKPOINT_X = 4,
 };
 
+#ifdef CONFIG_HAVE_HW_BREAKPOINT
+
 static inline unsigned long hw_breakpoint_addr(struct perf_event *bp)
 {
        return bp->attr.bp_addr;
@@ -31,7 +33,6 @@ static inline int hw_breakpoint_len(struct perf_event *bp)
        return bp->attr.bp_len;
 }
 
-#ifdef CONFIG_HAVE_HW_BREAKPOINT
 extern struct perf_event *
 register_user_hw_breakpoint(unsigned long addr,
                            int len,