From nobody Mon Dec 29 00:36:52 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D102C4167B for ; Mon, 4 Dec 2023 11:59:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233518AbjLDL7K (ORCPT ); Mon, 4 Dec 2023 06:59:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233355AbjLDL6c (ORCPT ); Mon, 4 Dec 2023 06:58:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 095781BB for ; Mon, 4 Dec 2023 03:57:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B065C433C8; Mon, 4 Dec 2023 11:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691064; bh=Q7aKYl16T9hR/qQEjfnP6gJmVaTl43MdZYWT4vZwXfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LzcRxiI031g/Z1uZIBzHwViMtMXVNlngq1Ad9smqiSwZpt4mon1kpcdJOzDK1U38L t9ughdAYz4mRMcsmfCQhz6dC1cHL4a+cu9ndFnyiVorg/YtvfVly2w6S0qQr2iOOIs UgzVeUp13PzUxlwhUcTG53mmeLWpfwtPR/uYmfEDlxn86sWJr3bJz5k38QYIjT7uIL vWm2IakasQKJZBcZ1KKPi2atPF5fBIHV0vh9u1FnRLfhQesYB3z7TYBg+P6Tdxnemb 2TA9B3eFMU1c0BxB/ektdBk0i4+9/i2eMBK2i+c208NKX4QbYwJSO+hcK/MFqEbF03 ilIvzwo5E4lOA== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 13/20] mips: add missing declarations Date: Mon, 4 Dec 2023 12:57:03 +0100 Message-Id: <20231204115710.2247097-14-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231204115710.2247097-1-arnd@kernel.org> References: <20231204115710.2247097-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann These are three more functions that are only called from assembler and only need a declaration to avoid the -Wmissing-prototypes warnings: arch/mips/kernel/signal.c:904:17: error: no previous prototype for 'do_noti= fy_resume' [-Werror=3Dmissing-prototypes] arch/mips/kernel/traps.c:370:6: error: no previous prototype for 'show_regi= sters' [-Werror=3Dmissing-prototypes] arch/mips/kernel/smp.c:352:17: error: no previous prototype for 'start_seco= ndary' [-Werror=3Dmissing-prototypes] Signed-off-by: Arnd Bergmann --- arch/mips/include/asm/processor.h | 2 ++ arch/mips/include/asm/signal.h | 1 + arch/mips/include/asm/smp.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/proc= essor.h index ae2cd37a38f0..ca7662cc65a7 100644 --- a/arch/mips/include/asm/processor.h +++ b/arch/mips/include/asm/processor.h @@ -402,4 +402,6 @@ extern int mips_set_process_fp_mode(struct task_struct = *task, #define GET_FP_MODE(task) mips_get_process_fp_mode(task) #define SET_FP_MODE(task,value) mips_set_process_fp_mode(task, value) =20 +void show_registers(struct pt_regs *regs); + #endif /* _ASM_PROCESSOR_H */ diff --git a/arch/mips/include/asm/signal.h b/arch/mips/include/asm/signal.h index 23d6b8015c79..8de81ccef7ad 100644 --- a/arch/mips/include/asm/signal.h +++ b/arch/mips/include/asm/signal.h @@ -31,5 +31,6 @@ extern struct mips_abi mips_abi_32; =20 extern int protected_save_fp_context(void __user *sc); extern int protected_restore_fp_context(void __user *sc); +void do_notify_resume(struct pt_regs *regs, void *unused, __u32 thread_inf= o_flags); =20 #endif /* _ASM_SIGNAL_H */ diff --git a/arch/mips/include/asm/smp.h b/arch/mips/include/asm/smp.h index f3b18b4a5e44..19190e413223 100644 --- a/arch/mips/include/asm/smp.h +++ b/arch/mips/include/asm/smp.h @@ -61,6 +61,8 @@ extern asmlinkage void smp_bootstrap(void); =20 extern void calculate_cpu_foreign_map(void); =20 +asmlinkage void start_secondary(void); + /* * this function sends a 'reschedule' IPI to another CPU. * it goes straight through and wastes no time serializing --=20 2.39.2