From patchwork Thu Jun 20 16:23:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 806005 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp379369wrt; Thu, 20 Jun 2024 09:28:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJL8wPJnyir/nlplUOOxRLK5biz5KC3z+ljdaAePdl+aJ7yKxTNR9tu5ZmTHs1Zz0Se1iGIZmSzkOsFythNEwj X-Google-Smtp-Source: AGHT+IHLWbW/nV5c4t+3h8wGfIw8M8GywoQIjeim6h6K62jkr0JdTTsqAev55KNlblMBOCLDQBkL X-Received: by 2002:a05:6102:3959:b0:48f:1395:d07a with SMTP id ada2fe7eead31-48f1395d12bmr4803355137.10.1718900882305; Thu, 20 Jun 2024 09:28:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718900882; cv=pass; d=google.com; s=arc-20160816; b=Cd0Rf1gK081d3GnSKK+fI27/+jY476o9Z4NdCqXDMqiYD3DrjuQ57645PT5llWZDUt GmX0P/cuEXnL4Pzo2mLxn4PuJvmf2NqcUw9RDHCZyWrHMO6H0tKfcyzO6tZVN+RrgHL1 qaeBwYy5rNktlimsiIkuBw6UmYf1TxSmU0h3mROUTezw6f7qJXXFlKJMinLLDcu1OT4r 60N37A1IonZMCX3h1TmaxBa0FCFZ8nrQF4u13VFq6obVbtI4qqbbvG0kaHVxnm+E1woX chZ1cgYBCcscLS47HzH2ZGpdOPLUfjq/Z/gxH6R2SXfurEOzDetNQQEtQ6NRPPjdMCss K9eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=O+42lI9Ix2yF3yWrdA4ldwIUvI3kBOi/acfsUpFDsEk=; fh=xSIq547Z/8+2mwrThk5NmWwnmadq1eVmQ35PeXz4rpA=; b=RfMyy0eGdy1VYVLz1NSY9dZjwUmZyKtLTGqxvdOBII3LDBgwTdc/QrAgiaGV44PFVF ucGXrZ5EjMcD1BIfmQNTNC+78e4ZP0oxe/BUOm+bH+Kjs+yXOwRnRbROQUXQyC2gYam2 3uGhz/frZkdQeg30YDrguzPHa8dZlDfMVK9S1kbeua3F7LYoCxUIOSt2cml6VTCaTae0 82zBy+EfgvflTqJt8RXxCd+S+ofALi/pz/rYBmcyClUeGIFMjQMhySp68ZvZyOOumcOx 5BPgYdeif+m2kZs+c51QsYQ1aHEflCq9QUtjfCct+tSYWP7HfLtSSI8dTEBDblWYzumV a6Pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="abvyrJ/X"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ada2fe7eead31-48da44b52ddsi2646193137.676.2024.06.20.09.28.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 09:28:02 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="abvyrJ/X"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E599E38930C1 for ; Thu, 20 Jun 2024 16:28:01 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by sourceware.org (Postfix) with ESMTPS id 050F63894C14 for ; Thu, 20 Jun 2024 16:25:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 050F63894C14 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 050F63894C14 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=145.40.73.55 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718900703; cv=none; b=BKRyHV0Ok/MdlTV3pwcicvTWRH8db7snzdFi0UCqeNHZi2E9ZjRiECBbKw8tFLKO3wDQn93bUWG3TcuDCFdlXp7pbek8fyt7T7LA8DzCYpIfmQs0I2mtqSE0PqDs/9KPlOxZIJ1P6d0oMZyc+CyLCQEP6a7cia97KxX3kycJjbc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718900703; c=relaxed/simple; bh=9tNBDm896BjzUxmnfvW1e6haCDwe3E/atZfPgTf6dvM=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=XBGYPzCx1T0zxVE2gyn8Fpv3BUXNq1K/YQt+PZnenGzV0HTemNU5q5ZLRqheyJdamuAgeq0v6qAIFSvFJ7J6MnYlr7ZXIH6MX+ScvXK1hl3/VL1RmJhxpMXfJyOOqViyxMPKtheKZgOMaBUxHZIhYOz19APi6mYMFmpjR2EbUME= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 5D49ECE274D; Thu, 20 Jun 2024 16:24:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AB57C4AF07; Thu, 20 Jun 2024 16:24:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718900698; bh=9tNBDm896BjzUxmnfvW1e6haCDwe3E/atZfPgTf6dvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=abvyrJ/X+WgKBcKLB26W63xGzrJswPTiNJDtrvePABOWadxaiMVdFVIIrjjZH7EMt i3yfbG9sxIhKzIMCfECn8jajIwt5EnHTKwWgtPNsnEm6eH5VPX4iHwPOT/KLGXygLR Y8UtKQhQMTPuDEykuGSASDGG1jSbMq6hu59HuuOGBaXNiJXkV1zooHon61XOPITCpE SFmK3OLp8gXcumhP0tivnIEFTlCHa7lpiLvSg28jj4kABCTLi6W7v8y4Et1OD6DAcD 5NN8lrWx/ZkRbGl97bKzVpQphPBlvW7EqUaJZymCAafGjzXa4xCR+daUY33mNKb8As 9i6pj/PklBLgw== From: Arnd Bergmann To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Helge Deller , linux-parisc@vger.kernel.org, "David S. Miller" , Andreas Larsson , sparclinux@vger.kernel.org, Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N . Rao" , linuxppc-dev@lists.ozlabs.org, Brian Cain , linux-hexagon@vger.kernel.org, Guo Ren , linux-csky@vger.kernel.org, Heiko Carstens , linux-s390@vger.kernel.org, Rich Felker , John Paul Adrian Glaubitz , linux-sh@vger.kernel.org, "H. Peter Anvin" , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, libc-alpha@sourceware.org, musl@lists.openwall.com, ltp@lists.linux.it Subject: [PATCH 12/15] s390: remove native mmap2() syscall Date: Thu, 20 Jun 2024 18:23:13 +0200 Message-Id: <20240620162316.3674955-13-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240620162316.3674955-1-arnd@kernel.org> References: <20240620162316.3674955-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org From: Arnd Bergmann The mmap2() syscall has never been used on 64-bit s390x and should have been removed as part of 5a79859ae0f3 ("s390: remove 31 bit support"). Remove it now. Signed-off-by: Arnd Bergmann Acked-by: Heiko Carstens --- arch/s390/kernel/syscall.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/arch/s390/kernel/syscall.c b/arch/s390/kernel/syscall.c index dc2355c623d6..50cbcbbaa03d 100644 --- a/arch/s390/kernel/syscall.c +++ b/arch/s390/kernel/syscall.c @@ -38,33 +38,6 @@ #include "entry.h" -/* - * Perform the mmap() system call. Linux for S/390 isn't able to handle more - * than 5 system call parameters, so this system call uses a memory block - * for parameter passing. - */ - -struct s390_mmap_arg_struct { - unsigned long addr; - unsigned long len; - unsigned long prot; - unsigned long flags; - unsigned long fd; - unsigned long offset; -}; - -SYSCALL_DEFINE1(mmap2, struct s390_mmap_arg_struct __user *, arg) -{ - struct s390_mmap_arg_struct a; - int error = -EFAULT; - - if (copy_from_user(&a, arg, sizeof(a))) - goto out; - error = ksys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, a.offset); -out: - return error; -} - #ifdef CONFIG_SYSVIPC /* * sys_ipc() is the de-multiplexer for the SysV IPC calls.