]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:18:17 +0000 (17:18 +0200)
commitf80d72069ede35765d4eb738c855d2cfed734f9a
tree1a19e73be5a60b26b98af7599c6c0a99f3f78ef7
parent45d47bd9b96e7874b98dbcc7602fe2826c5d62a6
riscv: signal: fix missing prototype warning

commit b5c3aca86d2698c4850b6ee8b341938025d2780c upstream.

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: e2c0cdfba7f6 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/include/asm/signal.h [new file with mode: 0644]
arch/riscv/kernel/signal.c