From patchwork Tue Nov 28 07:12:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wujie Duan X-Patchwork-Id: 13470554 Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Greylist: delayed 381 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 27 Nov 2023 23:18:48 PST Received: from mail.linx-info.com (unknown [121.69.130.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B1F56B7; Mon, 27 Nov 2023 23:18:48 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.linx-info.com (Postfix) with ESMTP id 1771B3211A9; Tue, 28 Nov 2023 15:12:27 +0800 (CST) X-Virus-Scanned: Debian amavisd-new at linx-info.com Received: from mail.linx-info.com ([127.0.0.1]) by localhost (mail.linx-info.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CQQD6n4os8vE; Tue, 28 Nov 2023 15:12:26 +0800 (CST) Received: from linx.. (unknown [172.16.0.253]) by mail.linx-info.com (Postfix) with ESMTP id A6E683211A2; Tue, 28 Nov 2023 15:12:26 +0800 (CST) From: Wujie Duan To: tsbogend@alpha.franken.de Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Wujie Duan Subject: [PATCH] Mark symbols static where possible for mips/kernel Date: Tue, 28 Nov 2023 15:12:25 +0800 Message-Id: <20231128071225.801111-1-wjduan@linx-info.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 We get 1 error when building kernel with -Werror=missing-prototypes Signed-off-by: Wujie Duan --- 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;