From patchwork Mon Aug 11 13:37:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 35206 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C5DDA20AEC for ; Mon, 11 Aug 2014 13:37:46 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf38589002oag.4 for ; Mon, 11 Aug 2014 06:37:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=9Cef4QgU/XZ2o/KfegSwwCeDJWBWUZSLDOiKz+8jn6Y=; b=SlO4MfRiwoxT8eF8K1tZfs90FTMQioYZ3DXtk5iiksk1BUAcIaRBPnxZEPRtL+tlnA GIJwSwcmQcpc7xQSQeOuE0MAafgSZBhVSzPFtLck2DPHTz+p/9bfvoy8m9UokKjz+649 Grxr258Avg+4+eVmGbRNAbxXz9R5UblTogMX042EjFXR6u8oSCdL5RpzGolwTcgtZJs8 MihhulvfE0EHzvh4l73R9KqckhxQoyUfZO56kJsozcHIlyw/fw5R3BzWbyBBJBvf639q 5GCkWz7CmG5nYviH5yUy2qZcdYX2v7rD5Yk4TUPG82WdiVAf/8Di02G0J56J7e1walim LhiQ== X-Gm-Message-State: ALoCoQk7Im9+q9eTz+hU+p/nD507UmcVm8bCbCK2FuZmDHrcy010GGQSSJ7v7STYK3FwIPMGg7zO X-Received: by 10.43.153.196 with SMTP id lb4mr14437835icc.2.1407764266108; Mon, 11 Aug 2014 06:37:46 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.11 with SMTP id y11ls1331944qgy.23.gmail; Mon, 11 Aug 2014 06:37:46 -0700 (PDT) X-Received: by 10.220.172.8 with SMTP id j8mr36507680vcz.32.1407764266026; Mon, 11 Aug 2014 06:37:46 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id ir5si6504639vcb.82.2014.08.11.06.37.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Aug 2014 06:37:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hq11so11592044vcb.10 for ; Mon, 11 Aug 2014 06:37:45 -0700 (PDT) X-Received: by 10.220.2.136 with SMTP id 8mr470280vcj.17.1407764265916; Mon, 11 Aug 2014 06:37:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp165471vcb; Mon, 11 Aug 2014 06:37:45 -0700 (PDT) X-Received: by 10.66.232.166 with SMTP id tp6mr3308642pac.127.1407764265219; Mon, 11 Aug 2014 06:37:45 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si9892538pdd.134.2014.08.11.06.37.44 for ; Mon, 11 Aug 2014 06:37:45 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753544AbaHKNh3 (ORCPT + 26 others); Mon, 11 Aug 2014 09:37:29 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:32808 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751529AbaHKNh2 (ORCPT ); Mon, 11 Aug 2014 09:37:28 -0400 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.34]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id s7BDb0wo007546; Mon, 11 Aug 2014 14:37:00 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 1536F1AE2D98; Mon, 11 Aug 2014 14:37:13 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Will Deacon , Arnd Bergmann , David Herrmann Subject: [PATCH 2/2] asm-generic: add memfd_create system call to unistd.h Date: Mon, 11 Aug 2014 14:37:08 +0100 Message-Id: <1407764228-7904-2-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1407764228-7904-1-git-send-email-will.deacon@arm.com> References: <1407764228-7904-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.deacon@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Commit 9183df25fe7b ("shm: add memfd_create() syscall") added a new system call (memfd_create) but didn't update the asm-generic unistd header. This patch adds the new system call to the asm-generic version of unistd.h so that it can be used by architectures such as arm64. Cc: Arnd Bergmann Cc: David Herrmann Signed-off-by: Will Deacon Reviewed-by: David Herrmann --- include/uapi/asm-generic/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index f1afd607f043..11d11bc5c78f 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -703,9 +703,11 @@ __SYSCALL(__NR_renameat2, sys_renameat2) __SYSCALL(__NR_seccomp, sys_seccomp) #define __NR_getrandom 278 __SYSCALL(__NR_getrandom, sys_getrandom) +#define __NR_memfd_create 279 +__SYSCALL(__NR_memfd_create, sys_memfd_create) #undef __NR_syscalls -#define __NR_syscalls 279 +#define __NR_syscalls 280 /* * All syscalls below here should go away really,