diff options
Diffstat (limited to 'include/asm-i386/kprobes.h')
| -rw-r--r-- | include/asm-i386/kprobes.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/asm-i386/kprobes.h b/include/asm-i386/kprobes.h index ca916a892877..27cac050a60e 100644 --- a/include/asm-i386/kprobes.h +++ b/include/asm-i386/kprobes.h | |||
| @@ -40,6 +40,7 @@ typedef u8 kprobe_opcode_t; | |||
| 40 | 40 | ||
| 41 | #define JPROBE_ENTRY(pentry) (kprobe_opcode_t *)pentry | 41 | #define JPROBE_ENTRY(pentry) (kprobe_opcode_t *)pentry |
| 42 | #define ARCH_SUPPORTS_KRETPROBES | 42 | #define ARCH_SUPPORTS_KRETPROBES |
| 43 | #define arch_remove_kprobe(p) do {} while (0) | ||
| 43 | 44 | ||
| 44 | void kretprobe_trampoline(void); | 45 | void kretprobe_trampoline(void); |
| 45 | 46 | ||
| @@ -76,14 +77,6 @@ static inline void restore_interrupts(struct pt_regs *regs) | |||
| 76 | local_irq_enable(); | 77 | local_irq_enable(); |
| 77 | } | 78 | } |
| 78 | 79 | ||
| 79 | #ifdef CONFIG_KPROBES | ||
| 80 | extern int kprobe_exceptions_notify(struct notifier_block *self, | 80 | extern int kprobe_exceptions_notify(struct notifier_block *self, |
| 81 | unsigned long val, void *data); | 81 | unsigned long val, void *data); |
| 82 | #else /* !CONFIG_KPROBES */ | ||
| 83 | static inline int kprobe_exceptions_notify(struct notifier_block *self, | ||
| 84 | unsigned long val, void *data) | ||
| 85 | { | ||
| 86 | return 0; | ||
| 87 | } | ||
| 88 | #endif | ||
| 89 | #endif /* _ASM_KPROBES_H */ | 82 | #endif /* _ASM_KPROBES_H */ |
