Skip to contentSkip to conversation

sparc64: fix sparse warning in kprobes.c

PATCH Superseded Sam Ravnborg 1 participant 2 messages May 3, 2014 – May 16, 2014 SPARC + UltraSPARC (sparc/sparc64)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 32/34 sparc64: fix sparse warning in kprobes.c

Fix following warning:
kprobes.c:419:27: warning: symbol 'kprobe_trap' was not declared. Should it be static?

Add proper prototype

---
 arch/sparc/include/asm/kprobes.h | 2 ++
 1 file changed, 2 insertions(+)
arch/sparc/include/asm/kprobes.h +2 -0
index b2613c28..a145d79 100644
@@ -46,4 +46,6 @@ struct kprobe_ctlblk {
 int kprobe_exceptions_notify(struct notifier_block *self,
 			     unsigned long val, void *data);
 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
+asmlinkage void __kprobes kprobe_trap(unsigned long trap_level,
+				      struct pt_regs *regs);
 #endif /* _SPARC64_KPROBES_H */
Signature · 1 line
1.9.0
#1 lore raw

PATCH 32/34 sparc64: fix sparse warning in kprobes.c

Fix following warning:
kprobes.c:419:27: warning: symbol 'kprobe_trap' was not declared. Should it be static?

Add proper prototype

---
 arch/sparc/include/asm/kprobes.h | 2 ++
 1 file changed, 2 insertions(+)
arch/sparc/include/asm/kprobes.h +2 -0
index b2613c28..a145d79 100644
@@ -46,4 +46,6 @@ struct kprobe_ctlblk {
 int kprobe_exceptions_notify(struct notifier_block *self,
 			     unsigned long val, void *data);
 int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
+asmlinkage void __kprobes kprobe_trap(unsigned long trap_level,
+				      struct pt_regs *regs);
 #endif /* _SPARC64_KPROBES_H */
Signature · 1 line
1.9.0