Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch: add missing prepare_ftrace_return() prototypes

The prototype for prepare_ftrace_return() is architecture specific and
can't be in a global header. Since it's normally called from assembly,
it doesn't really need a prototype, but we get a warning if it's missing:

arch/csky/kernel/ftrace.c:147:6: error: no previous prototype for 'prepare_ftrace_return' [-Werror=missing-prototypes]
arch/microblaze/kernel/ftrace.c:22:6: error: no previous prototype for 'prepare_ftrace_return' [-Werror=missing-prototypes]
arch/mips/kernel/ftrace.c:305:6: error: no previous prototype for 'prepare_ftrace_return' [-Werror=missing-prototypes]

Add the prototypes for the three architectures that don't already have
one in asm/ftrace.h.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+9
+4
arch/csky/include/asm/ftrace.h
··· 26 26 27 27 struct dyn_arch_ftrace { 28 28 }; 29 + 30 + void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr, 31 + unsigned long frame_pointer); 32 + 29 33 #endif /* !__ASSEMBLY__ */ 30 34 #endif /* __ASM_CSKY_FTRACE_H */
+1
arch/microblaze/include/asm/ftrace.h
··· 10 10 #ifndef __ASSEMBLY__ 11 11 extern void _mcount(void); 12 12 extern void ftrace_call_graph(void); 13 + void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr); 13 14 #endif 14 15 15 16 #ifdef CONFIG_DYNAMIC_FTRACE
+4
arch/mips/include/asm/ftrace.h
··· 85 85 }; 86 86 87 87 #endif /* CONFIG_DYNAMIC_FTRACE */ 88 + 89 + void prepare_ftrace_return(unsigned long *parent_ra_addr, unsigned long self_ra, 90 + unsigned long fp); 91 + 88 92 #endif /* __ASSEMBLY__ */ 89 93 #endif /* CONFIG_FUNCTION_TRACER */ 90 94 #endif /* _ASM_MIPS_FTRACE_H */