]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
openrisc: Declare do_signal function as static
authorStafford Horne <shorne@gmail.com>
Sun, 20 Aug 2023 16:02:55 +0000 (17:02 +0100)
committerStafford Horne <shorne@gmail.com>
Mon, 21 Aug 2023 07:12:11 +0000 (08:12 +0100)
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>
arch/openrisc/kernel/signal.c

index 3fbf003300430503ea5efe7e9c2f6d5781792541..e2f21a5d8ad9a9b4b5bcc3fa7a555f7841c4d2e7 100644 (file)
@@ -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;