Skip to contentSkip to conversation

kprobes/parisc: remove arch_kprobe_on_func_entry()

PATCH In review Jisheng Zhang 2 participants 2 messages Aug 21, 2019 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kprobes/parisc: remove arch_kprobe_on_func_entry()

The common kprobes provides a weak implementation of arch_kprobe_on_func_entry(). The parisc version is the same as the common version, so remove it.

---
 arch/parisc/kernel/kprobes.c | 4 ----
 1 file changed, 4 deletions(-)
arch/parisc/kernel/kprobes.c +0 -4
index 5d7f2692ac5a..77ec51818916 100644
@@ -281,10 +281,6 @@ int __kprobes arch_trampoline_kprobe(struct kprobe *p)
 {
 	return p->addr == trampoline_p.addr;
 }
-bool arch_kprobe_on_func_entry(unsigned long offset)
-{
-	return !offset;
-}
 
 int __init arch_init_kprobes(void)
 {
Signature · 1 line
2.23.0.rc1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jisheng Zhang

The common kprobes provides a weak implementation of arch_kprobe_on_func_entry(). The parisc version is the same as the common version, so remove it.

Quoted 22 lines
---
 arch/parisc/kernel/kprobes.c | 4 ----
 1 file changed, 4 deletions(-)
arch/parisc/kernel/kprobes.c +0 -4
index 5d7f2692ac5a..77ec51818916 100644
@@ -281,10 +281,6 @@ int __kprobes arch_trampoline_kprobe(struct kprobe *p)
 {
 	return p->addr == trampoline_p.addr;
 }
-bool arch_kprobe_on_func_entry(unsigned long offset)
-{
-	return !offset;
-}
 
 int __init arch_init_kprobes(void)
 {
Signature · 1 line
2.23.0.rc1