Skip to content

Commit af1fc74

Browse files
committed
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>
1 parent 1c4de49 commit af1fc74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/openrisc/kernel/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ handle_signal(struct ksignal *ksig, struct pt_regs *regs)
229229
* mode below.
230230
*/
231231

232-
int do_signal(struct pt_regs *regs, int syscall)
232+
static int do_signal(struct pt_regs *regs, int syscall)
233233
{
234234
struct ksignal ksig;
235235
unsigned long continue_addr = 0;

0 commit comments

Comments
 (0)