arch: add missing prepare_ftrace_return() prototypes
authorArnd Bergmann <arnd@arndb.de>
Wed, 9 Aug 2023 10:07:56 +0000 (12:07 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 23 Nov 2023 10:32:32 +0000 (11:32 +0100)
commit1d6571a8794ba276a078a8ca9d84ccc157f8b6c3
tree1a9554d4a8ca12972665aba37224ce7a012f91d7
parent42874e4eb35bdfc54f8514685e50434098ba4f6c
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>
arch/csky/include/asm/ftrace.h
arch/microblaze/include/asm/ftrace.h
arch/mips/include/asm/ftrace.h