From patchwork Mon May 14 09:46:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 135712 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1532239lji; Mon, 14 May 2018 02:48:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrNmzTEf/jFuS/C+ZwDTXDzJPkVDFpb/tqayQn2g4JNEokPaUzFfgeW0/GzkATUiNxqcjfY X-Received: by 2002:a17:902:6687:: with SMTP id e7-v6mr3182170plk.242.1526291289672; Mon, 14 May 2018 02:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526291289; cv=none; d=google.com; s=arc-20160816; b=NSpp7M+633dC3u27xhCil9uy/ajHFSjh4qJO6/KlOXbV/tCU0YL3Fs/psPDj2+hrW0 c6Ot78/23qKUzn1i9d9h5Edjy8i2qI9A1axQLKOcUAlH2ODZXoOT6xn/rmq3EU5kIfz8 +XfTMXL5v4lWJC3IsV0QZOonJwbrCWRIcRXLrD8cb0eP04oyJd14T2GAnhRH+xsjJZtb hfa69TD2GFiuWu6QvfrgkHltk/N9yCFNhmFed3sahVWpSM9zU28DsUdjJLNgoAJ1kYpM xhgoKlhVvVC3ICaDF/5FypMiA+qwbyf66xYwZy8TnJHoFEnkLhPiOCKToJApuHGjzVTg kxYA== 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=tkrwPcfoYHayfWqQKdOnlMkdnkExGzaG665O9T6ZpkRXAKRftvWdoOqjEqaVLUHvhO wRs9ypovLJNyahrM8xI52d28OITmipAYAwrep/MmZxxFTBHRhTbKyjTbHiepdvntv/QO 5wj/YrRuQlf0ux4jaZwLArNFH0YIJtv2+PUltwP025/P27Zb07sMiX6QRMLSt1wpeA9C g+N1CcylVehoTVJTDLfnotH0FyHGmQk6wS51yUehkbLqMd2IlRgwg9AzGiJz9/AGz40o aYBji1nesqr+u4RYuA6d1mEY02WGp/MKh7AHPHaJxWCjVJJHtR06F8diCdNVjC9dgslC agMA== 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 t8-v6si3367871pgc.142.2018.05.14.02.48.09; Mon, 14 May 2018 02:48:09 -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 S1752715AbeENJsH (ORCPT + 29 others); Mon, 14 May 2018 05:48:07 -0400 Received: from foss.arm.com ([217.140.101.70]:38356 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752222AbeENJsE (ORCPT ); Mon, 14 May 2018 05:48:04 -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 BB05A1AD7; Mon, 14 May 2018 02:48:03 -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 C533C3F25D; Mon, 14 May 2018 02:48:01 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, catalin.marinas@arm.com, dave.martin@arm.com, james.morse@arm.com, linux@dominikbrodowski.net, linux-fsdevel@vger.kernel.org, marc.zyngier@arm.com, mark.rutland@arm.com, viro@zeniv.linux.org.uk, will.deacon@arm.com Subject: [PATCH 16/18] arm64: use SYSCALL_DEFINE6() for mmap Date: Mon, 14 May 2018 10:46:38 +0100 Message-Id: <20180514094640.27569-17-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180514094640.27569-1-mark.rutland@arm.com> References: <20180514094640.27569-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;