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


Groups > linux.kernel > #1593793

[PATCH 2/2] arm64: kprobes: remove kprobe_exceptions_notify

From "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] arm64: kprobes: remove kprobe_exceptions_notify
Date 2017-03-07 00:10 +0100
Message-ID <ti9Vn-6Tr-5@gated-at.bofh.it> (permalink)
References <ti6b8-49O-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Commit fc62d0207ae0 ("kprobes: Introduce weak variant of
kprobe_exceptions_notify()") introduces a generic empty version of the
function for architectures that don't need special handling, like arm64.
As such, remove the arch/arm64/ specific handler.

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

diff --git a/arch/arm64/kernel/probes/kprobes.c b/arch/arm64/kernel/probes/kprobes.c
index 2a07aae5b8a2..c5c45942fb6e 100644
--- a/arch/arm64/kernel/probes/kprobes.c
+++ b/arch/arm64/kernel/probes/kprobes.c
@@ -372,12 +372,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.1

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


Thread

Re: [PATCH 2/3] arm: kprobes: remove kprobe_exceptions_notify "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-03-06 19:20 +0100
  Re: [PATCH 2/3] arm: kprobes: remove kprobe_exceptions_notify Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-03-06 19:50 +0100
    Re: [PATCH 2/3] arm: kprobes: remove kprobe_exceptions_notify "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-03-06 20:10 +0100
      [PATCH 1/2] arm: kprobes: remove kprobe_exceptions_notify "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-03-06 20:10 +0100
      [PATCH 2/2] arm64: kprobes: remove kprobe_exceptions_notify "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-03-07 00:10 +0100

csiph-web