]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
kprobes: Introduce weak variant of kprobe_exceptions_notify()
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Tue, 7 Feb 2017 19:54:14 +0000 (01:24 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Feb 2017 03:42:49 +0000 (14:42 +1100)
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 <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
kernel/kprobes.c

index 43460104f119d070841ba1af1a51536dc8017f61..60a702a056845e378dee52d13f37b11ead9c0926 100644 (file)
@@ -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 */