From: Ananth N Mavinakayanahalli Fix kprobes compilation breakage on sparc64 caused due to kprobes-list-all-active-probes-in-the-system.patch Signed-off-by: Ananth N Mavinakayanahalli Signed-off-by: Andrew Morton --- kernel/kprobes.c | 6 ++++++ 1 file changed, 6 insertions(+) diff -puN kernel/kprobes.c~kprobes-list-all-active-probes-in-the-system-fix kernel/kprobes.c --- a/kernel/kprobes.c~kprobes-list-all-active-probes-in-the-system-fix +++ a/kernel/kprobes.c @@ -780,6 +780,12 @@ int __kprobes register_kretprobe(struct return -ENOSYS; } +static int __kprobes pre_handler_kretprobe(struct kprobe *p, + struct pt_regs *regs) +{ + return 0; +} + #endif /* ARCH_SUPPORTS_KRETPROBES */ void __kprobes unregister_kretprobe(struct kretprobe *rp) _