Skip to contentSkip to conversation

sparc64: fix sparse warning in ftrace.c

PATCH Superseded Sam Ravnborg 1 participant 2 messages May 3, 2014 – May 16, 2014

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 33/34 sparc64: fix sparse warning in ftrace.c

Fix following warning:
ftrace.c:123:15: warning: symbol 'prepare_ftrace_return' was not declared. Should it be static?

Add prototype for asm/ftrace.h

---
 arch/sparc/include/asm/ftrace.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/sparc/include/asm/ftrace.h +4 -0
index a1f1650..9ec94ad 100644
@@ -22,4 +22,8 @@ struct dyn_arch_ftrace {
 };
 #endif /*  CONFIG_DYNAMIC_FTRACE */
 
+unsigned long prepare_ftrace_return(unsigned long parent,
+				    unsigned long self_addr,
+				    unsigned long frame_pointer);
+
 #endif /* _ASM_SPARC64_FTRACE */
Signature · 1 line
1.9.0
#1 lore raw

PATCH 33/34 sparc64: fix sparse warning in ftrace.c

Fix following warning:
ftrace.c:123:15: warning: symbol 'prepare_ftrace_return' was not declared. Should it be static?

Add prototype for asm/ftrace.h

---
 arch/sparc/include/asm/ftrace.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/sparc/include/asm/ftrace.h +4 -0
index a1f1650..9ec94ad 100644
@@ -22,4 +22,8 @@ struct dyn_arch_ftrace {
 };
 #endif /*  CONFIG_DYNAMIC_FTRACE */
 
+unsigned long prepare_ftrace_return(unsigned long parent,
+				    unsigned long self_addr,
+				    unsigned long frame_pointer);
+
 #endif /* _ASM_SPARC64_FTRACE */
Signature · 1 line
1.9.0