public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Mark symbols static where possible for mips/kernel
@ 2023-11-28  7:12 Wujie Duan
  2023-11-28  9:00 ` Thomas Bogendoerfer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wujie Duan @ 2023-11-28  7:12 UTC (permalink / raw)
  To: tsbogend; +Cc: linux-mips, linux-kernel, Wujie Duan

We get 1 error when building kernel with -Werror=missing-prototypes

Signed-off-by: Wujie Duan <wjduan@linx-info.com>
---
 arch/mips/kernel/signal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c
index 479999b7f2de..b99c0e9bb5c6 100644
--- a/arch/mips/kernel/signal.c
+++ b/arch/mips/kernel/signal.c
@@ -435,7 +435,7 @@ int protected_restore_fp_context(void __user *sc)
 	return err ?: sig;
 }
 
-int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
+static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
 {
 	int err = 0;
 	int i;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-30 11:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-28  7:12 [PATCH] Mark symbols static where possible for mips/kernel Wujie Duan
2023-11-28  9:00 ` Thomas Bogendoerfer
2023-11-28 22:51 ` kernel test robot
2023-11-30 11:00 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox