summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-08-10 22:51:54 +0200
committerHelge Deller <deller@gmx.de>2023-08-10 22:51:54 +0200
commit2794f8ecb483b680610968423179005758a5ce63 (patch)
treed5027af347b8a260d2f0455c0cc64bf4c0c882a9 /arch
parentb967f48d0240fa9b3ac0bfd7135647985016826e (diff)
downloadlinux-stable-2794f8ecb483b680610968423179005758a5ce63.tar.gz
linux-stable-2794f8ecb483b680610968423179005758a5ce63.tar.bz2
linux-stable-2794f8ecb483b680610968423179005758a5ce63.zip
parisc: ftrace: Add declaration for ftrace_function_trampoline()
Make sparse happy by adding declaration for ftrace_function_trampoline(). Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/include/asm/ftrace.h4
-rw-r--r--arch/parisc/kernel/ftrace.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/ftrace.h b/arch/parisc/include/asm/ftrace.h
index a7cf0d05ccf4..f1cc1ee3a647 100644
--- a/arch/parisc/include/asm/ftrace.h
+++ b/arch/parisc/include/asm/ftrace.h
@@ -12,6 +12,10 @@ extern void mcount(void);
extern unsigned long sys_call_table[];
extern unsigned long return_address(unsigned int);
+struct ftrace_regs;
+extern void ftrace_function_trampoline(unsigned long parent,
+ unsigned long self_addr, unsigned long org_sp_gr3,
+ struct ftrace_regs *fregs);
#ifdef CONFIG_DYNAMIC_FTRACE
extern void ftrace_caller(void);
diff --git a/arch/parisc/kernel/ftrace.c b/arch/parisc/kernel/ftrace.c
index 4d392e4ed358..d1defb9ede70 100644
--- a/arch/parisc/kernel/ftrace.c
+++ b/arch/parisc/kernel/ftrace.c
@@ -53,7 +53,7 @@ static void __hot prepare_ftrace_return(unsigned long *parent,
static ftrace_func_t ftrace_func;
-void notrace __hot ftrace_function_trampoline(unsigned long parent,
+asmlinkage void notrace __hot ftrace_function_trampoline(unsigned long parent,
unsigned long self_addr,
unsigned long org_sp_gr3,
struct ftrace_regs *fregs)