aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/kprobes.h
diff options
context:
space:
mode:
authorAnil S Keshavamurthy <anil.s.keshavamurthy@intel.com>2006-01-09 23:52:42 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:01:40 -0500
commit41dead49ccb4d7f0a34d56478f487342a3c3ab2b (patch)
tree6782eeedac60688b328394971066dad1b6bfa302 /include/asm-powerpc/kprobes.h
parent2d14e39da8712cff8a92298f464a25afb4283ccf (diff)
[PATCH] kprobes: cleanup include/asm/kprobes.h
The arch specific kprobes.h files never gets included when CONFIG_KPROBES is turned off. Hence check for CONFIG_KPROBES is not appropriate here in this arch specific kprobes.h files. Also the below defined function kprobes_exception_notify() is not needed when CONFIG_KPROBES is off. Compile tested for both CONFIG_KPROBES=y and N. Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-powerpc/kprobes.h')
-rw-r--r--include/asm-powerpc/kprobes.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/asm-powerpc/kprobes.h b/include/asm-powerpc/kprobes.h
index 7c98e547c6d8..42ece411435a 100644
--- a/include/asm-powerpc/kprobes.h
+++ b/include/asm-powerpc/kprobes.h
@@ -71,15 +71,7 @@ struct kprobe_ctlblk {
71 struct prev_kprobe prev_kprobe; 71 struct prev_kprobe prev_kprobe;
72}; 72};
73 73
74#ifdef CONFIG_KPROBES
75extern int kprobe_exceptions_notify(struct notifier_block *self, 74extern int kprobe_exceptions_notify(struct notifier_block *self,
76 unsigned long val, void *data); 75 unsigned long val, void *data);
77#else /* !CONFIG_KPROBES */
78static inline int kprobe_exceptions_notify(struct notifier_block *self,
79 unsigned long val, void *data)
80{
81 return 0;
82}
83#endif
84#endif /* __KERNEL__ */ 76#endif /* __KERNEL__ */
85#endif /* _ASM_POWERPC_KPROBES_H */ 77#endif /* _ASM_POWERPC_KPROBES_H */