diff options
author | Stafford Horne <shorne@gmail.com> | 2023-08-20 19:02:55 +0300 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2023-08-21 10:12:11 +0300 |
commit | af1fc7402e560f27ea5a92b7ee0572e3d1e389c5 (patch) | |
tree | 6b004e61bffe4adae8095cae6ce095c0bafc16e3 /arch/openrisc | |
parent | 1c4de499e6134ecb048bbd80133b213c705de3e5 (diff) | |
download | linux-af1fc7402e560f27ea5a92b7ee0572e3d1e389c5.tar.xz |
openrisc: Declare do_signal function as static
When compiling with W=1 enabling -Wmissing-prototypes the compiler
warns:
arch/openrisc/kernel/signal.c:227:5: error: no previous prototype for 'do_signal' [-Werror=missing-prototypes]
Fix this by declaring the function a static as it is not used outside of
the scope of this file.
Reported-by: Arnd Bergmann <arnd@arndb.de>
Closes: https://lore.kernel.org/linux-kernel/20230810141947.1236730-17-arnd@kernel.org/
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/kernel/signal.c b/arch/openrisc/kernel/signal.c index 3fbf00330043..e2f21a5d8ad9 100644 --- a/arch/openrisc/kernel/signal.c +++ b/arch/openrisc/kernel/signal.c @@ -229,7 +229,7 @@ handle_signal(struct ksignal *ksig, struct pt_regs *regs) * mode below. */ -int do_signal(struct pt_regs *regs, int syscall) +static int do_signal(struct pt_regs *regs, int syscall) { struct ksignal ksig; unsigned long continue_addr = 0; |