Skip to content

Commit 4ec4b8b

Browse files
rddunlapjcmvbkbc
authored andcommitted
xtensa: signal: include headers for function prototypes
Add <asm/syscall.h> to satisfy the xtensa_rt_sigreturn() prototype warning. Add <asm/processor.h> to satisfy the do_notify_resume() prototype warning. arch/xtensa/kernel/signal.c:246:17: warning: no previous prototype for 'xtensa_rt_sigreturn' [-Wmissing-prototypes] arch/xtensa/kernel/signal.c:525:6: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes] 525 | void do_notify_resume(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 ccf9d27 commit 4ec4b8b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

arch/xtensa/include/asm/processor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ struct mm_struct;
220220
extern unsigned long __get_wchan(struct task_struct *p);
221221

222222
void init_arch(bp_tag_t *bp_start);
223+
void do_notify_resume(struct pt_regs *regs);
223224

224225
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
225226
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->areg[1])

arch/xtensa/kernel/signal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#include <linux/uaccess.h>
2727
#include <asm/cacheflush.h>
2828
#include <asm/coprocessor.h>
29+
#include <asm/processor.h>
30+
#include <asm/syscall.h>
2931
#include <asm/unistd.h>
3032

3133
extern struct task_struct *coproc_owners[];

0 commit comments

Comments
 (0)