diff options
author | Sven Schnelle <svens@stackframe.org> | 2019-07-21 05:00:39 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-07-21 05:01:55 -0400 |
commit | f5e03d3a04978d2866f82cb11cc7a6b808c8ce07 (patch) | |
tree | c95fc560adee17d00a0a141a76db94a39648f00a /arch/parisc/include | |
parent | f1a3b43cc1f50c6ee5ba582f2025db3dea891208 (diff) |
parisc: add kprobe_fault_handler()
Add kprobe_fault_handler() to fix compilation for PA-RISC.
On PA-RISC we actually don't need that function as the recovery counter
is restored after interrupt. See the PA-RISC 2.0 Architecture Manual,
pg. 4-8, Figure 4-4: "Interruption Processing".
Fixes: b98cca444d28 ("mm, kprobes: generalize and rename notify_page_fault() as kprobe_page_fault()")
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include')
-rw-r--r-- | arch/parisc/include/asm/kprobes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/kprobes.h b/arch/parisc/include/asm/kprobes.h index e09cf2deeafe..904034da4974 100644 --- a/arch/parisc/include/asm/kprobes.h +++ b/arch/parisc/include/asm/kprobes.h | |||
@@ -50,6 +50,10 @@ struct kprobe_ctlblk { | |||
50 | 50 | ||
51 | int __kprobes parisc_kprobe_break_handler(struct pt_regs *regs); | 51 | int __kprobes parisc_kprobe_break_handler(struct pt_regs *regs); |
52 | int __kprobes parisc_kprobe_ss_handler(struct pt_regs *regs); | 52 | int __kprobes parisc_kprobe_ss_handler(struct pt_regs *regs); |
53 | static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr) | ||
54 | { | ||
55 | return 0; | ||
56 | } | ||
53 | 57 | ||
54 | #endif /* CONFIG_KPROBES */ | 58 | #endif /* CONFIG_KPROBES */ |
55 | #endif /* _PARISC_KPROBES_H */ | 59 | #endif /* _PARISC_KPROBES_H */ |