From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765794AbcINV7d (ORCPT ); Wed, 14 Sep 2016 17:59:33 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33842 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756664AbcINV7c (ORCPT ); Wed, 14 Sep 2016 17:59:32 -0400 MIME-Version: 1.0 In-Reply-To: <1473887291-18384-2-git-send-email-khuey@kylehuey.com> References: <1473887291-18384-1-git-send-email-khuey@kylehuey.com> <1473887291-18384-2-git-send-email-khuey@kylehuey.com> From: Dmitry Safonov <0x7f454c46@gmail.com> Date: Thu, 15 Sep 2016 00:59:09 +0300 Message-ID: Subject: Re: [RESEND][PATCH v2 1/3] syscalls,x86 Expose arch_prctl on x86-32. To: Kyle Huey Cc: "Robert O'Callahan" , linux-kernel@vger.kernel.org, Borislav Petkov , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Al Viro , Milosz Tanski , "Dmitry V. Levin" , David Howells , Zach Brown , Eric B Munson , Peter Zijlstra , Jiri Slaby , "Michael S. Tsirkin" , Andrey Ryabinin , Paul Gortmaker , Borislav Petkov , Dmitry Vyukov , Dmitry Safonov , Mateusz Guzik Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2016-09-15 0:08 GMT+03:00 Kyle Huey : > Signed-off-by: Kyle Huey > --- > arch/x86/entry/syscalls/syscall_32.tbl | 1 + > arch/x86/kernel/process.c | 80 ++++++++++++++++++++++++++++++++++ > arch/x86/kernel/process_64.c | 66 ---------------------------- > 3 files changed, 81 insertions(+), 66 deletions(-) > > diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/syscalls/syscall_32.tbl > index f848572..3b6965b 100644 > --- a/arch/x86/entry/syscalls/syscall_32.tbl > +++ b/arch/x86/entry/syscalls/syscall_32.tbl > @@ -386,3 +386,4 @@ > 377 i386 copy_file_range sys_copy_file_range > 378 i386 preadv2 sys_preadv2 compat_sys_preadv2 > 379 i386 pwritev2 sys_pwritev2 compat_sys_pwritev2 > +380 i386 arch_prctl sys_arch_prctl Why not define it as other 32-bit syscalls with compat_sys_ prefix with the help of COMPAT_SYSCALL_DEFINE() macro? Then you could omit code moving, drop is_32 helper. I miss something obvious? -- Dmitry