Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1576001

[PATCH 2/3] arm: kprobes: remove kprobe_exceptions_notify

From "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject [PATCH 2/3] arm: kprobes: remove kprobe_exceptions_notify
Date 2017-02-07 21:00 +0100
Message-ID <t8k5J-78e-33@gated-at.bofh.it> (permalink)
References <t8k5H-78e-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


... as the weak variant will do.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
---
 arch/arm/probes/kprobes/core.c     | 10 ----------
 arch/arm64/kernel/probes/kprobes.c |  6 ------
 2 files changed, 16 deletions(-)

diff --git a/arch/arm/probes/kprobes/core.c b/arch/arm/probes/kprobes/core.c
index a4ec240ee7ba..f89db1e278cf 100644
--- a/arch/arm/probes/kprobes/core.c
+++ b/arch/arm/probes/kprobes/core.c
@@ -391,16 +391,6 @@ int __kprobes kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr)
 	return 0;
 }
 
-int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
-				       unsigned long val, void *data)
-{
-	/*
-	 * notify_die() is currently never called on ARM,
-	 * so this callback is currently empty.
-	 */
-	return NOTIFY_DONE;
-}
-
 /*
  * When a retprobed function returns, trampoline_handler() is called,
  * calling the kretprobe's handler. We construct a struct pt_regs to
diff --git a/arch/arm64/kernel/probes/kprobes.c b/arch/arm64/kernel/probes/kprobes.c
index f0593c92279b..769becae3e90 100644
--- a/arch/arm64/kernel/probes/kprobes.c
+++ b/arch/arm64/kernel/probes/kprobes.c
@@ -371,12 +371,6 @@ int __kprobes kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr)
 	return 0;
 }
 
-int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
-				       unsigned long val, void *data)
-{
-	return NOTIFY_DONE;
-}
-
 static void __kprobes kprobe_handler(struct pt_regs *regs)
 {
 	struct kprobe *p, *cur_kprobe;
-- 
2.11.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-02-07 21:00 +0100
  [PATCH 3/3] powerpc: kprobes: remove kprobe_exceptions_notify() "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-02-07 21:00 +0100
  [PATCH 2/3] arm: kprobes: remove kprobe_exceptions_notify "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-02-07 21:00 +0100
  Re: [PATCH 1/3] kprobes: introduce weak variant of  kprobe_exceptions_notify Masami Hiramatsu <mhiramat@kernel.org> - 2017-02-08 03:00 +0100
  Re: [PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify Michael Ellerman <mpe@ellerman.id.au> - 2017-02-10 04:50 +0100
    Re: [PATCH 1/3] kprobes: introduce weak variant of  kprobe_exceptions_notify Ingo Molnar <mingo@kernel.org> - 2017-02-10 09:00 +0100
    Re: [PATCH 1/3] kprobes: introduce weak variant of  kprobe_exceptions_notify "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-02-13 09:40 +0100

csiph-web