Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651776rdb; Mon, 4 Dec 2023 03:59:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfegwylhponz+lu/UgHtBJg3Sg6mhMp/POwJR5BQI5FHJBnCCT45pZS2ukB8DQ8jvJ1fAT X-Received: by 2002:a17:903:124f:b0:1d0:5933:be9c with SMTP id u15-20020a170903124f00b001d05933be9cmr4058074plh.5.1701691179622; Mon, 04 Dec 2023 03:59:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691179; cv=none; d=google.com; s=arc-20160816; b=No1KgS6noWBwpxfJ5E59KqWnkrUuU8KxzIHDkhmDN5E02QAl8ayHynae16Eh9p00hg CIs8HzojyRp4PoNsAMFGvY+hHiA/uD0Y8oF/m2NuyTNfJfEiyirvA+Ye4uE754o0WeaG /XR+Uu5pX9hQBcUlR0CMOdRc0ugUq1IvlbpRocjK9fp+mFZQWKyia1be9d1qjn+Cv1Zr 8VI3KAjFslw1bL1JTddxUSvlsyRcx9BOW/AypCQQzF4N4x4mqhizolaFKgDWlK0BxwZM 4Q2JKImyrzLe70+9TMBzebT+sMQEkUKVWeQOs1FKYZt/fVIWqRCaDyaWXrMgi3F3/rzF 1F4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=c2Sqtl2jWLbQAWnSWtQBipHOXb7kLMLoh95ugpGrOho=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=Wvukl3pADD9Vfkj3hdUx6SRv7XAoGKF9cIoTMv8JgHxQePowvbhsz5Dsp+XrLNYLNV 2hN3gIKGGKWr/ovapMgGb//kmzVm0/S1/E3IEq0/VGAVYCfUN6e93s9x5m0PtOAIce/V 3ximoO0t3rHtWpk2ILKk8Ya73VuWVXkanw6OmelFIWYj6Hd3wLXdlvzHIlvIqowVjYxM plROrwy41O6b3m1JffqurGs0lmRmxDQxsxwlgGukYFSy/Fzia77l2Hihbjm30rGeUnck XOfBW449fc7FJvt4DrPmQA2KHQLnZOiRYjrLC0n82jPjxcw/g4Uq8DsqdjER8fU7jqEx FOUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LzcRxiI0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id f7-20020a170902ce8700b001cf8d316dfcsi8096586plg.236.2023.12.04.03.59.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:59:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LzcRxiI0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id CD9028096591; Mon, 4 Dec 2023 03:59:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343974AbjLDL7H (ORCPT + 99 others); Mon, 4 Dec 2023 06:59:07 -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: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:59:37 -0800 (PST) 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_notify_resume' [-Werror=missing-prototypes] arch/mips/kernel/traps.c:370:6: error: no previous prototype for 'show_registers' [-Werror=missing-prototypes] arch/mips/kernel/smp.c:352:17: error: no previous prototype for 'start_secondary' [-Werror=missing-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/processor.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) +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; 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_info_flags); #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); extern void calculate_cpu_foreign_map(void); +asmlinkage void start_secondary(void); + /* * this function sends a 'reschedule' IPI to another CPU. * it goes straight through and wastes no time serializing -- 2.39.2