From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f72.google.com (mail-lf0-f72.google.com [209.85.215.72]) by kanga.kvack.org (Postfix) with ESMTP id B27D16B007E for ; Thu, 2 Jun 2016 07:42:54 -0400 (EDT) Received: by mail-lf0-f72.google.com with SMTP id h68so23087993lfh.2 for ; Thu, 02 Jun 2016 04:42:54 -0700 (PDT) Received: from mout.kundenserver.de (mout.kundenserver.de. [217.72.192.75]) by mx.google.com with ESMTPS id 8si881264wmu.15.2016.06.02.04.42.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jun 2016 04:42:53 -0700 (PDT) From: Arnd Bergmann Subject: Re: [PATCH 5/8] x86, pkeys: allocation/free syscalls Date: Wed, 01 Jun 2016 22:48:18 +0200 Message-ID: <5864297.Wx4gj9qW7E@wuerfel> In-Reply-To: <20160531152822.FE8D405E@viggo.jf.intel.com> References: <20160531152814.36E0B9EE@viggo.jf.intel.com> <20160531152822.FE8D405E@viggo.jf.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: owner-linux-mm@kvack.org List-ID: To: Dave Hansen Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, dave.hansen@linux.intel.com On Tuesday, May 31, 2016 8:28:22 AM CEST Dave Hansen wrote: > diff -puN arch/x86/entry/syscalls/syscall_32.tbl~pkeys-116-syscalls-allocation arch/x86/entry/syscalls/syscall_32.tbl > --- a/arch/x86/entry/syscalls/syscall_32.tbl~pkeys-116-syscalls-allocation 2016-05-31 08:27:49.150115539 -0700 > +++ b/arch/x86/entry/syscalls/syscall_32.tbl 2016-05-31 08:27:49.176116712 -0700 > @@ -387,3 +387,5 @@ > 378 i386 preadv2 sys_preadv2 compat_sys_preadv2 > 379 i386 pwritev2 sys_pwritev2 compat_sys_pwritev2 > 380 i386 pkey_mprotect sys_pkey_mprotect > +381 i386 pkey_alloc sys_pkey_alloc > +382 i386 pkey_free sys_pkey_free > diff -puN arch/x86/entry/syscalls/syscall_64.tbl~pkeys-116-syscalls-allocation arch/x86/entry/syscalls/syscall_64.tbl > --- a/arch/x86/entry/syscalls/syscall_64.tbl~pkeys-116-syscalls-allocation 2016-05-31 08:27:49.152115629 -0700 > +++ b/arch/x86/entry/syscalls/syscall_64.tbl 2016-05-31 08:27:49.177116758 -0700 > @@ -336,6 +336,8 @@ > 327 64 preadv2 sys_preadv2 > 328 64 pwritev2 sys_pwritev2 > 329 common pkey_mprotect sys_pkey_mprotect > +330 common pkey_alloc sys_pkey_alloc > +331 common pkey_free sys_pkey_free > > # > # x32-specific system call numbers start at 512 to avoid cache impact > Could you also add the system call numbers to include/uapi/asm-generic/unistd.h at the same time? Even if the support is x86 specific for the forseeable future, it may be good to reserve the number just in case. The other architecture specific syscall lists are usually left to the individual arch maintainers, most a lot of the newer architectures share this table. Arnd -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org