Skip to content

Commit b5c3aca

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
riscv: signal: fix missing prototype warning
Fix the warning: arch/riscv/kernel/signal.c:316:27: warning: no previous prototype for function 'do_notify_resume' [-Wmissing-prototypes] asmlinkage __visible void do_notify_resume(struct pt_regs *regs, All other functions in the file are static & none of the existing headers stood out as an obvious location. Create signal.h to hold the declaration. Fixes: e2c0cdf ("RISC-V: User-facing API") Signed-off-by: Conor Dooley <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 568035b commit b5c3aca

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

arch/riscv/include/asm/signal.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
3+
#ifndef __ASM_SIGNAL_H
4+
#define __ASM_SIGNAL_H
5+
6+
#include <uapi/asm/signal.h>
7+
#include <uapi/asm/ptrace.h>
8+
9+
asmlinkage __visible
10+
void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags);
11+
12+
#endif

arch/riscv/kernel/signal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include <asm/ucontext.h>
1717
#include <asm/vdso.h>
18+
#include <asm/signal.h>
1819
#include <asm/signal32.h>
1920
#include <asm/switch_to.h>
2021
#include <asm/csr.h>

0 commit comments

Comments
 (0)