]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: signal: fix missing prototype warning
authorConor Dooley <conor.dooley@microchip.com>
Sun, 14 Aug 2022 14:12:37 +0000 (15:12 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 18 Aug 2022 21:42:52 +0000 (14:42 -0700)
commit79add682473e5e813f53c4862f2df1bb454fcee9
treedc0b5c6c73b270e8e32db63f37e9b025ab0e5030
parent34a3249ab33a1690f58cd6e91a0208887337d3e0
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: 84df39b7f5b8 ("RISC-V: User-facing API")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220814141237.493457-4-mail@conchuod.ie
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/signal.h [new file with mode: 0644]
arch/riscv/kernel/signal.c