Skip to content

Commit 8cf543c

Browse files
rddunlapjcmvbkbc
authored andcommitted
xtensa: ptrace: add prototypes to <asm/ptrace.h>
Add prototype for do_syscall_trace_enter() to asm/ptrace.h. Move prototype for do_syscall_trace_leave() there to be consistent. Fixes a build warning: arch/xtensa/kernel/ptrace.c:545:5: warning: no previous prototype for 'do_syscall_trace_enter' [-Wmissing-prototypes] 545 | int do_syscall_trace_enter(struct pt_regs *regs) Signed-off-by: Randy Dunlap <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Max Filippov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 4052a37 commit 8cf543c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

arch/xtensa/include/asm/ptrace.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ static inline unsigned long regs_return_value(struct pt_regs *regs)
106106
return regs->areg[2];
107107
}
108108

109+
int do_syscall_trace_enter(struct pt_regs *regs);
110+
void do_syscall_trace_leave(struct pt_regs *regs);
111+
109112
#else /* __ASSEMBLY__ */
110113

111114
# include <asm/asm-offsets.h>

arch/xtensa/kernel/ptrace.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ long arch_ptrace(struct task_struct *child, long request,
541541
return ret;
542542
}
543543

544-
void do_syscall_trace_leave(struct pt_regs *regs);
545544
int do_syscall_trace_enter(struct pt_regs *regs)
546545
{
547546
if (regs->syscall == NO_SYSCALL)

0 commit comments

Comments
 (0)