mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
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>
This commit is contained in:
parent
1c4de499e6
commit
af1fc7402e
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ handle_signal(struct ksignal *ksig, struct pt_regs *regs)
|
||||||
* mode below.
|
* mode below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int do_signal(struct pt_regs *regs, int syscall)
|
static int do_signal(struct pt_regs *regs, int syscall)
|
||||||
{
|
{
|
||||||
struct ksignal ksig;
|
struct ksignal ksig;
|
||||||
unsigned long continue_addr = 0;
|
unsigned long continue_addr = 0;
|
||||||
|
|
Loading…
Reference in a new issue