Эх сурвалжийг харах

powerpc/ftrace: Add prototype for prepare_ftrace_return()

Sparse emits a warning: symbol 'prepare_ftrace_return' was not
declared. Should it be static? prepare_ftrace_return() is called from
assembler and should not be static.

Add a prototype for it to asm-prototypes.h and include that in ftrace.c.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tobin C. Harding 8 жил өмнө
parent
commit
b3a7864c6f

+ 2 - 0
arch/powerpc/include/asm/asm-prototypes.h

@@ -120,6 +120,8 @@ extern s64 __ashrdi3(s64, int);
 extern int __cmpdi2(s64, s64);
 extern int __cmpdi2(s64, s64);
 extern int __ucmpdi2(u64, u64);
 extern int __ucmpdi2(u64, u64);
 
 
+/* tracing */
 void _mcount(void);
 void _mcount(void);
+unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip);
 
 
 #endif /* _ASM_POWERPC_ASM_PROTOTYPES_H */
 #endif /* _ASM_POWERPC_ASM_PROTOTYPES_H */

+ 1 - 0
arch/powerpc/kernel/ftrace.c

@@ -21,6 +21,7 @@
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/list.h>
 #include <linux/list.h>
 
 
+#include <asm/asm-prototypes.h>
 #include <asm/cacheflush.h>
 #include <asm/cacheflush.h>
 #include <asm/code-patching.h>
 #include <asm/code-patching.h>
 #include <asm/ftrace.h>
 #include <asm/ftrace.h>