Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2653208rdb; Mon, 4 Dec 2023 04:01:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOrOlvAVGrO8bauEZYfW9CC5R8v/fCDp/kzkpbBYgolZ0H04hU2ZE6OW3KAqK8R/07shpq X-Received: by 2002:a17:902:db06:b0:1d0:7535:8bc2 with SMTP id m6-20020a170902db0600b001d075358bc2mr4240038plx.105.1701691285147; Mon, 04 Dec 2023 04:01:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691285; cv=none; d=google.com; s=arc-20160816; b=rW/9hJxHL0eVhwDdc9aw+CsNXZssbcbJvE42nKfutfg7GJQro6Zm4WPU9l7hl2MuAA iAhRhQ5+rezTm8IueKICUCQEuvQ5E9VteUocQEJZNFyC40IfR21Q2KnfAAzBxwCowIVz sFN1PaYgO93BxbA96D0XEttChAelOt4z83F+S/JxQ3rsJgR5ltlbIfjuF5KLHBUI7nND xqkFnW3QIyCwukct2apUG+jAnOfcGkuIk8gzobb+g9jIcy/jVymc5SDduZPZtxmKkICt mYc8EYPWBM6SvXxIpc0yTvn/E9xNyON5WBcJkiAmasXDvpVgpxtb7OZLchHASUGZ1/fO COTw== 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=HSajpdA1TTKk7gmomjgKyqEKeYxcz4bg2vCkol59WkY=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=1K6uuYV/ZoLZ4H3++PmHUufrVKXp6p/A/ppMq58cvgXttyr1bF23VJJbuN5Wr3J4Lx EOfd86wivVvegOk9V1rR/KOZ+YzrgfLtpMulZ3jMp7Jo5tEFFA66K/2BdbyWpKiosxGy 2HCBhvo+euxBNwVHDkkxNKIBK+kQtx40lDnwHSnD3OTO60uJNXbwd1a1wEnGWW1o2Yhm dvsWRA4udsKbJypqtj7WexCfSTh/Kb70lTdIq48QW6KV3sWe6DbiyTvPvENB+7rGX1mV YSv1pomPFHa5K9at5D7E1Mp0dHH/7eg1IWGEqi0k2ecx0skLcFqx34stOA2d/ewnk4wG 94cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oWgMPbij; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id 1-20020a631041000000b005be27af74basi7553214pgq.33.2023.12.04.04.01.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:01:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oWgMPbij; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id BE53F8087510; Mon, 4 Dec 2023 04:00:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbjLDL6N (ORCPT + 99 others); Mon, 4 Dec 2023 06:58:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233068AbjLDL5h (ORCPT ); Mon, 4 Dec 2023 06:57:37 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01BA2184 for ; Mon, 4 Dec 2023 03:57:30 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAAE4C433C7; Mon, 4 Dec 2023 11:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691049; bh=63/jrMa/1loCjLp+mnSNzgGTPIfRhB1ZC/FTGaLdVmE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oWgMPbijBeVLdjCj9onCM1zc45ZCBY4f4h2YP/vOZexqp1X6OiLPGG3ETE6EpP+QA 0F3D3D0mts/0ZBtUr70kNlb/ZWFberEuPga79PQeYG/62NYiI/QFd3zJI7NVn63LMx PzYoL+gDiYRoqPuJ/HcsBQuP9ZP9JDQHEnopS7pdplT0HaQ74AySyWYQWdMbHssSvM hA8FLtKQnnqSEQCJ1s3LXBxFfjWMd1arydqFl2ssZssN9V/Fv7GCqIAxHzpuR7JF8K /SxY9PHmaWJ3djBpl6ncH+JvrfRCSHNcfNDsnuKprN2N6wg4zUg98kVJTKZuF3gPMC Mafzor6S8T7Iw== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 05/20] mips: signal: move sigcontext declarations to header Date: Mon, 4 Dec 2023 12:56:55 +0100 Message-Id: <20231204115710.2247097-6-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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:00:34 -0800 (PST) From: Arnd Bergmann Function declarations should be in a shared header to ensure the prototypes match the definition: arch/mips/kernel/signal.c:439:5: error: no previous prototype for 'setup_sigcontext' [-Werror=missing-prototypes] arch/mips/kernel/signal.c:516:5: error: no previous prototype for 'restore_sigcontext' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/mips/kernel/signal-common.h | 3 +++ arch/mips/kernel/signal_n32.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/kernel/signal-common.h b/arch/mips/kernel/signal-common.h index f50d48435c68..136eb20ac024 100644 --- a/arch/mips/kernel/signal-common.h +++ b/arch/mips/kernel/signal-common.h @@ -40,4 +40,7 @@ _restore_fp_context(void __user *fpregs, void __user *csr); extern asmlinkage int _save_msa_all_upper(void __user *buf); extern asmlinkage int _restore_msa_all_upper(void __user *buf); +extern int setup_sigcontext(struct pt_regs *, struct sigcontext __user *); +extern int restore_sigcontext(struct pt_regs *, struct sigcontext __user *); + #endif /* __SIGNAL_COMMON_H */ diff --git a/arch/mips/kernel/signal_n32.c b/arch/mips/kernel/signal_n32.c index ff2043d620ba..139d2596b0d4 100644 --- a/arch/mips/kernel/signal_n32.c +++ b/arch/mips/kernel/signal_n32.c @@ -33,9 +33,6 @@ */ #define __NR_N32_restart_syscall 6214 -extern int setup_sigcontext(struct pt_regs *, struct sigcontext __user *); -extern int restore_sigcontext(struct pt_regs *, struct sigcontext __user *); - struct ucontextn32 { u32 uc_flags; s32 uc_link; -- 2.39.2