From patchwork Fri Jun 1 11:24:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 137518 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp806942lji; Fri, 1 Jun 2018 04:27:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLUZWblilItIrE7/Z8UXwh4wYoMCbq1s4tvzyEhTZshUVyhbPNy7jKjckwfge6asy+ZC4Xa X-Received: by 2002:a62:c6d8:: with SMTP id x85-v6mr113803pfk.249.1527852423909; Fri, 01 Jun 2018 04:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527852423; cv=none; d=google.com; s=arc-20160816; b=XR+02/SmYRYUtnLTnuvNir4lw2L9dREv+wTRcBRvReqo5WbPYo4QM2MXBCBThmtmFR Q+sFuuav3YvTCUthr3Kmj/oAa4uFORtXlGxWrmllq9HnsQ6qDKQiDFHvG7s3GtvT43Zw bi/vJT02/Gat7IQ+UpPpNgMStGz7ZwI0M5owoNM+dJaUixr2s9U3OtHNIqJvWanAqwMY teaSNvq+wakePGXziFcN8z18RLfKch8cHZPFtTCH6kzj1QAx+4EJTS7CjiRiTUeYUimO P+ssksIVPO7faTwziOtpO6A2pnMHLjzb8g3tcz43Qny357E3wd0QLqm+2B+TgDVUbMg3 yQtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=tpwknUO5hW4xd9o9VI1aWSsObL7O/6tJQbYg+VGdd9Q=; b=Pw27M1ua4iUbWpcy4G+yJi9QQnW5Tjq3NEtn0xRv+M9DMRCiP1H40zeW1gll6lOGiG ZmdMA6Ut3pI8vjfxYKn5+/WqI597St2Jl9zq73uLzkFoq85pVGGY/+U6CylqClGxhzb/ D1pzyOauVA+WpRJnj6z7FNk9iwmqYnxiZXy13YL/hBidpP9QfFY5lSu23gjjet1C+uTz 8MqucNbpaT+C9S0LlJrKa14d0qi6gWKdeD7JlhFyS9O6z1YXtveQtAt7nGc1nZWxjawc kcahbfB2gKtd9BIyCkyVeIor7xbkbnG55tekKDI3DdD0WctB/BGeXXT8iWTeuUsntgnk jBNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si39397641pfc.9.2018.06.01.04.27.03; Fri, 01 Jun 2018 04:27:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751988AbeFAL1B (ORCPT + 30 others); Fri, 1 Jun 2018 07:27:01 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50376 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968AbeFALZV (ORCPT ); Fri, 1 Jun 2018 07:25:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B9E4D1713; Fri, 1 Jun 2018 04:25:21 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A3D453F25D; Fri, 1 Jun 2018 04:25:20 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, will.deacon@arm.com, catalin.marinas@arm.com Cc: Mark Rutland Subject: [PATCHv2 17/19] arm64: use SYSCALL_DEFINE6() for mmap Date: Fri, 1 Jun 2018 12:24:39 +0100 Message-Id: <20180601112441.37810-18-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180601112441.37810-1-mark.rutland@arm.com> References: <20180601112441.37810-1-mark.rutland@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We don't currently annotate our mmap implementation as a syscall, as we need to do to use pt_regs syscall wrappers. Let's mark it as a real syscall. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/sys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.11.0 diff --git a/arch/arm64/kernel/sys.c b/arch/arm64/kernel/sys.c index a82c3f7a9a90..2ad1497a184e 100644 --- a/arch/arm64/kernel/sys.c +++ b/arch/arm64/kernel/sys.c @@ -27,9 +27,9 @@ #include #include -asmlinkage long sys_mmap(unsigned long addr, unsigned long len, - unsigned long prot, unsigned long flags, - unsigned long fd, off_t off) +SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, + unsigned long, prot, unsigned long, flags, + unsigned long, fd, off_t, off) { if (offset_in_page(off) != 0) return -EINVAL;