From: Naveen N. Rao Date: Tue, 7 Feb 2017 19:54:14 +0000 (+0530) Subject: kprobes: Introduce weak variant of kprobe_exceptions_notify() X-Git-Tag: v4.11-rc1~36^2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc62d0207ae0ebc9d19df68394c0dc925b4a92d1;p=platform%2Fkernel%2Flinux-exynos.git kprobes: Introduce weak variant of kprobe_exceptions_notify() kprobe_exceptions_notify() is not used on some of the architectures such as arm[64] and powerpc anymore. Introduce a weak variant for such architectures. Signed-off-by: Naveen N. Rao Acked-by: Masami Hiramatsu Signed-off-by: Michael Ellerman --- diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 4346010..60a702a 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -1705,6 +1705,12 @@ void unregister_kprobes(struct kprobe **kps, int num) } EXPORT_SYMBOL_GPL(unregister_kprobes); +int __weak __kprobes kprobe_exceptions_notify(struct notifier_block *self, + unsigned long val, void *data) +{ + return NOTIFY_DONE; +} + static struct notifier_block kprobe_exceptions_nb = { .notifier_call = kprobe_exceptions_notify, .priority = 0x7fffffff /* we need to be notified first */