Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651180rdb; Mon, 4 Dec 2023 03:58:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0jZz2cSUMqr9LhQgsy5YrqiVvNJcFsnUlYEUGpQau/atlRXrntEZ2gWWcv8PpnDK4mkyp X-Received: by 2002:a05:6a20:bf2a:b0:18f:97c:5baf with SMTP id gc42-20020a056a20bf2a00b0018f097c5bafmr1050009pzb.125.1701691092540; Mon, 04 Dec 2023 03:58:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691092; cv=none; d=google.com; s=arc-20160816; b=e/PCkKr8XTsKTFXJQgWFVs4f8s8d2gCpifqAslzfXql8CZUn23c9J9OpHYeDL1GfJe oLaUnQVQ7yRs5PhW0oLr2ozhQSYkwjLP2QyeK1U9yX3tr+PmEY3W368SdLHhNyc4DzWl 1hOj06HEkyuWAD0oiLOjrdjcon8YuGry0yKfD7yDj5dJnrk/Wph9zElvUkOQCwXGoqGJ X6uenIZHNye3jtp+bwYlVw1R7/k5mB/Bdwh8beH47l7zTqFTfKpfSKGvn6fX2/GxcPHU kVjB9nRxxT0Eqtd6qL4qWTttjdTipFpGdkxFKXTyNs4YUs/F0SJ7pV/TFzXf2CSGPgvb 4TMQ== 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=w5ZO91cSjisaacpfmrCCJ3Xl5M9pATE4YLrvwfPdUzM=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=c0N4N1EK6zcITnRMPok2KhwnT2leCNKeZ/kJjbzSNmy8GeOWZpNuEj9DLNSP2xyvXJ 1FK0u92nATj0exKFe8gWLbcSC0ykDuysC739qnLBemfoYfsrg9h8/JtFkm7brGseHLl0 a/vSZbmh9xYdmLsmd/DWFhJHYjlqhK0B9XbKgHTEsDryWiVAJDnJtmBSu1m68mPfwGRq pd0If5U4r5ykOLoD/4KksFfXPrU8Od9EZAaeoaIoG+3NbP+Wqif2daQWoNNSYh0e9bq2 9e/domxN3iZ0VZ7FWEjbnMk2l/agUXCE67D5x4rv0W08LePFQITsHgQkHRD4dMR2Y9us Lp8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fhAUsG1z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id y126-20020a633284000000b005b881cc9498si7948256pgy.339.2023.12.04.03.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:58:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fhAUsG1z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 45B3780A6ED9; Mon, 4 Dec 2023 03:58:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232846AbjLDL5n (ORCPT + 99 others); Mon, 4 Dec 2023 06:57:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232619AbjLDL5Z (ORCPT ); Mon, 4 Dec 2023 06:57:25 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9337D51 for ; Mon, 4 Dec 2023 03:57:23 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD456C433C9; Mon, 4 Dec 2023 11:57:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691043; bh=IbjKyf0hdtAvqPD1GTOpKbdNaas5xVKf1Zdp6x9MKL4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fhAUsG1z0ypiGchO8PAikx1OrT66HMzPMSZknlE9PFGU1wZ2gvqbzqt16ue4eQtk3 3p8rW9ftXw/QQcUyL86s168LH4Y/0loprenU33OVLXo1eqjTfrPbxmGV7Y3g/oc/jS kQ4YM2YM5X67Q/heA0v2GsWKLxiAeEdU9RF+/AAKJLOdeUgwnw8n0LjiRVNavv1Bme 4H1UjIdhJt8ZF3LIaPc2NmG47cEjahf1tLXwRTZHpSXcBW5DFSstOu872CaoW4zqBA DjkUXumc8hDa6EZjcmB9CoiZaibYiGdDMGHs4TeyHbcK06j54OAFlzrX1ioAjBL5s0 U93KC0jL3MS2g== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 02/20] mips: add asm/syscalls.h header Date: Mon, 4 Dec 2023 12:56:52 +0100 Message-Id: <20231204115710.2247097-3-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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:58:05 -0800 (PST) From: Arnd Bergmann System call prototypes are generally in linux/syscalls.h, but there are a couple of mips specific entry points that are missing there: arch/mips/kernel/signal.c:636:17: error: no previous prototype for 'sys_sigreturn' [-Werror=missing-prototypes] arch/mips/kernel/signal.c:673:17: error: no previous prototype for 'sys_rt_sigreturn' [-Werror=missing-prototypes] arch/mips/kernel/syscall.c:51:16: error: no previous prototype for 'sysm_pipe' [-Werror=missing-prototypes] arch/mips/kernel/mips-mt-fpaff.c:65:17: error: no previous prototype for 'mipsmt_sys_sched_setaffinity' [-Werror=missing-prototypes] arch/mips/kernel/mips-mt-fpaff.c:157:17: error: no previous prototype for 'mipsmt_sys_sched_getaffinity' [-Werror=missing-prototypes] Add these to a new asm/syscalls.h as we have in other architectures. Signed-off-by: Arnd Bergmann --- arch/mips/include/asm/syscalls.h | 33 ++++++++++++++++++++++++++++++++ arch/mips/kernel/linux32.c | 1 + arch/mips/kernel/mips-mt-fpaff.c | 1 + arch/mips/kernel/signal.c | 1 + arch/mips/kernel/signal32.c | 1 + arch/mips/kernel/signal_n32.c | 1 + arch/mips/kernel/signal_o32.c | 1 + arch/mips/kernel/syscall.c | 1 + 8 files changed, 40 insertions(+) create mode 100644 arch/mips/include/asm/syscalls.h diff --git a/arch/mips/include/asm/syscalls.h b/arch/mips/include/asm/syscalls.h new file mode 100644 index 000000000000..59f9c0c9fa0a --- /dev/null +++ b/arch/mips/include/asm/syscalls.h @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _ASM_MIPS_SYSCALLS_H +#define _ASM_MIPS_SYSCALLS_H + +#include +#include + +asmlinkage void sys_sigreturn(void); +asmlinkage void sys_rt_sigreturn(void); +asmlinkage int sysm_pipe(void); +asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, + unsigned long __user *user_mask_ptr); +asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len, + unsigned long __user *user_mask_ptr); +asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_a2, + unsigned offset_a3, unsigned len_a4, + unsigned len_a5); +asmlinkage long sys32_fadvise64_64(int fd, int __pad, + unsigned long a2, unsigned long a3, + unsigned long a4, unsigned long a5, + int flags); +asmlinkage ssize_t sys32_readahead(int fd, u32 pad0, u64 a2, u64 a3, + size_t count); +asmlinkage long sys32_sync_file_range(int fd, int __pad, + unsigned long a2, unsigned long a3, + unsigned long a4, unsigned long a5, + int flags); +asmlinkage void sys32_rt_sigreturn(void); +asmlinkage void sys32_sigreturn(void); +asmlinkage int sys32_sigsuspend(compat_sigset_t __user *uset); +asmlinkage void sysn32_rt_sigreturn(void); + +#endif diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index 6b61be486303..a0c0a7a654e9 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c @@ -42,6 +42,7 @@ #include #include #include +#include #ifdef __MIPSEB__ #define merge_64(r1, r2) ((((r1) & 0xffffffffUL) << 32) + ((r2) & 0xffffffffUL)) diff --git a/arch/mips/kernel/mips-mt-fpaff.c b/arch/mips/kernel/mips-mt-fpaff.c index 67e130d3f038..10172fc4f627 100644 --- a/arch/mips/kernel/mips-mt-fpaff.c +++ b/arch/mips/kernel/mips-mt-fpaff.c @@ -15,6 +15,7 @@ #include #include #include +#include /* * CPU mask used to set process affinity for MT VPEs/TCs with FPUs diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c index 479999b7f2de..ccbf580827f6 100644 --- a/arch/mips/kernel/signal.c +++ b/arch/mips/kernel/signal.c @@ -38,6 +38,7 @@ #include #include #include +#include #include "signal-common.h" diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c index 59b8965433c2..73081d4ee8c1 100644 --- a/arch/mips/kernel/signal32.c +++ b/arch/mips/kernel/signal32.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "signal-common.h" diff --git a/arch/mips/kernel/signal_n32.c b/arch/mips/kernel/signal_n32.c index cfc77b69420a..ff2043d620ba 100644 --- a/arch/mips/kernel/signal_n32.c +++ b/arch/mips/kernel/signal_n32.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "signal-common.h" diff --git a/arch/mips/kernel/signal_o32.c b/arch/mips/kernel/signal_o32.c index 299a7a28ca33..4f0458459650 100644 --- a/arch/mips/kernel/signal_o32.c +++ b/arch/mips/kernel/signal_o32.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "signal-common.h" diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c index ae93a607ddf7..1bfc34a2e5b3 100644 --- a/arch/mips/kernel/syscall.c +++ b/arch/mips/kernel/syscall.c @@ -39,6 +39,7 @@ #include #include #include +#include #include /* -- 2.39.2