aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/kdebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/kdebug.h')
-rw-r--r--include/asm-powerpc/kdebug.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/asm-powerpc/kdebug.h b/include/asm-powerpc/kdebug.h
index 1c73d2ec9b59..295f0162c608 100644
--- a/include/asm-powerpc/kdebug.h
+++ b/include/asm-powerpc/kdebug.h
@@ -6,8 +6,19 @@
6 6
7#include <linux/notifier.h> 7#include <linux/notifier.h>
8 8
9extern int register_page_fault_notifier(struct notifier_block *); 9/*
10extern int unregister_page_fault_notifier(struct notifier_block *); 10 * These are only here because kprobes.c wants them to implement a
11 * blatant layering violation. Will hopefully go away soon once all
12 * architectures are updated.
13 */
14static inline int register_page_fault_notifier(struct notifier_block *nb)
15{
16 return 0;
17}
18static inline int unregister_page_fault_notifier(struct notifier_block *nb)
19{
20 return 0;
21}
11extern struct atomic_notifier_head powerpc_die_chain; 22extern struct atomic_notifier_head powerpc_die_chain;
12 23
13/* Grossly misnamed. */ 24/* Grossly misnamed. */
@@ -17,7 +28,6 @@ enum die_val {
17 DIE_DABR_MATCH, 28 DIE_DABR_MATCH,
18 DIE_BPT, 29 DIE_BPT,
19 DIE_SSTEP, 30 DIE_SSTEP,
20 DIE_PAGE_FAULT,
21}; 31};
22 32
23#endif /* __KERNEL__ */ 33#endif /* __KERNEL__ */