Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753923AbdCOW2N (ORCPT ); Wed, 15 Mar 2017 18:28:13 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:35028 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753891AbdCOW0e (ORCPT ); Wed, 15 Mar 2017 18:26:34 -0400 MIME-Version: 1.0 X-Originating-IP: [212.159.75.221] In-Reply-To: <20170313144521.28127-1-shorne@gmail.com> References: <20170313144521.28127-1-shorne@gmail.com> From: James Hogan Date: Wed, 15 Mar 2017 22:26:32 +0000 X-Google-Sender-Auth: gcXUlGSk-R34IxlyB9n0VEu1p-M Message-ID: Subject: Re: [PATCH v2] generic syscalls: Wire up statx syscall To: Stafford Horne Cc: LKML , Thomas Gleixner , Al Viro , David Howells , Catalin Marinas , Will Deacon , ARM Kernel List , Arnd Bergmann , linux-arch@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1602 Lines: 42 On 13 March 2017 at 14:45, Stafford Horne wrote: > The new syscall statx is implemented as generic code, so enable it > for architectures like openrisc which use the generic syscall table. > > Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available") > Cc: Thomas Gleixner > Cc: Al Viro > Cc: David Howells > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-kernel@lists.infradead.org > Signed-off-by: Stafford Horne > --- > Change in v2: > - Add a few more Cc's to get attention of the right people > - Add a fixes tag for better audit > > 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 9b1462e..a076cf1 100644 > --- a/include/uapi/asm-generic/unistd.h > +++ b/include/uapi/asm-generic/unistd.h > @@ -730,9 +730,11 @@ __SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect) > __SYSCALL(__NR_pkey_alloc, sys_pkey_alloc) > #define __NR_pkey_free 290 > __SYSCALL(__NR_pkey_free, sys_pkey_free) > +#define __NR_statx 291 > +__SYSCALL(__NR_statx, sys_statx) > > #undef __NR_syscalls > -#define __NR_syscalls 291 > +#define __NR_syscalls 292 Out of interest, anybody know OTOH which other stat syscalls statx supersedes (such that they could at some point be disabled by default in asm-generic for new arches, and implemented in userspace)? Cheers -- James Hogan