Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3614873imm; Mon, 8 Oct 2018 06:57:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Br4mHK5F8mpcekFMLvO42E2gF/X87IgoRCmD51BIuxBVL4thzoThWftUmh7EQ6oRQ4Gjp X-Received: by 2002:a63:88c1:: with SMTP id l184-v6mr11545336pgd.431.1539007062953; Mon, 08 Oct 2018 06:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539007062; cv=none; d=google.com; s=arc-20160816; b=mJ/+TeqPLT3d3Jw8YRJaFoT9ox0OkmDZZVkdJ7ap7RAYkxYAm/Uuxm82juaGJQ2zuy mqxo/HZsFZEjIILEav0jZxthyrwEYlhEyo2o1EHpnmk+E3EO4HGTe7M7q4Iw0jxwAMpM MwCDSo0Yv3isk54gd2o/CcdzEMgH1GrhCQdBErjrCKxvEmCv0vQQFe3VBju1dff2yD/Z 74z5KFBPkT0yZRIieJguX4JcH4UkeB0OmEIFiLP6zEmiAKQwRXRwuysQs4HlzvVNneik IhElIyG8YtAmt/JLvW3QiKc7lCZmQB4+VQ+t78qphnh8ssNMFi7sbZLWCru3czJR0tT/ wLKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=KJyIwc7avFINxy/22mDyE1l/egASi+mUwDD0qypYxLs=; b=fWqrWSVcNLAc7yI+6MbAtVlD68qIQxnIh6ijzRQARETbC2CoQwFsG9i5L/I46gN5uA BdW1ubbYyWXE5bU0/enN+BT84H2efkNGLInXCM/obgQAOjJwmADrvxK2tMJnl+a4z5R8 lVtirTvNHunFa2ZNZNoGeH00pe4PaIVvmXGGxz8OfqV3BS1YQoSOv4v2XOUbmeZqUdgF 1SDMXD3K5ZnwGb2sI7LtlAhoCtC3dGGMyPdd2nAzIP7M7IOOeq8YLwnWVAGN+GoGM7SQ sRhrLGkPZTWVlUcG6jdrmB0K1iN1OoRK8AxUOM6R7X+0J55blOwQCbBL/QZhNsb3byFG 6BbA== 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 12-v6si14609880pgd.191.2018.10.08.06.57.27; Mon, 08 Oct 2018 06:57:42 -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 S1726486AbeJHVJC (ORCPT + 99 others); Mon, 8 Oct 2018 17:09:02 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38611 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbeJHVJC (ORCPT ); Mon, 8 Oct 2018 17:09:02 -0400 Received: by mail-qt1-f194.google.com with SMTP id l9-v6so20986427qtf.5; Mon, 08 Oct 2018 06:57:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KJyIwc7avFINxy/22mDyE1l/egASi+mUwDD0qypYxLs=; b=RTOGnkm/qbH73H3D9Qji1HNRjOWldq+ZFt+3e0ZuvgrvosUcED3eaQxPlEae49z5zc GOSVwGegeX2VpWAPHNOBE+MLXWrXG2+jLhPnWdNuA53mQ0JN9xzF8GuVtxQvEF1uyikL rjYE2Shk5WkDQ7owns3zoQaZ55FkSfM34N6iTBjyla7ihyLDFArDGwStm+rE0Vx4q487 AZjUrau/uaFWit+MuMvypw0UNbpt8vkFtwEpCKHT6ihkINKoGEWjYmZp5W9IvVavyLsN 7NyGOkMr9f2YjixsCAw9sknPT4jP/fbbPIEPlw2+M2l9ES2uveKRIvcwWBeHOirJ73kc VM4Q== X-Gm-Message-State: ABuFfoiYUaoSGwZY4YZvxjdPau2prW0RUkOh4XhtTCPo+trV5nKEb6bD Jf2sTpQIJyMgUIJjbJGcBPKhgeTTJFLRZPuaJus= X-Received: by 2002:a0c:8834:: with SMTP id 49-v6mr19168743qvl.40.1539007029815; Mon, 08 Oct 2018 06:57:09 -0700 (PDT) MIME-Version: 1.0 References: <1538975801-13735-1-git-send-email-firoz.khan@linaro.org> <1538975801-13735-4-git-send-email-firoz.khan@linaro.org> <20181008130301.GM32759@asgard.redhat.com> In-Reply-To: <20181008130301.GM32759@asgard.redhat.com> From: Arnd Bergmann Date: Mon, 8 Oct 2018 15:56:53 +0200 Message-ID: Subject: Re: [PATCH v3 3/6] parisc: add system call table generation support To: Eugene Syromiatnikov Cc: Firoz Khan , Parisc List , "James E.J. Bottomley" , Helge Deller , Thomas Gleixner , gregkh , Philippe Ombredanne , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , linux-arch , Deepa Dinamani , Marcin Juszkiewicz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 8, 2018 at 3:02 PM Eugene Syromiatnikov wrote: > > On Mon, 8 Oct 2018 at 10:47, Firoz Khan wrote: > > > diff --git a/arch/parisc/kernel/syscalls/syscall.tbl b/arch/parisc/kernel/syscalls/syscall.tbl > > > > +84 common lstat sys_newlstat compat_sys_newlstat > > > +85 common readlink sys_readlink > > > +86 common uselib sys_ni_syscall > > Why uselib is declared, contrary to all the skipped syscalls below, > that were sys_ni_syscall previously? Only __NR_socketcall was explicitly > undefined in arch/parisc/include/uapi/asm/unistd.h. Good catch, I didn't see that in my earlier review. I agree we want the files to be identical to the version they replace, so the macros need to be there for now. We may later decide to clean this up and remove all __NR_* that have no entry point, but the conversion to the new table format needs to otherwise be a nop. > > > +87 common swapon sys_swapon > > > +88 common reboot sys_reboot > > > +89 common mmap2 sys_mmap2 > > > +90 common mmap sys_mmap > > > +91 common munmap sys_munmap > > > +92 common truncate sys_truncate compat_sys_truncate > > > +93 common ftruncate sys_ftruncate compat_sys_ftruncate > > > +94 common fchmod sys_fchmod > > > +95 common fchown sys_fchown > > > +96 common getpriority sys_getpriority > > > +97 common setpriority sys_setpriority > > > +98 common recv sys_recv > > > +99 common statfs sys_statfs compat_sys_statfs > > > +100 common fstatfs sys_fstatfs compat_sys_fstatfs > > > +101 common stat64 sys_stat64 > > It is probably worth adding a comment here that syscall 102 was > socketcall, in order to make reason for this jump in syscall numeration > self-evident. +1 In general, I'd argue we want to keep all the nontrivial comments that were present in either unistd.h or syscall_table.S. > > > +103 common syslog sys_syslog > > > +104 common setitimer sys_setitimer compat_sys_setitimer > > > +105 common getitimer sys_getitimer compat_sys_getitimer > > > +106 common capget sys_capget > > > +107 common capset sys_capset > > > > +108 32 pread64 parisc_pread64 > > > +108 64 pread64 sys_pread64 parisc_pread64 > > It would be probably nice to have some syntax that would allow avoid > this duplication (as compat handler on 64 bit and native on 32 bit are > the same). I think I would prefer to have the compat table be generated with the '32' abi rather than the '64' abi, so we end up with 108 32 pread64 parisc_pread64 parisc_pread64 108 64 pread64 sys_pread64 I think this makes more sense, in particular on the other architectures that have different macro names in some cases. When we do this, the entries could get compressed to 108 32 pread64 parisc_pread64 108 64 pread64 sys_pread64 > > > +348 common pwritev2 sys_pwritev2 compat_sys_pwritev2 > > > +349 common statx sys_statx > > > +350 common io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents > > > \ No newline at end of file As others have commented several times, Firoz still needs to fix the missing newline. Firoz, please fix all the newlines before you repost any further patches. Arnd